diff --git a/scripts/BuildAndTest.ps1 b/scripts/BuildAndTest.ps1
index cec7ada62..f6b565161 100644
--- a/scripts/BuildAndTest.ps1
+++ b/scripts/BuildAndTest.ps1
@@ -95,7 +95,7 @@ function Invoke-DotNetBuild($solutionFileRelativePath) {
Write-Information "Building $solutionFileRelativePath..."
$solutionFilePath = Join-Path $SourceRoot $solutionFileRelativePath
- & dotnet build $solutionFilePath --configuration $Configuration --verbosity $BuildVerbosity --no-incremental -bl -p:WarningsAsErrors="MSB3277" /p:EnforceCodeStyleInBuild=true
+ & dotnet build $solutionFilePath --configuration $Configuration --verbosity $BuildVerbosity --no-incremental -bl /p:EnforceCodeStyleInBuild=true
if ($LASTEXITCODE -ne 0) {
Exit-WithFailureMessage $ScriptName "Build of $solutionFilePath failed."
diff --git a/scripts/BuildMultitoolForNpm.ps1 b/scripts/BuildMultitoolForNpm.ps1
index 5972de536..f479d462c 100644
--- a/scripts/BuildMultitoolForNpm.ps1
+++ b/scripts/BuildMultitoolForNpm.ps1
@@ -38,7 +38,7 @@ $npmBuildFolder = "$BuildRoot\Publish\npm"
if (-not $SkipBuild) {
Write-Information "Building Sarif.Multitool for Windows, Linux, and MacOS..."
foreach ($runtime in "win-x64", "linux-x64", "osx-x64") {
- dotnet publish $SourceRoot\$project\$project.csproj -c $Configuration -f netcoreapp3.1 -r $runtime
+ dotnet publish $SourceRoot\$project\$project.csproj -c $Configuration -f netcoreapp3.1 -r $runtime --self-contained
}
Write-Information "Merging binaries [$projectBinDirectory] and NPM configuration [$npmSourceFolder]..."
diff --git a/src/Directory.Solution.props b/src/Directory.Solution.props
new file mode 100644
index 000000000..770a862c3
--- /dev/null
+++ b/src/Directory.Solution.props
@@ -0,0 +1,3 @@
+
+
+
\ No newline at end of file
diff --git a/src/build.props b/src/build.props
index 886602f6f..669194424 100644
--- a/src/build.props
+++ b/src/build.props
@@ -2,7 +2,10 @@
- 8.0
+ latest
+ Default
+ latest
+ true
true
@@ -18,10 +21,6 @@
2.1.0
-
- latest
- latest
-
@@ -40,10 +39,6 @@
$(MsBuildThisFileDirectory)..\bld\Publish\Nuget\$(Configuration)\
prompt
4
- true
-
-
- NU1901;NU1902;NU1903;NU1904
true
+
+
+ true
+
+
+ $(TreatWarningsAsErrors)
+
+
+ $(WarningsNotAsErrors);NU1901;NU1902;NU1903;NU1904
+ $(WarningsNotAsErrors)
+
+
+ 8
+
+