Skip to content

Instantly share code, notes, and snippets.

@james-dibble
Created October 19, 2014 09:59
Show Gist options
  • Save james-dibble/70587f86d0f29553d9f5 to your computer and use it in GitHub Desktop.
Save james-dibble/70587f86d0f29553d9f5 to your computer and use it in GitHub Desktop.
Appveyor before build arguments to patch the csproj file so that a ClickOnce manifest's version is in sync
[xml]$projectFile = Get-Content "C:\projects\chocolateyexplorer\ChocolateyExplorer.WPF\ChocolateyExplorer.WPF.csproj"
$projectFile.Project.ChildNodes.Item(1).ApplicationVersion = "$env:APPVEYOR_BUILD_VERSION"
$projectFile.Save("C:\projects\chocolateyexplorer\ChocolateyExplorer.WPF\ChocolateyExplorer.WPF.csproj")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment