зеркало из https://github.com/aspnet/KoreBuild.git
Disable MSB4011 duplicate import warning (#227)
This commit is contained in:
Родитель
7e53764d4b
Коммит
403ef87bc9
|
@ -117,6 +117,7 @@ if ("${env:CI}${env:APPVEYOR}${env:TEAMCITY_VERSION}${env:TRAVIS}" -eq "")
|
|||
|
||||
$msBuildArguments = @"
|
||||
/nologo
|
||||
/nowarn:MSB4011
|
||||
/m
|
||||
/p:RepositoryRoot="$repoFolder/"
|
||||
/fl
|
||||
|
@ -136,5 +137,5 @@ $msBuildArguments | Out-File -Encoding ASCII -FilePath $msBuildResponseFile
|
|||
|
||||
# workaround https://github.com/dotnet/core-setup/issues/1664
|
||||
"{ `"sdk`": { `"version`": `"$dotnetVersion`" } }" | Out-File "$repoFolder/global.json" -Encoding ascii
|
||||
exec dotnet msbuild /nologo $preflightClpOption /t:Restore /p:PreflightRestore=true "$makeFileProj"
|
||||
exec dotnet msbuild /nologo /nowarn:MSB4011 $preflightClpOption /t:Restore /p:PreflightRestore=true "$makeFileProj"
|
||||
exec dotnet msbuild `@"$msBuildResponseFile"
|
||||
|
|
|
@ -173,6 +173,7 @@ fi
|
|||
|
||||
cat > $msbuildPreflightResponseFile <<ENDMSBUILDPREFLIGHT
|
||||
/nologo
|
||||
/nowarn:MSB4011
|
||||
/p:NetFxVersion=$netfxversion
|
||||
/p:PreflightRestore=true
|
||||
/p:RepositoryRoot="$repoFolder/"
|
||||
|
@ -188,6 +189,7 @@ __exec dotnet msbuild @"$msbuildPreflightResponseFile"
|
|||
|
||||
cat > $msbuildResponseFile <<ENDMSBUILDARGS
|
||||
/nologo
|
||||
/nowarn:MSB4011
|
||||
/m
|
||||
/p:RepositoryRoot="$repoFolder/"
|
||||
/fl
|
||||
|
|
Загрузка…
Ссылка в новой задаче