Skip to content

Commit

Permalink
-Build
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesNK committed Mar 21, 2017
1 parent 4d52fcd commit 4e5cf7b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Build/build.ps1
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
properties {
$zipFileName = "JsonBson10r2.zip"
$zipFileName = "JsonBson10r1.zip"
$majorVersion = "1.0"
$majorWithReleaseVersion = "1.0.1"
$nugetPrerelease = "beta2"
$nugetPrerelease = $null
$version = GetVersion $majorWithReleaseVersion
$packageId = "Newtonsoft.Json.Bson"
$signAssemblies = $false
Expand Down Expand Up @@ -63,8 +63,8 @@ task Build -depends Clean {
$projectPath = "$workingSourceDir\Newtonsoft.Json.Bson\Newtonsoft.Json.Bson.csproj"

$xml = [xml](Get-Content $projectPath)
Edit-XmlNodes -doc $xml -xpath "/Project/PropertyGroup/VersionPrefix/text()" -value $majorWithReleaseVersion
Edit-XmlNodes -doc $xml -xpath "/Project/PropertyGroup/VersionSuffix/text()" -value $nugetPrerelease
Edit-XmlNodes -doc $xml -xpath "/Project/PropertyGroup/VersionPrefix" -value $majorWithReleaseVersion
Edit-XmlNodes -doc $xml -xpath "/Project/PropertyGroup/VersionSuffix" -value $nugetPrerelease

Write-Host $xml.OuterXml

Expand Down

0 comments on commit 4e5cf7b

Please sign in to comment.