Skip to content

Commit 0f164a7

Browse files
committed
Fixed up the initial scripts
1 parent a28dc70 commit 0f164a7

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

GitVersionCore/Configuration/Init/BuildServer/AppVeyorSetup.cs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ void GenerateBasicConfig(string workingDirectory, IFileSystem fileSystem)
3434
- choco install gitversion.portable -pre
3535
3636
before_build:
37-
- ps: ./tools/gitversion.exe /l console /output buildserver /updateAssemblyInfo
37+
- nuget restore
38+
- ps: gitversion /l console /output buildserver /updateAssemblyInfo
3839
3940
build:
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
4852
before_build:
49-
- ps: ./tools/gitversion.exe /l console /output buildserver /updateAssemblyInfo
53+
- nuget restore
54+
- ps: gitversion /l console /output buildserver /updateAssemblyInfo
5055
5156
build:
5257
project: <your sln file>
5358
5459
after_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

0 commit comments

Comments
 (0)