Skip to content

Commit

Permalink
Fix nuget package version numbers.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaubry committed Nov 11, 2014
1 parent 4abff99 commit 9dfaf70
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion YamlDotNet/YamlDotNet.Signed.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package>
<metadata>
<id>YamlDotNet.Signed</id>
<version>$version$</version>
<version>0.0.1</version>
<authors>Antoine Aubry</authors>
<description>A .NET library for YAML. YamlDotNet provides low level parsing and emitting of YAML as well as a high level object model similar to XmlDocument.</description>
<summary>This package contains the YAML parser and serializer. This is the signed version of the package.</summary>
Expand Down
2 changes: 1 addition & 1 deletion YamlDotNet/YamlDotNet.Unsigned.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package>
<metadata>
<id>YamlDotNet</id>
<version>$version$</version>
<version>0.0.1</version>
<authors>Antoine Aubry</authors>
<description>A .NET library for YAML. YamlDotNet provides low level parsing and emitting of YAML as well as a high level object model similar to XmlDocument.</description>
<summary>This package contains the YAML parser and serializer.</summary>
Expand Down
7 changes: 1 addition & 6 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@
}
}

$version = $env:APPVEYOR_BUILD_VERSION
if($version -eq $null) {
$version = "0.0.1"
}

"Unsigned", "Signed" | % {
nuget pack YamlDotNet\YamlDotNet.$_.nuspec -Version $version -OutputDirectory YamlDotNet\bin
nuget pack YamlDotNet\YamlDotNet.$_.nuspec -OutputDirectory YamlDotNet\bin
}
2 changes: 2 additions & 0 deletions prebuild.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ if($env:APPVEYOR_REPO_BRANCH -ne "release") {
$version = "$version-pre$buildNumber"
}

Patch-Xml "YamlDotNet\YamlDotNet.Unsigned.nuspec" $version "/package/metadata/version/text()" @{ }
Patch-Xml "YamlDotNet\YamlDotNet.Signed.nuspec" $version "/package/metadata/version/text()" @{ }
Patch-AssemblyInfo "YamlDotNet\Properties\AssemblyInfo.cs" $version

0 comments on commit 9dfaf70

Please sign in to comment.