Skip to content

Commit ebca936

Browse files
committed
Update to use the newer build number system in TeamCity
1 parent 7a4705f commit ebca936

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

common/GlobalAssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
[assembly: AssemblyCompany("Outercurve Foundation")]
44
[assembly: AssemblyProduct("xUnit.net Runner for Visual Studio")]
55
[assembly: AssemblyCopyright("Copyright (C) Outercurve Foundation")]
6-
[assembly: AssemblyVersion("0.99.10.0")]
6+
[assembly: AssemblyVersion("99.99.99.0")]

visualstudio.xunit.proj

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,22 @@
6969

7070
<Target Name="SetVersionNumber">
7171
<RegexReplace
72-
Pattern='&lt;version&gt;(\d+\.\d+\.\d+(-[A-Za-z0-9-]+)?)&lt;'
73-
Replacement='&lt;version&gt;$1-build$(BuildNumber)&lt;'
74-
Files='@(NuspecFiles)'/>
72+
Pattern='AssemblyVersion\("99\.99\.99\.0"\)'
73+
Replacement='AssemblyVersion("$(BuildAssemblyVersion)")'
74+
Files='common\GlobalAssemblyInfo.cs'
75+
Condition=" '$(BuildAssemblyVersion)' != '' "/>
7576
<RegexReplace
76-
Pattern='version=&quot;\[(\d+\.\d+\.\d+(-[A-Za-z0-9-]+)?)\]&quot;'
77-
Replacement='version=&quot;[$1-build$(BuildNumber)]&quot;'
78-
Files='@(NuspecFiles)'/>
77+
Pattern='99\.99\.99'
78+
Replacement='$(BuildSemanticVersion)'
79+
Files='@(NuspecFiles)'
80+
Condition=" '$(BuildSemanticVersion)' != '' "/>
7981
</Target>
8082

8183
<Target Name='GitHubLink'>
82-
<Exec Command='packages\githublink\tools\GitHubLink.exe $(MSBuildThisFileDirectory) -u https://github.com/xunit/xunit -commit $(CommitHash)' IgnoreExitCode='true' />
84+
<Exec
85+
Command='packages\githublink\tools\GitHubLink.exe $(MSBuildThisFileDirectory) -u https://github.com/xunit/visualstudio.xunit -commit $(CommitHash)'
86+
IgnoreExitCode='true'
87+
Condition=" '$(CommitHash)' != '' "/>
8388
</Target>
8489

8590
<Target Name='Packages' DependsOnTargets="_DownloadNuGet">

xunit.runner.visualstudio.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package>
33
<metadata minClientVersion="2.5">
44
<id>xunit.runner.visualstudio</id>
5-
<version>0.99.10</version>
5+
<version>99.99.99</version>
66
<title>xUnit.net [Visual Studio Runner]</title>
77
<authors>James Newkirk, Brad Wilson</authors>
88
<description>Includes support for running xUnit.net v1 and v2 tests from Visual Studio 2012+.</description>

0 commit comments

Comments
 (0)