2019-11-12 18:18:39 -05:00
|
|
|
# .NET Desktop
|
|
|
|
# Build and run tests for .NET Desktop or Windows classic desktop solutions.
|
|
|
|
# Add steps that publish symbols, save build artifacts, and more:
|
|
|
|
# https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
- master
|
|
|
|
|
|
|
|
pool:
|
|
|
|
vmImage: 'windows-latest'
|
|
|
|
|
|
|
|
variables:
|
2019-11-13 15:50:00 -05:00
|
|
|
solution: './Client/Simitone/Simitone.sln'
|
2019-11-12 18:18:39 -05:00
|
|
|
buildPlatform: 'Any CPU'
|
|
|
|
buildConfiguration: 'Release'
|
|
|
|
|
|
|
|
steps:
|
2019-11-12 18:24:43 -05:00
|
|
|
- checkout: self
|
|
|
|
submodules: recursive
|
|
|
|
persistCredentials: true
|
2019-11-12 19:25:15 -05:00
|
|
|
|
2019-11-12 20:07:56 -05:00
|
|
|
- powershell: cd ./FreeSO/Other/libs/FSOMonoGame/; ./protobuild.exe --generate; cd ../../../../
|
2019-11-12 19:25:15 -05:00
|
|
|
name: Protobuild
|
2019-11-12 19:39:25 -05:00
|
|
|
continueOnError: true
|
2019-11-12 19:25:15 -05:00
|
|
|
|
2019-11-12 18:18:39 -05:00
|
|
|
- task: NuGetToolInstaller@1
|
|
|
|
|
|
|
|
- task: NuGetCommand@2
|
|
|
|
inputs:
|
|
|
|
restoreSolution: '$(solution)'
|
|
|
|
|
2019-11-13 15:59:30 -05:00
|
|
|
- task: NuGetCommand@2
|
|
|
|
name: RestoreFreeSOAsWellBecauseReasons
|
|
|
|
inputs:
|
|
|
|
restoreSolution: './FreeSO/TSOClient/FreeSO.sln'
|
|
|
|
|
2019-11-13 16:21:10 -05:00
|
|
|
- powershell: cd ./FreeSO/TSOClient/FSO.SimAntics.JIT.Roslyn/; dotnet restore; cd ../../../
|
|
|
|
name: RestoreRoslyn
|
|
|
|
continueOnError: true
|
|
|
|
|
2019-11-12 18:18:39 -05:00
|
|
|
- task: VSBuild@1
|
|
|
|
inputs:
|
|
|
|
solution: '$(solution)'
|
|
|
|
platform: '$(buildPlatform)'
|
2019-11-13 16:21:10 -05:00
|
|
|
msbuildArgs: '/t:Simitone_Windows /p:Configuration=Release;OutDir=$(Build.ArtifactStagingDirectory)'
|
|
|
|
|
2019-11-13 15:47:29 -05:00
|
|
|
- task: NuGetCommand@2
|
|
|
|
inputs:
|
|
|
|
command: 'restore'
|
|
|
|
restoreSolution: '$(solution)'
|
|
|
|
feedsToUse: 'select'
|
|
|
|
restoreDirectory: '$(System.DefaultWorkingDirectory)/packages'
|
2019-11-12 18:18:39 -05:00
|
|
|
|
|
|
|
- task: VSTest@2
|
|
|
|
inputs:
|
|
|
|
platform: '$(buildPlatform)'
|
|
|
|
configuration: '$(buildConfiguration)'
|
2019-11-13 16:21:10 -05:00
|
|
|
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
inputs:
|
|
|
|
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
|
|
|
|
ArtifactName: 'SimitoneWindows'
|
|
|
|
publishLocation: 'Container'
|