File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 136
136
<Copyright >(c) Microsoft Corporation.</Copyright >
137
137
138
138
<TargetFramework >net6.0</TargetFramework >
139
- <LangVersion >9 .0</LangVersion >
139
+ <LangVersion >10 .0</LangVersion >
140
140
<PublishReadyToRun Condition =" '$(Configuration)' != 'Debug' " >true</PublishReadyToRun >
141
141
142
142
<TreatWarningsAsErrors >true</TreatWarningsAsErrors >
143
143
<AllowUnsafeBlocks >true</AllowUnsafeBlocks >
144
144
<GenerateDocumentationFile >true</GenerateDocumentationFile >
145
145
<SuppressNETCoreSdkPreviewMessage >true</SuppressNETCoreSdkPreviewMessage >
146
146
<NeutralLanguage >en-US</NeutralLanguage >
147
+ <DisableImplicitNamespaceImports >true</DisableImplicitNamespaceImports >
148
+ <DisableImplicitNamespaceImports_DotNet >true</DisableImplicitNamespaceImports_DotNet >
147
149
148
150
<DelaySign >true</DelaySign >
149
151
<AssemblyOriginatorKeyFile >../signing/visualstudiopublic.snk</AssemblyOriginatorKeyFile >
Original file line number Diff line number Diff line change @@ -437,6 +437,14 @@ Fix steps:
437
437
$Arguments += " --output" , (Split-Path $Options.Output )
438
438
}
439
439
440
+ # Add --self-contained due to "warning NETSDK1179: One of '--self-contained' or '--no-self-contained' options are required when '--runtime' is used."
441
+ if ($Options.Runtime -like ' fxdependent*' ) {
442
+ $Arguments += " --no-self-contained"
443
+ }
444
+ else {
445
+ $Arguments += " --self-contained"
446
+ }
447
+
440
448
if ($Options.Runtime -like ' win*' -or ($Options.Runtime -like ' fxdependent*' -and $environment.IsWindows )) {
441
449
$Arguments += " /property:IsWindows=true"
442
450
}
You can’t perform that action at this time.
0 commit comments