2
2
3
3
#addin nuget: ? package = Cake . FileHelpers & version = 3.2 .1
4
4
#addin nuget: ? package = Cake . Powershell & version = 0.4 .8
5
+ #addin nuget: ? package = Cake . GitVersioning & version = 3.3 .37
5
6
6
7
#tool nuget: ? package = MSTest . TestAdapter & version = 2.1 .0
7
8
#tool nuget: ? package = vswhere & version = 2.8 .4
@@ -20,7 +21,6 @@ var target = Argument("target", "Default");
20
21
// VERSIONS
21
22
//////////////////////////////////////////////////////////////////////
22
23
23
- var gitVersioningVersion = "3.1.91" ;
24
24
var inheritDocVersion = "2.5.2" ;
25
25
26
26
//////////////////////////////////////////////////////////////////////
@@ -40,7 +40,6 @@ var taefBinDir = baseDir + "/UITests/UITests.Tests.TAEF/bin/Release/netcoreapp3.
40
40
var styler = toolsDir + "/XamlStyler.Console/tools/xstyler.exe" ;
41
41
var stylerFile = baseDir + "/settings.xamlstyler" ;
42
42
43
- var versionClient = toolsDir + "/nerdbank.gitversioning/tools/Get-Version.ps1" ;
44
43
string Version = null ;
45
44
46
45
var inheritDoc = toolsDir + "/InheritDoc/tools/InheritDoc.exe" ;
@@ -99,8 +98,7 @@ void VerifyHeaders(bool Replace)
99
98
void RetrieveVersion ( )
100
99
{
101
100
Information ( "\n Retrieving version..." ) ;
102
- var results = StartPowershellFile ( versionClient ) ;
103
- Version = results [ 1 ] . Properties [ "NuGetPackageVersion" ] . Value . ToString ( ) ;
101
+ Version = GitVersioningGetVersion ( ) . NuGetPackageVersion ;
104
102
Information ( "\n Build Version: " + Version ) ;
105
103
}
106
104
@@ -137,15 +135,6 @@ Task("Version")
137
135
. Description ( "Updates the version information in all Projects" )
138
136
. Does ( ( ) =>
139
137
{
140
- Information ( "\n Downloading NerdBank GitVersioning..." ) ;
141
- var installSettings = new NuGetInstallSettings {
142
- ExcludeVersion = true ,
143
- Version = gitVersioningVersion ,
144
- OutputDirectory = toolsDir
145
- } ;
146
-
147
- NuGetInstall ( new [ ] { "nerdbank.gitversioning" } , installSettings ) ;
148
-
149
138
RetrieveVersion ( ) ;
150
139
} ) ;
151
140
0 commit comments