Skip to content

Commit 42f1f58

Browse files
committed
Update azure-pipelines.yml for Azure Pipelines
1 parent bf58eba commit 42f1f58

File tree

1 file changed

+19
-12
lines changed

1 file changed

+19
-12
lines changed

azure-pipelines.yml

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,31 @@ pool:
1010
vmImage: 'windows-latest'
1111

1212
variables:
13-
solution: '**/*.sln'
13+
project: 'SoftU2FDaemon/*.csproj'
1414
buildConfiguration: 'Release'
1515

1616
steps:
17-
- task: NuGetToolInstaller@0
17+
- task: DotNetCoreInstaller@0
18+
inputs:
19+
version: 'v3.0.0-preview6' # replace this value with the version that you need for your project
1820

19-
- task: NuGetCommand@2
21+
- task: DotNetCoreCLI@2
2022
inputs:
21-
restoreSolution: '$(solution)'
23+
command: restore
24+
projects: $(project)
25+
feedsToUse: config
2226

23-
- task: VSBuild@1
27+
- task: DotNetCoreCLI@2
28+
displayName: Publish win10-x64
2429
inputs:
25-
solution: '$(solution)'
26-
platform: 'x86'
27-
configuration: '$(buildConfiguration)'
30+
command: publish
31+
projects: $(project)
32+
arguments: '--configuration Release -r win10-x64 --output $(Build.ArtifactStagingDirectory)/win10-x64' # Update this to match your need
2833

29-
- task: VSBuild@1
34+
- task: DotNetCoreCLI@2
35+
displayName: Publish win10-x86
3036
inputs:
31-
solution: '$(solution)'
32-
platform: 'x64'
33-
configuration: '$(buildConfiguration)'
37+
command: publish
38+
projects: $(project)
39+
arguments: '--configuration Release -r win10-x64 --output $(Build.ArtifactStagingDirectory)/win10-x86' # Update this to match your need
40+

0 commit comments

Comments
 (0)