Skip to content

Commit e2a83fa

Browse files
author
Jake Ginnivan
committed
Added nuget command line package
1 parent 2accf3e commit e2a83fa

File tree

4 files changed

+28
-3
lines changed

4 files changed

+28
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,4 @@ Thumbs.db
8282
Desktop.ini
8383

8484
_NCrunch_GitVersion
85+
NuGetCommandLineBuild/

Build.cmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set framework=v4.0.30319
66

77
"%SystemDrive%\Windows\Microsoft.NET\Framework\%framework%\MSBuild.exe" "%~dp0GitVersion.sln"
88

9-
mkdir "%~dp0GitVersion\bin\Intermediate"
10-
cp "%~dp0GitVersion\bin\Debug\GitVersion.exe" "%~dp0GitVersion\bin\Intermediate\GitVersion.exe"
9+
mkdir "%~dp0GitVersionExe\bin\Intermediate"
10+
cp "%~dp0GitVersionExe\bin\Debug\GitVersion.exe" "%~dp0GitVersionExe\bin\Intermediate\GitVersion.exe"
1111

12-
"%~dp0GitVersion\bin\Intermediate\GitVersion.exe" /l console /output buildserver /updateAssemblyInfo /proj "%~dp0GitVersion.sln"
12+
"%~dp0GitVersionExe\bin\Intermediate\GitVersion.exe" /l console /output buildserver /updateAssemblyInfo /proj "%~dp0GitVersion.sln"

GitVersionExe/GitVersionExe.csproj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
<None Include="NugetAssets\chocolateyUninstall.ps1">
6767
<SubType>Designer</SubType>
6868
</None>
69+
<None Include="NugetAssets\GitVersion.CommandLine.nuspec" />
6970
<None Include="NugetAssets\GitVersion.nuspec">
7071
<SubType>Designer</SubType>
7172
</None>
@@ -106,6 +107,12 @@
106107
<Copy SourceFiles="$(ProjectDir)NugetAssets\chocolateyUninstall.ps1" DestinationFolder="$(SolutionDir)NuGetExeBuild\Tools" />
107108
<Copy SourceFiles="$(ProjectDir)NugetAssets\GitVersion.nuspec" DestinationFolder="$(SolutionDir)NuGetExeBuild" />
108109
<PepitaPackage.CreatePackageTask NuGetBuildDirectory="$(SolutionDir)NuGetExeBuild" MetadataAssembly="$(OutputPath)GitVersion.exe" />
110+
<!-- NugetCommandLineBuild -->
111+
<MakeDir Directories="$(SolutionDir)NuGetCommandLineBuild" />
112+
<Copy SourceFiles="$(OutputPath)\GitVersion.pdb" DestinationFolder="$(SolutionDir)NuGetCommandLineBuild\Tools" />
113+
<Copy SourceFiles="$(OutputPath)\GitVersion.exe" DestinationFolder="$(SolutionDir)NuGetCommandLineBuild\Tools" />
114+
<Copy SourceFiles="$(ProjectDir)NugetAssets\GitVersion.CommandLine.nuspec" DestinationFolder="$(SolutionDir)NuGetCommandLineBuild" />
115+
<PepitaPackage.CreatePackageTask NuGetBuildDirectory="$(SolutionDir)NuGetCommandLineBuild" MetadataAssembly="$(OutputPath)GitVersion.exe" />
109116
<!-- Gem -->
110117
<Copy SourceFiles="$(OutputPath)\GitVersion.pdb" DestinationFolder="$(SolutionDir)GemBuild\bin" />
111118
<Copy SourceFiles="$(OutputPath)\GitVersion.exe" DestinationFolder="$(SolutionDir)GemBuild\bin" />
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0"?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
3+
<metadata>
4+
<id>GitVersion.CommandLine</id>
5+
<version>$version$</version>
6+
<title>GitVersion</title>
7+
<authors>NServiceBus Ltd</authors>
8+
<owners>nservicebus, simoncropp</owners>
9+
<licenseUrl>http://www.opensource.org/licenses/mit-license.php</licenseUrl>
10+
<projectUrl>http://github.com/Particular/GitVersion</projectUrl>
11+
<iconUrl>https://raw.github.com/Particular/GitVersion/master/Icons/package_icon.png</iconUrl>
12+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
13+
<description>Derives SemVer information from a repository following GitFlow or GitHubFlow.</description>
14+
<language>en-AU</language>
15+
<tags>Git, Versioning, GitVersion, GitFlowVersion, GitFlow, GitHubFlow, SemVer</tags>
16+
</metadata>
17+
</package>

0 commit comments

Comments
 (0)