{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/cli/issues/4710","repository_url":"https://api.github.com/repos/dotnet/cli","labels_url":"https://api.github.com/repos/dotnet/cli/issues/4710/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/cli/issues/4710/comments","events_url":"https://api.github.com/repos/dotnet/cli/issues/4710/events","html_url":"https://github.com/dotnet/cli/issues/4710","id":189109456,"number":4710,"title":"Duplicate 'System.Reflection.AssemblyCompanyAttribute' attribute","user":{"login":"SamvelS","id":20088485,"avatar_url":"https://avatars.githubusercontent.com/u/20088485?v=3","gravatar_id":"","url":"https://api.github.com/users/SamvelS","html_url":"https://github.com/SamvelS","followers_url":"https://api.github.com/users/SamvelS/followers","following_url":"https://api.github.com/users/SamvelS/following{/other_user}","gists_url":"https://api.github.com/users/SamvelS/gists{/gist_id}","starred_url":"https://api.github.com/users/SamvelS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamvelS/subscriptions","organizations_url":"https://api.github.com/users/SamvelS/orgs","repos_url":"https://api.github.com/users/SamvelS/repos","events_url":"https://api.github.com/users/SamvelS/events{/privacy}","received_events_url":"https://api.github.com/users/SamvelS/received_events","type":"User","site_admin":false},"labels":[{"id":335643392,"url":"https://api.github.com/repos/dotnet/cli/labels/fit-n-finish","name":"fit-n-finish","color":"eb6420","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/dotnet/cli/milestones/13","html_url":"https://github.com/dotnet/cli/milestones/1.0.0-preview4","labels_url":"https://api.github.com/repos/dotnet/cli/milestones/13/labels","id":2098355,"number":13,"title":"1.0.0-preview4","description":"","creator":{"login":"blackdwarf","id":3115004,"avatar_url":"https://avatars.githubusercontent.com/u/3115004?v=3","gravatar_id":"","url":"https://api.github.com/users/blackdwarf","html_url":"https://github.com/blackdwarf","followers_url":"https://api.github.com/users/blackdwarf/followers","following_url":"https://api.github.com/users/blackdwarf/following{/other_user}","gists_url":"https://api.github.com/users/blackdwarf/gists{/gist_id}","starred_url":"https://api.github.com/users/blackdwarf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blackdwarf/subscriptions","organizations_url":"https://api.github.com/users/blackdwarf/orgs","repos_url":"https://api.github.com/users/blackdwarf/repos","events_url":"https://api.github.com/users/blackdwarf/events{/privacy}","received_events_url":"https://api.github.com/users/blackdwarf/received_events","type":"User","site_admin":false},"open_issues":77,"closed_issues":14,"state":"open","created_at":"2016-10-27T19:48:58Z","updated_at":"2016-11-15T20:12:46Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2016-11-14T13:15:10Z","updated_at":"2016-11-15T20:18:51Z","closed_at":null,"body":"## Steps to reproduce\r\nI am using `1.0.0-preview4-004079` prerelase version of .Net core.\r\nMy csproj file is following:\r\n\r\n```\r\n<Project ToolsVersion=\"15.0\" xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\">\r\n  <Import Project=\"$(MSBuildExtensionsPath)\\$(MSBuildToolsVersion)\\Microsoft.Common.props\" />\r\n  \r\n  <PropertyGroup>\r\n    <OutputType>Exe</OutputType>\r\n    <TargetFramework>netcoreapp1.0</TargetFramework>\r\n  </PropertyGroup>\r\n\r\n  <ItemGroup>\r\n    <Compile Include=\"**\\*.cs\" />\r\n    <EmbeddedResource Include=\"**\\*.resx\" />\r\n  </ItemGroup>\r\n\r\n  <ItemGroup>\r\n    <PackageReference Include=\"Microsoft.NETCore.App\">\r\n      <Version>1.0.1</Version>\r\n    </PackageReference>\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\t<PackageReference Include=\"System.Collections.Specialized\">\r\n\t<Version>4.0.1</Version>\r\n\t</PackageReference>\r\n  </ItemGroup> \r\n  <Import Project=\"$(MSBuildToolsPath)\\Microsoft.CSharp.targets\" />\r\n</Project>\r\n\r\n\r\n```\r\n\r\nAfter `dotnet restore` I don't get any error or warning, but after `dotnet build` I am getting 9 errors like `error CS0579: Duplicate 'System.Reflection.AssemblyCompanyAttribute' attribute` .\r\n\r\nIs this because of incorrect version of `System.Collections.Specialized` and how to fix this?\r\n\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dotnet/cli/issues/comments/260755402","html_url":"https://github.com/dotnet/cli/issues/4710#issuecomment-260755402","issue_url":"https://api.github.com/repos/dotnet/cli/issues/4710","id":260755402,"user":{"login":"piotrpMSFT","id":2379589,"avatar_url":"https://avatars.githubusercontent.com/u/2379589?v=3","gravatar_id":"","url":"https://api.github.com/users/piotrpMSFT","html_url":"https://github.com/piotrpMSFT","followers_url":"https://api.github.com/users/piotrpMSFT/followers","following_url":"https://api.github.com/users/piotrpMSFT/following{/other_user}","gists_url":"https://api.github.com/users/piotrpMSFT/gists{/gist_id}","starred_url":"https://api.github.com/users/piotrpMSFT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piotrpMSFT/subscriptions","organizations_url":"https://api.github.com/users/piotrpMSFT/orgs","repos_url":"https://api.github.com/users/piotrpMSFT/repos","events_url":"https://api.github.com/users/piotrpMSFT/events{/privacy}","received_events_url":"https://api.github.com/users/piotrpMSFT/received_events","type":"User","site_admin":false},"created_at":"2016-11-15T20:18:51Z","updated_at":"2016-11-15T20:18:51Z","body":"@SamvelS I see. So you have:\r\n\r\n```\r\n/myproj\r\n  /myproj.csproj\r\n  /myinnerproj\r\n    /myinnerproj.csproj\r\n```\r\n\r\nIs that right? Then for the first issue, you should be able to modify your `myproj.csproj`'s compile Items like this:\r\n\r\n```\r\n  <Compile Include=\"**\\*.cs\" Exclude=\"bin\\**;obj\\**;myinnerproj\\**.*\" />\r\n```\r\n\r\nYou may need to play with the glob a little, but this will allow the outer project to ignore the sources of the inner project.\r\n\r\n\r\nRE the <OuputType> issue can you create a bug with a repro? CLI build generates many EXE's and we've not seen such a problem so far..."}}
{"actor":{"display_login":"piotrpMSFT"}}