Skip to content

Commit 38250c1

Browse files
authored
Revert "Pass -sign and -publish switch to dotnet build only (#59068)" (#59082)
This reverts commit 64e76be.
1 parent f322211 commit 38250c1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

eng/build.ps1

+2-5
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,8 @@ $MSBuildArguments += "/p:Build=$RunBuild"
266266
if (-not $RunBuild) { $MSBuildArguments += "/p:NoBuild=true" }
267267
$MSBuildArguments += "/p:Pack=$Pack"
268268
$MSBuildArguments += "/p:Test=$Test"
269+
$MSBuildArguments += "/p:Sign=$Sign"
270+
$MSBuildArguments += "/p:Publish=$Publish"
269271

270272
$MSBuildArguments += "/p:TargetArchitecture=$Architecture"
271273
$MSBuildArguments += "/p:TargetOsName=win"
@@ -287,11 +289,6 @@ if ($RuntimeSourceFeed -or $RuntimeSourceFeedKey) {
287289

288290
# Split build categories between dotnet msbuild and desktop msbuild. Use desktop msbuild as little as possible.
289291
[string[]]$dotnetBuildArguments = $MSBuildArguments
290-
291-
# Don't pass Sign and Publish to desktop msbuild as that would result in double signing and publishing
292-
$dotnetBuildArguments += "/p:Sign=$Sign"
293-
$dotnetBuildArguments += "/p:Publish=$Publish"
294-
295292
if ($All) { $dotnetBuildArguments += '/p:BuildAllProjects=true' }
296293
if ($Projects) {
297294
if ($BuildNative) {

0 commit comments

Comments
 (0)