Skip to content

Commit 1e9a301

Browse files
authored
Skip signing VisualFsharp.sln and FSharp.sln when building with .NET Core MSBuild (#18113)
1 parent 6af82c8 commit 1e9a301

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

eng/Build.ps1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,12 +563,19 @@ try {
563563

564564
$script:BuildMessage = "Failure building product"
565565
if ($restore -or $build -or $rebuild -or $pack -or $sign -or $publish -and -not $skipBuild -and -not $sourceBuild) {
566+
$originalSignValue = $sign
567+
if ($msbuildEngine -eq "dotnet") {
568+
# Building FSharp.sln and VisualFSharp.sln with .NET Core MSBuild
569+
# don't produce any artifacts to sign. Skip signing in this case.
570+
$sign = $False
571+
}
566572
if ($noVisualStudio) {
567573
BuildSolution "FSharp.sln" $False
568574
}
569575
else {
570576
BuildSolution "VisualFSharp.sln" $False
571577
}
578+
$sign = $originalSignValue
572579
}
573580

574581
if ($testBenchmarks) {

0 commit comments

Comments
 (0)