{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/sdk/issues/438","repository_url":"https://api.github.com/repos/dotnet/sdk","labels_url":"https://api.github.com/repos/dotnet/sdk/issues/438/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/sdk/issues/438/comments","events_url":"https://api.github.com/repos/dotnet/sdk/issues/438/events","html_url":"https://github.com/dotnet/sdk/issues/438","id":192389069,"number":438,"title":"Duplicated assembly info attributes when using custom tasks to set version","user":{"login":"twsouthwick","id":583206,"avatar_url":"https://avatars.githubusercontent.com/u/583206?v=3","gravatar_id":"","url":"https://api.github.com/users/twsouthwick","html_url":"https://github.com/twsouthwick","followers_url":"https://api.github.com/users/twsouthwick/followers","following_url":"https://api.github.com/users/twsouthwick/following{/other_user}","gists_url":"https://api.github.com/users/twsouthwick/gists{/gist_id}","starred_url":"https://api.github.com/users/twsouthwick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twsouthwick/subscriptions","organizations_url":"https://api.github.com/users/twsouthwick/orgs","repos_url":"https://api.github.com/users/twsouthwick/repos","events_url":"https://api.github.com/users/twsouthwick/events{/privacy}","received_events_url":"https://api.github.com/users/twsouthwick/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-29T20:21:43Z","updated_at":"2016-11-30T03:56:14Z","closed_at":null,"body":"I usually generate assembly information (such as version, informational version, etc) with custom tasks. However, when trying to use these with the SDK, it fails with errors such as `Duplicate 'AssemblyVersion' attribute`. If I add `<GenerateAssemblyInfo>false</GenerateAssemblyInfo>` to the csproj it is built with no issue and my custom generated versions are available.\r\n\r\nA simple way to reproduce this is to add the `GitVersionTask` to the project and attempt to build.\r\n\r\nThe SDKs I'm using are:\r\n\r\n```\r\n<PackageReference Include=\"Microsoft.NET.Sdk\">\r\n  <Version>1.0.0-alpha-20161104-2</Version>\r\n  <PrivateAssets>All</PrivateAssets>\r\n</PackageReference>\r\n<PackageReference Include=\"Microsoft.NET.Sdk.Web\">\r\n  <Version>1.0.0-alpha-20161104-2-112</Version>\r\n  <PrivateAssets>All</PrivateAssets>\r\n</PackageReference>\r\n```"},"comment":{"url":"https://api.github.com/repos/dotnet/sdk/issues/comments/263776843","html_url":"https://github.com/dotnet/sdk/issues/438#issuecomment-263776843","issue_url":"https://api.github.com/repos/dotnet/sdk/issues/438","id":263776843,"user":{"login":"twsouthwick","id":583206,"avatar_url":"https://avatars.githubusercontent.com/u/583206?v=3","gravatar_id":"","url":"https://api.github.com/users/twsouthwick","html_url":"https://github.com/twsouthwick","followers_url":"https://api.github.com/users/twsouthwick/followers","following_url":"https://api.github.com/users/twsouthwick/following{/other_user}","gists_url":"https://api.github.com/users/twsouthwick/gists{/gist_id}","starred_url":"https://api.github.com/users/twsouthwick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twsouthwick/subscriptions","organizations_url":"https://api.github.com/users/twsouthwick/orgs","repos_url":"https://api.github.com/users/twsouthwick/repos","events_url":"https://api.github.com/users/twsouthwick/events{/privacy}","received_events_url":"https://api.github.com/users/twsouthwick/received_events","type":"User","site_admin":false},"created_at":"2016-11-30T03:56:14Z","updated_at":"2016-11-30T03:56:14Z","body":"Yeah, what @dsplaisted is more of the issue. The change makes sense, but it did block me for an hour or so while converting a project to this format. What about including `<GenerateAssemblyInfo>true</GenerateAssemblyInfo>` by default in the csproj template file? Then it would be (more) discoverable."}}
{"actor":{"display_login":"twsouthwick"}}