add global.json sdk.allowPrerelease=false

This commit is contained in:
ChsBuffer
2021-07-16 02:20:10 +08:00
parent 87a3581dff
commit 3462a3badf
3 changed files with 10 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "AdditionalFiles", "Addition
.gitignore = .gitignore
LICENSE = LICENSE
README.md = README.md
global.json = global.json
EndProjectSection
EndProject
Global

View File

@@ -95,6 +95,10 @@
<Target Condition="'$(PublishSingleFile)' == 'true'" AfterTargets="_ComputeFilesToBundle" Name="RemoveDupeAssemblies">
<ItemGroup>
<_FilesToBundle Remove="$(PkgMicrosoft_Diagnostics_Tracing_TraceEvent)\build\native\x86\**" />
<!-- .NET 6 SDK fixes MSB4018 "Multiple entries with the same BundleRelativePath",
if still retain the following properties,
you will encounter a "lib/netstandard2.0/Dial2Lib.dll not found" error
-->
<_FilesToBundle Remove="$(PkgMicrosoft_Diagnostics_Tracing_TraceEvent)\lib\netstandard1.6\Dia2Lib.dll" />
<_FilesToBundle Remove="$(PkgMicrosoft_Diagnostics_Tracing_TraceEvent)\lib\netstandard1.6\OSExtensions.dll" />
<_FilesToBundle Remove="$(PkgMicrosoft_Diagnostics_Tracing_TraceEvent)\lib\netstandard1.6\TraceReloggerLib.dll" />

5
global.json Normal file
View File

@@ -0,0 +1,5 @@
{
"sdk": {
"allowPrerelease": false
}
}