diff --git a/eng/Build.ps1 b/eng/Build.ps1 index d673647bb2e..89dcb57285e 100644 --- a/eng/Build.ps1 +++ b/eng/Build.ps1 @@ -238,8 +238,9 @@ function Update-Arguments() { } } -function BuildSolution([string] $solutionName) { - Write-Host "${solutionName}:" + +function BuildSolution([string] $solutionName, $nopack) { + Write-Host "${solutionName}:" $bl = if ($binaryLog) { "/bl:" + (Join-Path $LogDir "Build.$solutionName.binlog") } else { "" } @@ -256,6 +257,8 @@ function BuildSolution([string] $solutionName) { $env:BUILDING_USING_DOTNET="false" + $pack = if ($nopack -eq $False) {""} else {$pack} + MSBuild $toolsetBuildProj ` $bl ` /p:Configuration=$configuration ` @@ -536,17 +539,17 @@ try { $script:BuildMessage = "Failure building product" if ($restore -or $build -or $rebuild -or $pack -or $sign -or $publish -and -not $skipBuild) { if ($noVisualStudio) { - BuildSolution "FSharp.sln" + BuildSolution "FSharp.sln" $False } else { - BuildSolution "VisualFSharp.sln" + BuildSolution "VisualFSharp.sln" $False } } if ($pack) { $properties_storage = $properties $properties += "/p:GenerateSbom=false" - BuildSolution "Microsoft.FSharp.Compiler.sln" + BuildSolution "Microsoft.FSharp.Compiler.sln" $True $properties = $properties_storage } if ($build) { diff --git a/src/Microsoft.FSharp.Compiler/Microsoft.FSharp.Compiler.fsproj b/src/Microsoft.FSharp.Compiler/Microsoft.FSharp.Compiler.fsproj index 522a1bdb4e4..44a907945a2 100644 --- a/src/Microsoft.FSharp.Compiler/Microsoft.FSharp.Compiler.fsproj +++ b/src/Microsoft.FSharp.Compiler/Microsoft.FSharp.Compiler.fsproj @@ -43,9 +43,6 @@ - - TargetFrameworks=netstandard2.1;netstandard2.0 - TargetFrameworks=netstandard2.0 @@ -55,6 +52,9 @@ TargetFrameworks=netstandard2.0 + + TargetFrameworks=netstandard2.1;netstandard2.0 + TargetFrameworks=netstandard2.0 @@ -64,13 +64,43 @@ + + + + + + + + <_BuiltPackages Include="$(DependentPackagesDir)Shipping\*.nupkg" /> + + + + + + + + + + + + + + - + + $([MSBuild]::NormalizeDirectory( '$(ArtifactsDir)', 'packages', '$(Configuration)', 'Dependency' )) + + + DependsOnTargets="PackDependentProjectsCore;PackageReleaseDependentPackages"> diff --git a/src/Microsoft.FSharp.Compiler/Microsoft.FSharp.Compiler.nuspec b/src/Microsoft.FSharp.Compiler/Microsoft.FSharp.Compiler.nuspec index be51b9e7966..fddbf477e89 100644 --- a/src/Microsoft.FSharp.Compiler/Microsoft.FSharp.Compiler.nuspec +++ b/src/Microsoft.FSharp.Compiler/Microsoft.FSharp.Compiler.nuspec @@ -33,9 +33,9 @@ + target="lib\net7.0" /> + target="lib\net7.0" /> @@ -48,21 +48,22 @@ + target="lib\net7.0" /> + target="lib\net7.0" /> - - - - + target="lib\net7.0" /> + + + + + target="contentFiles\Shipping" /> + target="contentFiles\Release" /> diff --git a/tests/AheadOfTime/NuGet.Config b/tests/AheadOfTime/NuGet.Config index 62abe1e410c..dac9a38e572 100644 --- a/tests/AheadOfTime/NuGet.Config +++ b/tests/AheadOfTime/NuGet.Config @@ -5,7 +5,7 @@ - +