File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change
1
+ trigger :
2
+ - master
3
+
4
+ pool :
5
+ vmImage : ' windows-latest'
6
+
7
+ variables :
8
+ solution : ' **/*.sln'
9
+ buildPlatform : ' x86|x64'
10
+ buildConfiguration : ' Release'
11
+ appxPackageDir : ' $(build.artifactStagingDirectory)\AppxPackages\\'
12
+
13
+ steps :
14
+ - task : PowerShell@2
15
+ inputs :
16
+ targetType : ' inline'
17
+ script : |
18
+ [xml]$xmlDoc = Get-Content $(Build.SourcesDirectory)\Files.Package\Package.appxmanifest
19
+ $xmlDoc.Package.Identity.Name="49306atecsolution.FilesUWP"
20
+ $xmlDoc.Package.Properties.DisplayName="Files UWP - Preview"
21
+ $xmlDoc.Package.Applications.Application.VisualElements.DisplayName="Files UWP - Preview"
22
+ $xmlDoc.Save('$(Build.SourcesDirectory)\Files.Package\Package.appxmanifest')
23
+ failOnStderr : true
24
+
25
+ - task : NuGetToolInstaller@1
26
+
27
+ - task : NuGetCommand@2
28
+ inputs :
29
+ restoreSolution : ' $(solution)'
30
+
31
+ - task : MSBuild@1
32
+ inputs :
33
+ platform : ' x86'
34
+ solution : ' **/*.wapproj'
35
+ configuration : ' $(buildConfiguration)'
36
+ msbuildArguments : ' /t:build;_GenerateAppxPackage /p:Configuration=Release;Platform="$(buildPlatform)";AppxBundle=Always;AppxBundlePlatforms="$(buildPlatform)"'
37
+
38
+ - task : CopyFiles@2
39
+ displayName : ' Copy Files to: $(build.artifactstagingdirectory)'
40
+ inputs :
41
+ SourceFolder : ' $(system.defaultworkingdirectory)'
42
+ Contents : ' **\bin\$(BuildConfiguration)\**'
43
+ TargetFolder : ' $(build.artifactstagingdirectory)'
44
+
45
+ - task : PublishBuildArtifacts@1
46
+ displayName : ' Publish Artifact: drop'
47
+ inputs :
48
+ PathtoPublish : ' $(build.artifactstagingdirectory)'
You can’t perform that action at this time.
0 commit comments