Skip to content

Commit 7960653

Browse files
committed
Publish into separate directories
1 parent 4668973 commit 7960653

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

azure-pipelines-samples.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -119,22 +119,22 @@ steps:
119119
# msbuildVersion: 'latest'
120120
# msbuildArchitecture: 'x86'
121121

122-
# - task: VSBuild@1
123-
# displayName: 'Build And Publish WinMLSamplesGallery'
124-
# inputs:
125-
# solution: 'Samples/WinMLSamplesGallery/WinMLSamplesGallery.sln'
126-
# vsVersion: "16.0"
127-
# msbuildArgs: '/p:UapAppxPackageBuildMode=SideloadOnly /p:AppxPackageSigningEnabled=false /p:AppxBundle=Always "/p:AppxBundleOutput=Samples/WinMLSamplesGallery/WinMLSamplesGallery (Package)/AppPackages" "/p:AppxBundlePlatforms=x86|x64" /p:WindowsTargetPlatformVersion=$(WindowsTargetPlatformVersion) /t:Restore,Clean,Build'
128-
# platform: '$(BuildPlatform)'
129-
# configuration: '$(BuildConfiguration)'
130-
# msbuildArchitecture: x64
131-
# createLogFile: true
132-
# condition: succeededOrFailed()
133-
134-
- task: PowerShell@2
122+
- task: VSBuild@1
123+
displayName: 'Build And Publish WinMLSamplesGallery'
135124
inputs:
136-
targetType: 'inline'
137-
script: 'C:\"Program Files (x86)"\"Microsoft Visual Studio"\2019\Enterprise\MSBuild\Current\Bin\amd64\msbuild.exe Samples/WinMLSamplesGallery/WinMLSamplesGallery.sln /p:Configuration=$(BuildConfiguration) /p:Platform=$(BuildPlatform) /p:UapAppxPackageBuildMode=SideloadOnly /p:AppxPackageSigningEnabled=false /p:AppxBundle=Always "/p:AppxBundlePlatforms=x86|x64" /p:WindowsTargetPlatformVersion=$(WindowsTargetPlatformVersion) /t:Restore,Clean,Build,Publish'
125+
solution: 'Samples/WinMLSamplesGallery/WinMLSamplesGallery.sln'
126+
vsVersion: "16.0"
127+
msbuildArgs: '/p:UapAppxPackageBuildMode=SideloadOnly /p:AppxPackageSigningEnabled=false /p:AppxBundle=Always "/p:AppxBundlePlatforms=x86|x64" /p:WindowsTargetPlatformVersion=$(WindowsTargetPlatformVersion) /t:Restore,Clean,Build,Publish'
128+
platform: '$(BuildPlatform)'
129+
configuration: '$(BuildConfiguration)'
130+
msbuildArchitecture: x64
131+
createLogFile: true
132+
condition: succeededOrFailed()
133+
134+
# - task: PowerShell@2
135+
# inputs:
136+
# targetType: 'inline'
137+
# script: 'C:\"Program Files (x86)"\"Microsoft Visual Studio"\2019\Enterprise\MSBuild\Current\Bin\amd64\msbuild.exe Samples/WinMLSamplesGallery/WinMLSamplesGallery.sln /p:Configuration=$(BuildConfiguration) /p:Platform=$(BuildPlatform) /p:UapAppxPackageBuildMode=SideloadOnly /p:AppxPackageSigningEnabled=false /p:AppxBundle=Always "/p:AppxBundlePlatforms=x86|x64" /p:WindowsTargetPlatformVersion=$(WindowsTargetPlatformVersion) /t:Restore,Clean,Build,Publish'
138138

139139
# - task: VSBuild@1
140140
# displayName: 'Build WinMLSamplesGallery'
@@ -170,7 +170,7 @@ steps:
170170

171171
- task: CopyFiles@2
172172
inputs:
173-
targetFolder: '$(Build.ArtifactStagingDirectory)\AppPackages'
173+
targetFolder: '$(Build.ArtifactStagingDirectory)\$(BuildPlatform)\$(BuildConfiguration)\AppPackages'
174174
sourceFolder: 'Samples/WinMLSamplesGallery/WinMLSamplesGallery (Package)/AppPackages'
175175
contents: '**\*'
176176
condition: succeededOrFailed()

0 commit comments

Comments
 (0)