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
|`ExcludeDefaultSDKPackages`| false | Do not include the default packages `Microsoft.Net.Compilers.Toolset` and `Microsoft.CodeDom.Providers.DotNetCompilerPlatform`|
47
+
|`ApplySDKDefaultPackageVersions`| true*| Apply default version numbers to packages unless using a Central Package Management system |
48
+
49
+
*Version numbers are not applied if you are using `Microsoft.Build.CentralPackageVersions` version 2.1.1 or higher. Remember to include the packages in your central package versions file.
50
+
51
+
52
+
### Specific Properties
53
+
54
+
| Property | Default value | Description |
55
+
| -------- | ------------- | ----------- |
56
+
|`MvcBuildViews`| true if Configuration is Release<br/>false otherwise | Whether to invoke the AspNetCompiler automatically after build |
57
+
|`EnableWebFormsDefaultItems`| Same as `EnableDefaultItems`| Whether to automatically include WebForms files as content<br><ul><li> *.asax</li><li> *.ascx</li><li> *.ashx</li><li> *.asmx</li><li> *.aspx</li><li> *.master</li><li> *.svc</li></ul> |
58
+
|`OverwriteAppConfigWithBindingRedirects`| false | If set, then any [automatically generated binding redirects](Binding_Redirects/Autogenerating-Binding-Redirects.md) will be copied into your web.config and `RazorAppConfigFiles` files. |
59
+
60
+
### Deprecated Properties
61
+
| Property | Default value | Description |
62
+
| -------- | ------------- | ----------- |
63
+
|`ExcludeDefaultRazorPackages`| false | Use `ExcludeDefaultSDKPackages` instead |
Copy file name to clipboardExpand all lines: docs/SDK.md
+32-8Lines changed: 32 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ When using an MSBuild Project SDK obtained via NuGet (such as the SDKs in this r
13
13
Either append the version (as shown in the nuget shield above) to the package name:
14
14
15
15
```xml
16
-
<ProjectSdk="MSBuild.SDK.SystemWeb/4.0.82">
16
+
<ProjectSdk="MSBuild.SDK.SystemWeb/4.0.83">
17
17
...
18
18
```
19
19
@@ -22,7 +22,7 @@ Or omit the version from the SDK attribute and specify it in the version in `glo
22
22
```json
23
23
{
24
24
"msbuild-sdks": {
25
-
"MSBuild.SDK.SystemWeb" : "4.0.82"
25
+
"MSBuild.SDK.SystemWeb" : "4.0.83"
26
26
}
27
27
}
28
28
```
@@ -31,13 +31,37 @@ You can also use the [templates](Templates.md) to easily create new projects.
31
31
32
32
## Properties
33
33
34
+
### Common Properties
35
+
34
36
| Property | Default value | Description |
35
37
| -------- | ------------- | ----------- |
36
-
| ExcludeASPNetCompilers | false | Do not include the default packages `Microsoft.Net.Compilers.Toolset` and `Microsoft.CodeDom.Providers.DotNetCompilerPlatform`|
37
-
| MicrosoftNetCompilersToolset_Version | 3.8.0 | Version number of the package `Microsoft.Net.Compilers.Toolset` to include*|
38
-
| MicrosoftCodeDomProvidersDotNetCompilerPlatform_Version | 3.6.0 | Version number of the packge `Microsoft.CodeDom.Providers.DotNetCompilerPlatform` to include*|
39
-
| OverwriteAppConfigWithBindingRedirects | false | If set, then any [automatically generated binding redirects](Binding_Redirects/Autogenerating-Binding-Redirects.md) will be copied into your web.config file. |
40
-
| MvcBuildViews | true if Configuration is Release<br/>false otherwise | Whether to invoke the AspNetCompiler automatically after build |
41
-
| EnableWebFormsDefaultItems | Same as `EnableDefaultItems`| Whether to automatically include WebForms files as content<br><ul><li> *.asax</li><li> *.ascx</li><li> *.ashx</li><li> *.asmx</li><li> *.aspx</li><li> *.master</li><li> *.svc</li></ul> |
38
+
|`ExcludeDefaultSDKPackages`| false | Do not include the default packages `Microsoft.Net.Compilers.Toolset` and `Microsoft.CodeDom.Providers.DotNetCompilerPlatform`|
39
+
|`ApplySDKDefaultPackageVersions`| true*| Apply default version numbers to packages unless using a Central Package Management system |
40
+
|`GeneratedBindingRedirectsAction`| None | Set the desired default behavior of what to do with SuggestedBindingRedirects if not yet set.<br>See [automatically generated binding redirects](Binding_Redirects/Autogenerating-Binding-Redirects.md)<br><ul><li>`None` - Do nothing except show the warning</li><li>`Preview` - Creates new Web.BindingRedirects.config file showing proposed changes</li><li>`Overwrite` - Updates the $(AppConfig) aka web.config in the project root</li></ul> |
42
41
43
42
*Version numbers are not applied if you are using `Microsoft.Build.CentralPackageVersions` version 2.1.1 or higher. Remember to include the packages in your central package versions file.
43
+
44
+
### Specific Properties
45
+
46
+
| Property | Default value | Description |
47
+
| -------- | ------------- | ----------- |
48
+
|`MvcBuildViews`| true if Configuration is Release<br/>false otherwise | Whether to invoke the AspNetCompiler automatically after build |
49
+
|`EnableWebFormsDefaultItems`| Same as `EnableDefaultItems`| Whether to automatically include WebForms files as content<br><ul><li> *.asax</li><li> *.ascx</li><li> *.ashx</li><li> *.asmx</li><li> *.aspx</li><li> *.master</li><li> *.svc</li></ul> |
50
+
|`SetRoslynToolPath`| true if `RoslynToolPath` is empty | Sets `RoslynToolPath` to the version included in `Microsoft.Net.Compilers.Toolset` to allow compiling .aspx files etc. using a newer langversion**|
51
+
52
+
** You will have to adjust your web.config to change the `system.codedom/compilers/compiler``compilerOptions` attribute to set the langversion - it won't automatically use the `LangVersion` property from your project file.
53
+
54
+
### Deprecated Properties
55
+
| Property | Default value | Description |
56
+
| -------- | ------------- | ----------- |
57
+
|`ExcludeASPNetCompilers`| false | Use `ExcludeDefaultSDKPackages` instead |
58
+
|`OverwriteAppConfigWithBindingRedirects`| false | If set, will set `GeneratedBindingRedirectsAction` to `Overwrite` then any will be copied into your web.config file. |
Copy file name to clipboardExpand all lines: docs/Templates.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,3 +77,6 @@ You need to have enabled the Preview feature to show [.NET CLI Templates in Visu
77
77

78
78
79
79
You can find the new templates easily by selecting `System.Web` from the Project Type dropdown.
80
+
81
+
### Visual Studio 2022
82
+
Same as VS2019 except the feature should automatically be enabled as it is no longer in preview.
0 commit comments