File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 127
127
<Copy SourceFiles =" $(OutputPath)\GitVersion.exe" DestinationFolder =" $(SolutionDir)NuGetExeBuild\Tools" />
128
128
<Copy SourceFiles =" $(ProjectDir)NugetAssets\chocolateyInstall.ps1" DestinationFolder =" $(SolutionDir)NuGetExeBuild\Tools" />
129
129
<Copy SourceFiles =" $(ProjectDir)NugetAssets\chocolateyUninstall.ps1" DestinationFolder =" $(SolutionDir)NuGetExeBuild\Tools" />
130
- <Copy SourceFiles =" $(ProjectDir)NugetAssets\GitVersion.nuspec" DestinationFolder =" $(SolutionDir)NuGetExeBuild" />
130
+ <Copy SourceFiles =" $(ProjectDir)NugetAssets\GitVersion.Portable. nuspec" DestinationFolder =" $(SolutionDir)NuGetExeBuild" />
131
131
<PepitaPackage .CreatePackageTask NuGetBuildDirectory =" $(SolutionDir)NuGetExeBuild" MetadataAssembly =" $(OutputPath)GitVersion.exe" />
132
132
<!-- NugetCommandLineBuild -->
133
133
<MakeDir Directories =" $(SolutionDir)NuGetCommandLineBuild" />
147
147
<Copy SourceFiles =" $(ProjectDir)GemAssets\gitversion" DestinationFolder =" $(SolutionDir)GemBuild\bin" />
148
148
<Copy SourceFiles =" $(ProjectDir)GemAssets\gitversion.gemspec" DestinationFolder =" $(SolutionDir)GemBuild" />
149
149
150
+ <PropertyGroup >
151
+ <GemVersion Condition =" '$(GitVersion_PreReleaseTag)' == ''" >$(GitVersion_MajorMinorPatch)</GemVersion >
152
+ <GemVersion Condition =" '$(GitVersion_PreReleaseTag)' != ''" >$(GitVersion_MajorMinorPatch).$(GitVersion_PreReleaseTag)</GemVersion >
153
+ </PropertyGroup >
154
+
150
155
<ReplaceFileText
151
156
InputFilename =" $(SolutionDir)GemBuild\gitversion.gemspec"
152
157
OutputFilename =" $(SolutionDir)GemBuild\gitversion.gemspec"
153
158
MatchExpression =" \$version\$"
154
- ReplacementText =" $(GitVersion_SemVer )"
159
+ ReplacementText =" $(GemVersion )"
155
160
Condition =" '$(GitVersion_SemVer)' != ''" />
156
161
157
162
<Exec Command =" gem build gitversion.gemspec" ContinueOnError =" True"
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" ?>
2
2
<package xmlns =" http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd" >
3
3
<metadata >
4
- <id >GitVersion</id >
4
+ <id >GitVersion.Portable </id >
5
5
<version >$version$</version >
6
6
<title >GitVersion</title >
7
7
<authors >NServiceBus Ltd</authors >
You can’t perform that action at this time.
0 commit comments