From b234ef5096309a06c028adcb68cd0f009f76a40c Mon Sep 17 00:00:00 2001 From: Eddy Nakamura Date: Thu, 2 Jul 2020 11:27:27 -0300 Subject: [PATCH] Upgrade netcoreapp from Multitool (#1962) * Upgrade netcoreapp from Multitool update * adding system.runtime --- scripts/BuildMultitoolForNpm.ps1 | 14 +++++++------- src/Sarif.Multitool/Sarif.Multitool.csproj | 4 ++-- src/Sarif/Sarif.csproj | 1 + 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/scripts/BuildMultitoolForNpm.ps1 b/scripts/BuildMultitoolForNpm.ps1 index 34f1e57fa..5972de536 100644 --- a/scripts/BuildMultitoolForNpm.ps1 +++ b/scripts/BuildMultitoolForNpm.ps1 @@ -2,7 +2,7 @@ .SYNOPSIS Build and package the Sarif Multitool NPM package. .DESCRIPTION - Builds the Sarif.Multitool NPM package, including building the .NET Core 3.0 single-file-exe of the Multitool for all supported platforms. + Builds the Sarif.Multitool NPM package, including building the .NET Core 3.1 single-file-exe of the Multitool for all supported platforms. .PARAMETER Configuration The build configuration: Release or Debug. Default=Release #> @@ -38,15 +38,15 @@ $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.0 -r $runtime + dotnet publish $SourceRoot\$project\$project.csproj -c $Configuration -f netcoreapp3.1 -r $runtime } Write-Information "Merging binaries [$projectBinDirectory] and NPM configuration [$npmSourceFolder]..." New-DirectorySafely $npmBuildFolder\ Copy-Item -Force -Container -Recurse -Path $npmSourceFolder\* -Destination $npmBuildFolder\ - Copy-Item -Force -Container -Recurse -Path $projectBinDirectory\Publish\netcoreapp3.0\win-x64\* -Destination $npmBuildFolder\sarif-multitool-win32\ - Copy-Item -Force -Container -Recurse -Path $projectBinDirectory\Publish\netcoreapp3.0\linux-x64\* -Destination $npmBuildFolder\sarif-multitool-linux\ - Copy-Item -Force -Container -Recurse -Path $projectBinDirectory\Publish\netcoreapp3.0\osx-x64\* -Destination $npmBuildFolder\sarif-multitool-darwin\ + Copy-Item -Force -Container -Recurse -Path $projectBinDirectory\Publish\netcoreapp3.1\win-x64\* -Destination $npmBuildFolder\sarif-multitool-win32\ + Copy-Item -Force -Container -Recurse -Path $projectBinDirectory\Publish\netcoreapp3.1\linux-x64\* -Destination $npmBuildFolder\sarif-multitool-linux\ + Copy-Item -Force -Container -Recurse -Path $projectBinDirectory\Publish\netcoreapp3.1\osx-x64\* -Destination $npmBuildFolder\sarif-multitool-darwin\ } # Match SARIF SDK version (from 2.2.1 forward). @@ -67,8 +67,8 @@ foreach ($package in (Get-ChildItem $npmBuildFolder).FullName) { # After merging outputs, delete the other 250MB copies of the Multitool single file exes (saving only the bld\Publish\npm copy) if (-not $NoPostClean) { - Remove-DirectorySafely $projectBinDirectory\netcoreapp3.0 - Remove-DirectorySafely $projectBinDirectory\Publish\netcoreapp3.0 + Remove-DirectorySafely $projectBinDirectory\netcoreapp3.1 + Remove-DirectorySafely $projectBinDirectory\Publish\netcoreapp3.1 } Write-Information "$ScriptName SUCCEEDED." \ No newline at end of file diff --git a/src/Sarif.Multitool/Sarif.Multitool.csproj b/src/Sarif.Multitool/Sarif.Multitool.csproj index 04e88bb87..e0243d487 100644 --- a/src/Sarif.Multitool/Sarif.Multitool.csproj +++ b/src/Sarif.Multitool/Sarif.Multitool.csproj @@ -34,7 +34,7 @@ - netcoreapp3.0;netcoreapp2.1;net461 + netcoreapp3.1;netcoreapp2.1;net461 @@ -77,7 +77,7 @@ - + diff --git a/src/Sarif/Sarif.csproj b/src/Sarif/Sarif.csproj index 89daaceb5..f3f575d93 100644 --- a/src/Sarif/Sarif.csproj +++ b/src/Sarif/Sarif.csproj @@ -35,6 +35,7 @@ +