Skip to content

Commit 951145d

Browse files
committed
Changed Version to use custom SemVer property
By default, `GitVersion` writes out the fully-qualified SemVer 2.0 version to the DLLs. If the `nuspec` uses `$version$` it will thus inherit this. Unfortunately, VSTS doesn't currently support SemVer 2.0 format URLs (even though *NuGet* itself does). As such, the build server passes in a custom property, `SemVer`, which sets the value to the `LegacySemVerPadded` variable. This will ensure compatibility is maintained with the VSTS Package Manager.
1 parent 01d5d1a commit 951145d

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

Ignia.Topics.Data.Caching/Ignia.Topics.Data.Caching.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package >
33
<metadata>
44
<id>$id$</id>
5-
<version>$version$</version>
5+
<version>$SemVer$</version>
66
<title>$title$</title>
77
<authors>Ignia</authors>
88
<owners>JeremyCaney</owners>

Ignia.Topics.Data.Sql/Ignia.Topics.Data.Sql.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package >
33
<metadata>
44
<id>$id$</id>
5-
<version>$version$</version>
5+
<version>$SemVer$</version>
66
<title>$title$</title>
77
<authors>Ignia</authors>
88
<owners>JeremyCaney</owners>

Ignia.Topics.ViewModels/Ignia.Topics.ViewModels.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package >
33
<metadata>
44
<id>$id$</id>
5-
<version>$version$</version>
5+
<version>$SemVer$</version>
66
<title>$title$</title>
77
<authors>Ignia</authors>
88
<owners>JeremyCaney</owners>

Ignia.Topics.Web.Mvc/Ignia.Topics.Web.Mvc.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package >
33
<metadata>
44
<id>$id$</id>
5-
<version>$version$</version>
5+
<version>$SemVer$</version>
66
<title>$title$</title>
77
<authors>Ignia</authors>
88
<owners>JeremyCaney</owners>

Ignia.Topics.Web/Ignia.Topics.Web.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package >
33
<metadata>
44
<id>$id$</id>
5-
<version>$version$</version>
5+
<version>$SemVer$</version>
66
<title>$title$</title>
77
<authors>Ignia</authors>
88
<owners>JeremyCaney</owners>

Ignia.Topics/Ignia.Topics.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package >
33
<metadata>
44
<id>$id$</id>
5-
<version>$version$</version>
5+
<version>$SemVer$</version>
66
<title>$title$</title>
77
<authors>Ignia</authors>
88
<owners>JeremyCaney</owners>

0 commit comments

Comments
 (0)