Skip to content
Permalink
Browse files

Build solution instead of wapproj due to dependencies on SolutionDir

  • Loading branch information...
onovotny committed Jun 5, 2019
1 parent 11c723e commit 36b200346cf45d99cd1729c3a64ed8d4332e2a42
Showing with 10 additions and 24 deletions.
  1. +10 −24 azure-pipelines.yml
@@ -20,15 +20,19 @@ jobs:
Config_Release_Zip:
BuildConfiguration: Release
ReleaseChannel: Zip
Solution: ILSpy.sln
Config_Debug_Zip:
BuildConfiguration: Debug
ReleaseChannel: Zip
Solution: ILSpy.sln
Config_Release_CI:
BuildConfiguration: Release
ReleaseChannel: CI
Solution: ILSpy.WithPackage.sln
Config_Release_Store:
BuildConfiguration: Release
ReleaseChannel: Store
Solution: ILSpy.WithPackage.sln

steps:
- checkout: self
@@ -44,29 +48,19 @@ jobs:
- task: MSBuild@1
displayName: Restore ILSpy
inputs:
solution: ILSpy.sln
solution: $(Solution)
msbuildArguments: /t:restore
configuration: $(BuildConfiguration)
platform: $(BuildPlatform)

- task: MSBuild@1
displayName: Build ILSpy
inputs:
solution: ILSpy.sln
msbuildArguments: /restore
configuration: $(BuildConfiguration)
platform: $(BuildPlatform)
maximumCpuCount: true

- task: MSBuild@1
displayName: Build Package
inputs:
solution: ILSpy.Package/ILSpy.Package.wapproj
solution: $(Solution)
msbuildArguments: /p:AppxPackageDir="$(Build.ArtifactStagingDirectory)\$(ReleaseChannel)\\"
configuration: $(BuildConfiguration)
platform: $(BuildPlatform)
maximumCpuCount: true
condition: and(succeeded(), or(eq(variables['ReleaseChannel'], 'Store'), eq(variables['ReleaseChannel'], 'CI')))

- task: VSTest@2
displayName: Test
@@ -82,7 +76,7 @@ jobs:
inputs:
archiveType: zip
rootFolder: ILSpy/bin/$(BuildConfiguration)/net462
archiveFile: $(Build.ArtifactStagingDirectory)\$(BuildConfiguration)\ILSpy.$(Build.BuildNumber).zip
archiveFile: $(Build.ArtifactStagingDirectory)\$(ReleaseChannel)\ILSpy.$(Build.BuildNumber).zip
includeRootFolder: false
condition: and(succeeded(), eq(variables['ReleaseChannel'], 'Zip'))

@@ -95,20 +89,12 @@ jobs:
contents: |
**\*.vsix
**\*.nupkg
targetFolder: $(Build.ArtifactStagingDirectory)\$(BuildConfiguration)
targetFolder: $(Build.ArtifactStagingDirectory)\$(ReleaseChannel)
flattenFolders: true
condition: and(succeeded(), eq(variables['ReleaseChannel'], 'Zip'))

- task: PublishPipelineArtifact@0
displayName: Publish $(BuildConfiguration) Zip
inputs:
targetPath: $(Build.ArtifactStagingDirectory)\$(BuildConfiguration)
artifactName: Binaries - $(BuildConfiguration)
condition: and(succeeded(), eq(variables['ReleaseChannel'], 'Zip'))

- task: PublishPipelineArtifact@0
displayName: Publish $(ReleaseChannel)
displayName: Publish $(ReleaseChannel) $(BuildConfiguration)
inputs:
targetPath: $(Build.ArtifactStagingDirectory)\$(ReleaseChannel)
artifactName: Package - $(ReleaseChannel)
condition: and(succeeded(), or(eq(variables['ReleaseChannel'], 'Store'), eq(variables['ReleaseChannel'], 'CI')))
artifactName: $(ReleaseChannel) - $(BuildConfiguration)

0 comments on commit 36b2003

Please sign in to comment.
You can’t perform that action at this time.