{"action":"created","issue":{"url":"https://api.github.com/repos/NuGet/Home/issues/3632","repository_url":"https://api.github.com/repos/NuGet/Home","labels_url":"https://api.github.com/repos/NuGet/Home/issues/3632/labels{/name}","comments_url":"https://api.github.com/repos/NuGet/Home/issues/3632/comments","events_url":"https://api.github.com/repos/NuGet/Home/issues/3632/events","html_url":"https://github.com/NuGet/Home/issues/3632","id":181967381,"number":3632,"title":"Package Version - Support for Major.Minor.Build.Revision","user":{"login":"bednart","id":10383704,"avatar_url":"https://avatars.githubusercontent.com/u/10383704?v=3","gravatar_id":"","url":"https://api.github.com/users/bednart","html_url":"https://github.com/bednart","followers_url":"https://api.github.com/users/bednart/followers","following_url":"https://api.github.com/users/bednart/following{/other_user}","gists_url":"https://api.github.com/users/bednart/gists{/gist_id}","starred_url":"https://api.github.com/users/bednart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bednart/subscriptions","organizations_url":"https://api.github.com/users/bednart/orgs","repos_url":"https://api.github.com/users/bednart/repos","events_url":"https://api.github.com/users/bednart/events{/privacy}","received_events_url":"https://api.github.com/users/bednart/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-10T09:09:00Z","updated_at":"2016-10-10T09:12:05Z","closed_at":null,"body":"Hi,\r\nI was trying to find the answer but without any clear result. I' am using **NuGet 3.5.0-beta2** CMD to create and publish packages to our own NuGet server. And my problem is how to version packages.\r\n\r\nAs described in documentation [here](https://docs.nuget.org/ndocs/schema/nuspec) \"_version\t- The version of the package, in a format like 1.2.3._\" So it tells me that only A.B.C version is allowed which comes from [SemVer](http://semver.org/). But then there is example of [nuspec](https://docs.nuget.org/ndocs/create-packages/creating-a-package) where A.B.C.D is shown _\"<!-- The package version number that is used when resolving dependencies --><version>1.8.3.331</version>\"_\r\n\r\nSo where is the true?\r\n\r\nI'm creating packages based on csproj and in AssemblyInfo.cs file I'm using **[assembly: AssemblyInformationalVersion(\"1.2.3.4\")]**. This version is used in nuspec based on **<version>$version$</version>** element. Created package has right version 1.2.3.4 and I can use it in my projects without any trouble.\r\n\r\nSo my question is. Will there always be support for A.B.C.D version in next NuGet versions? And in general is it reasonable to use it or should I stay with A.B.C version as desribed by SemVer?\r\n\r\nThanks in advice,\r\nTomáš\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/NuGet/Home/issues/comments/252568025","html_url":"https://github.com/NuGet/Home/issues/3632#issuecomment-252568025","issue_url":"https://api.github.com/repos/NuGet/Home/issues/3632","id":252568025,"user":{"login":"davidfowl","id":95136,"avatar_url":"https://avatars.githubusercontent.com/u/95136?v=3","gravatar_id":"","url":"https://api.github.com/users/davidfowl","html_url":"https://github.com/davidfowl","followers_url":"https://api.github.com/users/davidfowl/followers","following_url":"https://api.github.com/users/davidfowl/following{/other_user}","gists_url":"https://api.github.com/users/davidfowl/gists{/gist_id}","starred_url":"https://api.github.com/users/davidfowl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidfowl/subscriptions","organizations_url":"https://api.github.com/users/davidfowl/orgs","repos_url":"https://api.github.com/users/davidfowl/repos","events_url":"https://api.github.com/users/davidfowl/events{/privacy}","received_events_url":"https://api.github.com/users/davidfowl/received_events","type":"User","site_admin":false},"created_at":"2016-10-10T09:12:05Z","updated_at":"2016-10-10T09:12:05Z","body":"> I'm creating packages based on csproj and in AssemblyInfo.cs file I'm using [assembly: AssemblyInformationalVersion(\"1.2.3.4\")]. This version is used in nuspec based on $version$ element. Created package has right version 1.2.3.4 and I can use it in my projects without any trouble.\r\n\r\nYou should be doing the inverse. Making your assembly version based on the package version.\r\n\r\nYou should assume semver for package versions. The only reason nuget supports 4 part versions is because when we originally started, we followed assembly versions."}}
{"actor":{"display_login":"davidfowl"}}