Skip to content

Commit 2df85c1

Browse files
authored
Adding GitVesion to handle Semver versioning (#3)
* Integrate with GitVersion for SemVer * Adding mono-complete and libcurl3 to ubuntu build * Attempt to fix yml issues * Disabling SemVer in linux build until GitTools/GitVersion#1499 is released. Also follow: GitTools/GitVersion#1527
1 parent 6b845f2 commit 2df85c1

File tree

2 files changed

+21
-8
lines changed

2 files changed

+21
-8
lines changed

Spritey.sln

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 15
44
VisualStudioVersion = 15.0.28010.2036
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Spritey", "src\Spritey\Spritey.csproj", "{5F13E2F9-AFDB-4176-8452-9835BF87250E}"
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Spritey", "src\Spritey\Spritey.csproj", "{1630085E-AA4D-4158-84FF-8897C2518463}"
77
EndProject
88
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Spritey.Test", "tests\Spritey.Test\Spritey.Test.csproj", "{B108D4F4-4885-4F08-91DE-E0F0E419266D}"
99
EndProject
@@ -15,7 +15,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SolutionItems", "SolutionIt
1515
ProjectSection(SolutionItems) = preProject
1616
.editorconfig = .editorconfig
1717
.gitignore = .gitignore
18-
appveyor.yml = appveyor.yml
18+
azure-pipelines.yml = azure-pipelines.yml
1919
.vscode\launch.json = .vscode\launch.json
2020
LICENSE = LICENSE
2121
README.md = README.md
@@ -30,10 +30,10 @@ Global
3030
Release|Any CPU = Release|Any CPU
3131
EndGlobalSection
3232
GlobalSection(ProjectConfigurationPlatforms) = postSolution
33-
{5F13E2F9-AFDB-4176-8452-9835BF87250E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
34-
{5F13E2F9-AFDB-4176-8452-9835BF87250E}.Debug|Any CPU.Build.0 = Debug|Any CPU
35-
{5F13E2F9-AFDB-4176-8452-9835BF87250E}.Release|Any CPU.ActiveCfg = Release|Any CPU
36-
{5F13E2F9-AFDB-4176-8452-9835BF87250E}.Release|Any CPU.Build.0 = Release|Any CPU
33+
{1630085E-AA4D-4158-84FF-8897C2518463}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
34+
{1630085E-AA4D-4158-84FF-8897C2518463}.Debug|Any CPU.Build.0 = Debug|Any CPU
35+
{1630085E-AA4D-4158-84FF-8897C2518463}.Release|Any CPU.ActiveCfg = Release|Any CPU
36+
{1630085E-AA4D-4158-84FF-8897C2518463}.Release|Any CPU.Build.0 = Release|Any CPU
3737
{B108D4F4-4885-4F08-91DE-E0F0E419266D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
3838
{B108D4F4-4885-4F08-91DE-E0F0E419266D}.Debug|Any CPU.Build.0 = Debug|Any CPU
3939
{B108D4F4-4885-4F08-91DE-E0F0E419266D}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -43,7 +43,7 @@ Global
4343
HideSolutionNode = FALSE
4444
EndGlobalSection
4545
GlobalSection(NestedProjects) = preSolution
46-
{5F13E2F9-AFDB-4176-8452-9835BF87250E} = {8C1C7CA9-0F75-4056-96B1-8932F656F644}
46+
{1630085E-AA4D-4158-84FF-8897C2518463} = {8C1C7CA9-0F75-4056-96B1-8932F656F644}
4747
{B108D4F4-4885-4F08-91DE-E0F0E419266D} = {74F351E4-ED89-4128-9F93-F11CEC4E3764}
4848
EndGlobalSection
4949
GlobalSection(ExtensibilityGlobals) = postSolution

azure-pipelines.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,21 @@ jobs:
1313
buildConfiguration: 'Release'
1414

1515
steps:
16+
#- script: |
17+
# pwsh -c '.\UpdateBuildVersion.ps1'
18+
# displayName: 'Build and Test'
19+
- task: gittools.gitversion.gitversion-task.GitVersion@4
20+
displayName: GitVersion
21+
inputs:
22+
updateAssemblyInfo: true
23+
preferBundledVersion: false
1624
- task: SonarSource.sonarqube.15B84CA1-B62F-4A2A-A403-89B77A063157.SonarQubePrepare@4
1725
displayName: 'Prepare analysis on SonarQube'
1826
inputs:
1927
SonarQube: SonarQube.io
2028
projectKey: 'BrandonBoone_Spritey'
2129
projectName: Spritey
22-
projectVersion: '$(AssemblyVersion)'
30+
projectVersion: '$(GitVersion.SemVer)'
2331
extraProperties: |
2432
sonar.organization=brandonboone-github
2533
sonar.branch.name=$(Build.SourceBranchName)
@@ -49,6 +57,11 @@ jobs:
4957
buildConfiguration: 'Release'
5058

5159
steps:
60+
# - task: gittools.gitversion.gitversion-task.GitVersion@4
61+
# displayName: GitVersion
62+
# inputs:
63+
# updateAssemblyInfo: true
64+
# preferBundledVersion: false
5265
- script: dotnet restore Spritey.sln
5366
displayName: Restore Spritey.sln
5467
- script: dotnet build ./src/Spritey/Spritey.csproj

0 commit comments

Comments
 (0)