{"action":"created","issue":{"url":"https://api.github.com/repos/fsprojects/Paket/issues/3269","repository_url":"https://api.github.com/repos/fsprojects/Paket","labels_url":"https://api.github.com/repos/fsprojects/Paket/issues/3269/labels{/name}","comments_url":"https://api.github.com/repos/fsprojects/Paket/issues/3269/comments","events_url":"https://api.github.com/repos/fsprojects/Paket/issues/3269/events","html_url":"https://github.com/fsprojects/Paket/issues/3269","id":335727208,"node_id":"MDU6SXNzdWUzMzU3MjcyMDg=","number":3269,"title":"Source-Only NuGet packages add <Compile Include=\"...\" /> to csproj, resulting in build errors. ","user":{"login":"btodts","id":12234350,"node_id":"MDQ6VXNlcjEyMjM0MzUw","avatar_url":"https://avatars2.githubusercontent.com/u/12234350?v=4","gravatar_id":"","url":"https://api.github.com/users/btodts","html_url":"https://github.com/btodts","followers_url":"https://api.github.com/users/btodts/followers","following_url":"https://api.github.com/users/btodts/following{/other_user}","gists_url":"https://api.github.com/users/btodts/gists{/gist_id}","starred_url":"https://api.github.com/users/btodts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/btodts/subscriptions","organizations_url":"https://api.github.com/users/btodts/orgs","repos_url":"https://api.github.com/users/btodts/repos","events_url":"https://api.github.com/users/btodts/events{/privacy}","received_events_url":"https://api.github.com/users/btodts/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-06-26T09:12:33Z","updated_at":"2018-07-06T10:35:42Z","closed_at":"2018-07-04T09:02:30Z","author_association":"NONE","body":"### Description\r\n\r\nPaket Installing a source-only NuGet package adds a Compile element to the csproj file, which leads to build errors in the new dotnet sdk: `Duplicate Compile items were included. The .NET SDK includes Compile items from your project directory by default. You can either remove these items from your project file, or set the 'EnableDefaultCompileItems' property to 'false' if you want to explicitly include them in your project file.`\r\n\r\n### Repro steps\r\n\r\n1. Step A\r\n\r\nAdd e.g. [TinyIoC](https://www.nuget.org/packages/TinyIoC/) to your `paket.dependencies` and `paket.references` of your dotnet 1.1+ console application.\r\n\r\n2. Step B\r\n\r\nRun `paket Install`. \r\n\r\n### Expected behavior\r\n\r\nThe files in the Content folder of the NuGet package (in TinyIoC's case, `TinyIoC.cs`) are added to the project. Since the dotnet sdk moved the globs to include compile items to the properties of the sdk, it isn't necessary that an element (`<Compile Include=\"TinyIoC.cs\" />`) is added to the cspoj. Expected behavior is therefore that this doesn't happen. (more info: https://aka.ms/sdkimplicititems)\r\n\r\n### Actual behavior\r\n\r\nIt does :) A Compile element is added to the csproj, which causes build errors (see above).\r\n\r\n### Known workarounds\r\n\r\nThe error goes away when you remove the element from the csproj, but it is added again after every `paket Install`, which is unfortunate."},"comment":{"url":"https://api.github.com/repos/fsprojects/Paket/issues/comments/402997085","html_url":"https://github.com/fsprojects/Paket/issues/3269#issuecomment-402997085","issue_url":"https://api.github.com/repos/fsprojects/Paket/issues/3269","id":402997085,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjk5NzA4NQ==","user":{"login":"forki","id":57396,"node_id":"MDQ6VXNlcjU3Mzk2","avatar_url":"https://avatars1.githubusercontent.com/u/57396?v=4","gravatar_id":"","url":"https://api.github.com/users/forki","html_url":"https://github.com/forki","followers_url":"https://api.github.com/users/forki/followers","following_url":"https://api.github.com/users/forki/following{/other_user}","gists_url":"https://api.github.com/users/forki/gists{/gist_id}","starred_url":"https://api.github.com/users/forki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forki/subscriptions","organizations_url":"https://api.github.com/users/forki/orgs","repos_url":"https://api.github.com/users/forki/repos","events_url":"https://api.github.com/users/forki/events{/privacy}","received_events_url":"https://api.github.com/users/forki/received_events","type":"User","site_admin":false},"created_at":"2018-07-06T10:35:42Z","updated_at":"2018-07-06T10:35:42Z","author_association":"MEMBER","body":"yes, but what do we need to change? how would it work in vanilla nuget?"}}
{"actor":{"display_login":"forki"}}