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)
3434 - choco install gitversion.portable -pre
3535
3636before_build:
37- - ps: ./tools/gitversion.exe /l console /output buildserver /updateAssemblyInfo
37+ - nuget restore
38+ - ps: gitversion /l console /output buildserver /updateAssemblyInfo
3839
3940build:
4041 project: <your sln file>" ) ;
@@ -43,17 +44,21 @@ void GenerateBasicConfig(string workingDirectory, IFileSystem fileSystem)
4344 void GenerateNuGetConfig ( string workingDirectory , IFileSystem fileSystem )
4445 {
4546 WriteConfig ( workingDirectory , fileSystem , @"install:
46- - choco install gitversion.portable -pre
47+ - choco install gitversion.portable -pre -y
48+
49+ assembly_info:
50+ patch: false
4751
4852before_build:
49- - ps: ./tools/gitversion.exe /l console /output buildserver /updateAssemblyInfo
53+ - nuget restore
54+ - ps: gitversion /l console /output buildserver /updateAssemblyInfo
5055
5156build:
5257 project: <your sln file>
5358
5459after_build:
5560 - 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%""
5762 - cmd: appveyor PushArtifact ""<NuSpec>.%GitVersion_NuGetVersion%.nupkg""" ) ;
5863 }
5964
You can’t perform that action at this time.
0 commit comments