File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
GitVersionCore/Configuration/Init/BuildServer Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,8 @@ void GenerateBasicConfig(string workingDirectory, IFileSystem fileSystem)
34
34
- choco install gitversion.portable -pre
35
35
36
36
before_build:
37
- - ps: ./tools/gitversion.exe /l console /output buildserver /updateAssemblyInfo
37
+ - nuget restore
38
+ - ps: gitversion /l console /output buildserver /updateAssemblyInfo
38
39
39
40
build:
40
41
project: <your sln file>" ) ;
@@ -43,17 +44,21 @@ void GenerateBasicConfig(string workingDirectory, IFileSystem fileSystem)
43
44
void GenerateNuGetConfig ( string workingDirectory , IFileSystem fileSystem )
44
45
{
45
46
WriteConfig ( workingDirectory , fileSystem , @"install:
46
- - choco install gitversion.portable -pre
47
+ - choco install gitversion.portable -pre -y
48
+
49
+ assembly_info:
50
+ patch: false
47
51
48
52
before_build:
49
- - ps: ./tools/gitversion.exe /l console /output buildserver /updateAssemblyInfo
53
+ - nuget restore
54
+ - ps: gitversion /l console /output buildserver /updateAssemblyInfo
50
55
51
56
build:
52
57
project: <your sln file>
53
58
54
59
after_build:
55
60
- cmd: ECHO nuget pack <Project>\<NuSpec>.nuspec -version ""%GitVersion_NuGetVersion%"" -prop ""target=%CONFIGURATION%""
56
- - cmd: nuget pack <Project>\<NuSpec>.nuspec - version ""%GitVersion_NuGetVersion%"" - prop ""target=%CONFIGURATION%""
61
+ - cmd: nuget pack <Project>\<NuSpec>.nuspec -version ""%GitVersion_NuGetVersion%"" -prop ""target=%CONFIGURATION%""
57
62
- cmd: appveyor PushArtifact ""<NuSpec>.%GitVersion_NuGetVersion%.nupkg""" ) ;
58
63
}
59
64
You can’t perform that action at this time.
0 commit comments