Skip to content

Commit

Permalink
Set assembly version during build
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetseckin committed Nov 16, 2019
1 parent 373c888 commit 1cf9532
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pipelines/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ variables:
solutionFile: $(Build.SourcesDirectory)/src/Todo.CLI.sln

steps:
- script: dotnet build $(solutionFile) --configuration $(buildConfiguration)
- script: dotnet build $(solutionFile) --configuration $(buildConfiguration) /p:Version=$(Build.BuildNumber)
displayName: 'Build solution'

2 changes: 1 addition & 1 deletion pipelines/linux-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ variables:
outputDirectory: $(Build.ArtifactStagingDirectory)/$(runtimeIdentifier)/

steps:
- script: dotnet publish $(projectDirectory) -c $(buildConfiguration) -r $(runtimeIdentifier) -o $(outputDirectory) --self-contained true
- script: dotnet publish $(projectDirectory) -c $(buildConfiguration) -r $(runtimeIdentifier) -o $(outputDirectory) /p:Version=$(Build.BuildNumber) --self-contained true
displayName: 'Publish self-contained executable for $(runtimeIdentifier)'
- task: PublishBuildArtifacts@1
displayName: 'Publish artefact for $(runtimeIdentifier)'
Expand Down
2 changes: 1 addition & 1 deletion pipelines/osx-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ variables:
outputDirectory: $(Build.ArtifactStagingDirectory)/$(runtimeIdentifier)/

steps:
- script: dotnet publish $(projectDirectory) -c $(buildConfiguration) -r $(runtimeIdentifier) -o $(outputDirectory) --self-contained true
- script: dotnet publish $(projectDirectory) -c $(buildConfiguration) -r $(runtimeIdentifier) -o $(outputDirectory) /p:Version=$(Build.BuildNumber) --self-contained true
displayName: 'Publish self-contained executable for $(runtimeIdentifier)'
- task: PublishBuildArtifacts@1
displayName: 'Publish artefact for $(runtimeIdentifier)'
Expand Down
2 changes: 1 addition & 1 deletion pipelines/win10-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ variables:
outputDirectory: $(Build.ArtifactStagingDirectory)/$(runtimeIdentifier)/

steps:
- script: dotnet publish $(projectDirectory) -c $(buildConfiguration) -r $(runtimeIdentifier) -o $(outputDirectory) --self-contained true
- script: dotnet publish $(projectDirectory) -c $(buildConfiguration) -r $(runtimeIdentifier) -o $(outputDirectory) /p:Version=$(Build.BuildNumber) --self-contained true
displayName: 'Publish as self-contained executable for $(runtimeIdentifier)'
- task: PublishBuildArtifacts@1
displayName: 'Publish artefact for $(runtimeIdentifier)'
Expand Down

0 comments on commit 1cf9532

Please sign in to comment.