You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The project.json schema has been updated with the following changes,
buildOptions
compilationOptions has been renamed to buildOptions
compilerName in the root has been moved into buildOptions
compile, compileExclude, compileFiles and compileBuiltIn are combined into compile(detailed structure below) under buildOptions
resource, resourceExclude, resourceFiles, resourceBuiltIn and namedResource are combined into embed(detailed structure below) under buildOptions
content, contentExclude, contentFiles and contentBuiltIn that was used to copy files to build output is being replaced by copyToOutput(detailed structure below) under buildOptions
content, contentExclude, contentFiles, contentBuiltIn and publishExclude that was used to copy files to publish output is being replaced by publishOptions(detailed structure below)
Note 1: content was used to specify files to be copied both to build output and publish output. That functionality is being split into two using copyToOutput and publishOptions respectively.
Note 2: exclude option which was used to specify common exclusions across compile and resource has been deprecated.
runtimeOptions
runtimeOptions.configProperties includes the following properties:
System.GC.Server - Enables/disables server garbage collection.
{
"packOptions": {
"summary": "This project is really great.",
"tags": [ "tag1", "tag2" ],
"owners": [ "My Name", "Your Name" ],
"releaseNotes": "Did lots of great things in this release",
"iconUrl": "https://example.com/an-icon.png",
"projectUrl": "https://example.com",
"licenseUrl": "https://example.com/license",
"requireLicenseAcceptance": false,
"repository": {
"type": "git",
"url": "https://github.com/exampleorg/example"
},
"files": {
"include": "",
"exclude": "",
"includeFiles": [ "" ],
"excludeFiles": [ "" ],
"builtIns": { },
"mappings": {
"dest/path": "./src/path"
}
}
}
}
Structure to include/exclude files
This structure applies to these properties: compile, embed,copyToOutput, files and publishOptions
"include"string/string[]
A list of file globbing patterns for files to include. The patterns are rooted at the project folder. Defaults to none.
"exclude"string/string[]
A list of file globbing patterns for files to exclude. The exclude patterns have higher priority than the include patterns, hence a file found in both will be excluded. The patterns are rooted at the project folder. Defaults to none.
"includeFiles"string/string[]
A list of file paths to include. The paths are rooted at the project folder. This list has a higher priority than the include and exclude globbing patterns, hence a file listed here and in the exclude globbing pattern will still be included. Defaults to none.
"excludeFiles"string/string[]
A list of file paths to exclude. The paths are rooted at the project folder. This list has a higher priority than globbing patterns and the include paths, hence a file found in all will be excluded. Defaults to none.
"builtIns"object
The defaults provided by the system. It can have include and exclude globbing patterns which are merged with the corresponding values of the include and exclude properties.
"include" string/string[]
"exclude" string/string[]
"mappings"map
Keys represent destination paths in the output layout, and values are an object representing the source path of files to include which can have its own include, exclude, includeFiles and excludeFiles.
e.g. "dest/path": "source/path" or "dest/path": { "include": "./src/path" }
The project.json schema has been updated with the following changes,
buildOptions
compilationOptions
has been renamed tobuildOptions
compilerName
in the root has been moved intobuildOptions
compile
,compileExclude
,compileFiles
andcompileBuiltIn
are combined intocompile
(detailed structure below) underbuildOptions
resource
,resourceExclude
,resourceFiles
,resourceBuiltIn
andnamedResource
are combined intoembed
(detailed structure below) underbuildOptions
content
,contentExclude
,contentFiles
andcontentBuiltIn
that was used to copy files to build output is being replaced bycopyToOutput
(detailed structure below) underbuildOptions
Example
publishOptions
content
,contentExclude
,contentFiles
,contentBuiltIn
andpublishExclude
that was used to copy files to publish output is being replaced bypublishOptions
(detailed structure below)Example
Note 1:
content
was used to specify files to be copied both to build output and publish output. That functionality is being split into two usingcopyToOutput
andpublishOptions
respectively.Note 2:
exclude
option which was used to specify common exclusions acrosscompile
andresource
has been deprecated.runtimeOptions
runtimeOptions.configProperties
includes the following properties:System.GC.Server
- Enables/disables server garbage collection.System.GC.Concurrent
- Enables/disables concurrent garbage collection.More
configProperties
can be found here, and a more detailed description of theruntimeOptions
section as a whole can be found here.Example
packOptions
packOptions
,summary
tags
owners
releaseNotes
iconUrl
projectUrl
licenseUrl
requireLicenseAcceptance
repository
packInclude
has been replaced byfiles
(detailed structure below) underpackOptions
Example
Structure to include/exclude files
This structure applies to these properties:
compile
,embed
,copyToOutput
,files
andpublishOptions
"include"
string/string[]
A list of file globbing patterns for files to include. The patterns are rooted at the project folder. Defaults to none.
"exclude"
string/string[]
A list of file globbing patterns for files to exclude. The exclude patterns have higher priority than the include patterns, hence a file found in both will be excluded. The patterns are rooted at the project folder. Defaults to none.
"includeFiles"
string/string[]
A list of file paths to include. The paths are rooted at the project folder. This list has a higher priority than the include and exclude globbing patterns, hence a file listed here and in the exclude globbing pattern will still be included. Defaults to none.
"excludeFiles"
string/string[]
A list of file paths to exclude. The paths are rooted at the project folder. This list has a higher priority than globbing patterns and the include paths, hence a file found in all will be excluded. Defaults to none.
"builtIns"
object
The defaults provided by the system. It can have
include
andexclude
globbing patterns which are merged with the corresponding values of theinclude
andexclude
properties.include
"string/string[]
exclude
"string/string[]
"mappings"
map
Keys represent destination paths in the output layout, and values are an object representing the source path of files to include which can have its own
include
,exclude
,includeFiles
andexcludeFiles
.e.g.
"dest/path": "source/path"
or"dest/path": { "include": "./src/path" }
Example
Note: If a
string/string[]
is specified instead of anobject
, it will be considered to be part ofinclude
.E.g.
is same as
Note
This change is backwards compatible with the old schema. But there will be warnings during compilation whenever the old schema is used.
Related Issue: https://github.com/dotnet/cli/issues/792
Please use dotnet/aspnetcore#1418 for discussion.
The text was updated successfully, but these errors were encountered: