Skip to content

Commit

Permalink
Adding displayName (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
shibayan authored Mar 3, 2020
1 parent 391506b commit c774903
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,26 @@ stages:
inputs:
packageType: 'sdk'
version: $(DotNetSdkVersion)
displayName: 'Install .NET Core SDK $(DotNetSdkVersion)'

- task: NuGetToolInstaller@1
inputs:
versionSpec: $(NuGetCliVersion)
displayName: 'Install NuGet CLI $(NuGetCliVersion)'

- task: NuGetCommand@2
inputs:
command: 'restore'
restoreSolution: '**/*.sln'
feedsToUse: 'select'
verbosityRestore: 'Normal'
displayName: Restore NuGet Packages

- task: MSBuild@1
inputs:
solution: '**/*.csproj'
configuration: $(BuildConfiguration)
displayName: Build Application

- job: Build_For_Store
condition: eq(variables['IsGitHubTag'], true)
Expand All @@ -57,8 +61,10 @@ stages:
name: signingCert
inputs:
secureFile: 'WinQuickLook.pfx'
displayName: 'Download Signing Certificate'

- powershell: 'echo "##vso[task.setvariable variable=ApplicationVersion]$($env:Build_SourceBranchName.Substring(1))"'
displayName: 'Set ApplicationVersion'

- powershell: |
[Reflection.Assembly]::LoadWithPartialName("System.Xml.Linq")
Expand All @@ -67,22 +73,26 @@ stages:
$xName = [System.Xml.Linq.XName]"{http://schemas.microsoft.com/appx/manifest/foundation/windows10}Identity"
$doc.Root.Element($xName).Attribute("Version").Value = "$(ApplicationVersion).0";
$doc.Save($path)
displayName: 'Update Package Manifest'
- task: UseDotNet@2
inputs:
packageType: 'sdk'
version: $(DotNetSdkVersion)
displayName: 'Install .NET Core SDK $(DotNetSdkVersion)'

- task: NuGetToolInstaller@1
inputs:
versionSpec: $(NuGetCliVersion)
displayName: 'Install NuGet CLI $(NuGetCliVersion)'

- task: NuGetCommand@2
inputs:
command: 'restore'
restoreSolution: '**/*.sln'
feedsToUse: 'select'
verbosityRestore: 'Normal'
displayName: Restore NuGet Packages

- task: MSBuild@1
inputs:
Expand All @@ -96,7 +106,10 @@ stages:
/p:AppxPackageSigningEnabled=true
/p:PackageCertificateThumbprint=""
/p:PackageCertificateKeyFile="$(signingCert.secureFilePath)"
/p:PackageCertificatePassword="$(PfxPassword)"'
/p:PackageCertificatePassword="$(PfxPassword)"
/verbosity:minimal'
displayName: Build MSIX Package

- publish: packed
artifact: msix
artifact: msix
displayName: Publish MSIX

0 comments on commit c774903

Please sign in to comment.