@@ -11,23 +11,22 @@ parameters:
1111 # Unfortunately, _SignType can't be used to exclude the use of the service connection in non-real sign scenarios. The
1212 # variable is not available in template expression. _SignType has a very large proliferation across .NET, so replacing it is tough.
1313 microbuildUseESRP : true
14- # Location of the MicroBuild output folder
15- # NOTE: There's something that relies on this being in the "default" source directory for tasks such as Signing to work properly.
16- microBuildOutputFolder : ' $(Build.SourcesDirectory)'
1714
1815 continueOnError : false
1916
2017steps :
2118 - ${{ if eq(parameters.enableMicrobuild, 'true') }} :
2219 - ${{ if eq(parameters.enableMicrobuildForMacAndLinux, 'true') }} :
23- # Needed to download the MicroBuild plugin nupkgs on Mac and Linux when nuget.exe is unavailable
20+ # Installing .NET 8 is required to use the MicroBuild signing plugin on non-Windows platforms
2421 - task : UseDotNet@2
2522 displayName : Install .NET 8.0 SDK for MicroBuild Plugin
2623 inputs :
2724 packageType : sdk
2825 version : 8.0.x
29- installationPath : ${{ parameters.microBuildOutputFolder }}/.dotnet
30- workingDirectory : ${{ parameters.microBuildOutputFolder }}
26+ # Installing the SDK in a '.dotnet-microbuild' directory is required for signing.
27+ # See target FindDotNetPathForMicroBuild in arcade/src/Microsoft.DotNet.Arcade.Sdk/tools/Sign.proj
28+ # Do not remove '.dotnet-microbuild' from the path without changing the corresponding logic.
29+ installationPath : $(Agent.TempDirectory)/.dotnet-microbuild
3130 condition : and(succeeded(), ne(variables['Agent.Os'], 'Windows_NT'))
3231
3332 - script : |
6564 ConnectedPMEServiceName : 248d384a-b39b-46e3-8ad5-c2c210d5e7ca
6665 env :
6766 TeamName : $(_TeamName)
68- MicroBuildOutputFolderOverride : ${{ parameters.microBuildOutputFolder }}
67+ MicroBuildOutputFolderOverride : $(Agent.TempDirectory)/MicroBuild
6968 SYSTEM_ACCESSTOKEN : $(System.AccessToken)
7069 continueOnError : ${{ parameters.continueOnError }}
7170 condition : and(succeeded(), eq(variables['Agent.Os'], 'Windows_NT'), in(variables['_SignType'], 'real', 'test'))
8584 ConnectedPMEServiceName : c24de2a5-cc7a-493d-95e4-8e5ff5cad2bc
8685 env :
8786 TeamName : $(_TeamName)
88- MicroBuildOutputFolderOverride : ${{ parameters.microBuildOutputFolder }}
87+ MicroBuildOutputFolderOverride : $(Agent.TempDirectory)/MicroBuild
8988 SYSTEM_ACCESSTOKEN : $(System.AccessToken)
9089 continueOnError : ${{ parameters.continueOnError }}
9190 condition : and(succeeded(), ne(variables['Agent.Os'], 'Windows_NT'), eq(variables['_SignType'], 'real'))
0 commit comments