{"action":"closed","issue":{"url":"https://api.github.com/repos/GitTools/GitVersion/issues/1152","repository_url":"https://api.github.com/repos/GitTools/GitVersion","labels_url":"https://api.github.com/repos/GitTools/GitVersion/issues/1152/labels{/name}","comments_url":"https://api.github.com/repos/GitTools/GitVersion/issues/1152/comments","events_url":"https://api.github.com/repos/GitTools/GitVersion/issues/1152/events","html_url":"https://github.com/GitTools/GitVersion/issues/1152","id":206836435,"number":1152,"title":"Feature Request: Ability to update the version in a nuspec file","user":{"login":"kjjuno","id":7504094,"avatar_url":"https://avatars.githubusercontent.com/u/7504094?v=3","gravatar_id":"","url":"https://api.github.com/users/kjjuno","html_url":"https://github.com/kjjuno","followers_url":"https://api.github.com/users/kjjuno/followers","following_url":"https://api.github.com/users/kjjuno/following{/other_user}","gists_url":"https://api.github.com/users/kjjuno/gists{/gist_id}","starred_url":"https://api.github.com/users/kjjuno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kjjuno/subscriptions","organizations_url":"https://api.github.com/users/kjjuno/orgs","repos_url":"https://api.github.com/users/kjjuno/repos","events_url":"https://api.github.com/users/kjjuno/events{/privacy}","received_events_url":"https://api.github.com/users/kjjuno/received_events","type":"User","site_admin":false},"labels":[{"id":53794915,"url":"https://api.github.com/repos/GitTools/GitVersion/labels/wontfix","name":"wontfix","color":"ffffff","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-02-10T16:11:06Z","updated_at":"2017-02-25T10:03:12Z","closed_at":"2017-02-25T10:03:12Z","body":"`GitVersion.exe /UpdateAssemblyInfo` does wonders for embedding version information in the assemblies themselves. However, if you use the full build metadata in the AssemblyInformationalVersion you cannot use the `$version$` replacement token to set the version.\r\n\r\nOften this isn't a big deal because you can capture the GitVersion output of the NuGetVersion variable and pass it in as the variable during a pack command.\r\n\r\nHowever, if you want to do automatic dependency resolution for referenced projects you run into an issue. My team's solution so far has been to use the NuGetVersion variable as the AssemblyInformationalVersion. This has the huge drawback of losing all the information about the SHA1 and the branch etc...\r\n\r\nIf we could have GitVersion update the nuspec file with the version, similar to what it's doing with AssemblyInfo.cs this problem gets resolved. We could use the full build metadata, and also correctly determine nuget dependencies for referenced projects.\r\n\r\nMy initial suggestion for the flag would be `GitVersion.exe /UpdateNuspec` for updating all .nuspec files in the repository, and `GitVersion.exe /UpdateNuspec <path>` to update a specific nuspec file."}}
{"actor":{"display_login":"JakeGinnivan"}}