{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/cli/issues/8826","repository_url":"https://api.github.com/repos/dotnet/cli","labels_url":"https://api.github.com/repos/dotnet/cli/issues/8826/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/cli/issues/8826/comments","events_url":"https://api.github.com/repos/dotnet/cli/issues/8826/events","html_url":"https://github.com/dotnet/cli/issues/8826","id":306109703,"number":8826,"title":"Problem with ProjectReference for Layering with netcoreapp2.0","user":{"login":"Petermarcu","id":8228359,"avatar_url":"https://avatars3.githubusercontent.com/u/8228359?v=4","gravatar_id":"","url":"https://api.github.com/users/Petermarcu","html_url":"https://github.com/Petermarcu","followers_url":"https://api.github.com/users/Petermarcu/followers","following_url":"https://api.github.com/users/Petermarcu/following{/other_user}","gists_url":"https://api.github.com/users/Petermarcu/gists{/gist_id}","starred_url":"https://api.github.com/users/Petermarcu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Petermarcu/subscriptions","organizations_url":"https://api.github.com/users/Petermarcu/orgs","repos_url":"https://api.github.com/users/Petermarcu/repos","events_url":"https://api.github.com/users/Petermarcu/events{/privacy}","received_events_url":"https://api.github.com/users/Petermarcu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/dotnet/cli/milestones/14","html_url":"https://github.com/dotnet/cli/milestone/14","labels_url":"https://api.github.com/repos/dotnet/cli/milestones/14/labels","id":2129009,"number":14,"title":"Discussion","description":"Milestone for tracking non-actionable discussion items. ","creator":{"login":"TheRealPiotrP","id":2379589,"avatar_url":"https://avatars0.githubusercontent.com/u/2379589?v=4","gravatar_id":"","url":"https://api.github.com/users/TheRealPiotrP","html_url":"https://github.com/TheRealPiotrP","followers_url":"https://api.github.com/users/TheRealPiotrP/followers","following_url":"https://api.github.com/users/TheRealPiotrP/following{/other_user}","gists_url":"https://api.github.com/users/TheRealPiotrP/gists{/gist_id}","starred_url":"https://api.github.com/users/TheRealPiotrP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheRealPiotrP/subscriptions","organizations_url":"https://api.github.com/users/TheRealPiotrP/orgs","repos_url":"https://api.github.com/users/TheRealPiotrP/repos","events_url":"https://api.github.com/users/TheRealPiotrP/events{/privacy}","received_events_url":"https://api.github.com/users/TheRealPiotrP/received_events","type":"User","site_admin":false},"open_issues":67,"closed_issues":117,"state":"open","created_at":"2016-11-11T09:49:39Z","updated_at":"2018-03-19T22:12:28Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-03-17T00:05:11Z","updated_at":"2018-03-19T22:12:28Z","closed_at":"2018-03-19T22:12:28Z","author_association":"MEMBER","body":"@FlorianRainer commented on [Fri Mar 16 2018](https://github.com/dotnet/core/issues/1355)\n\nOS: Windows 10, Visual Studio 15.6.2 / Dotnet CLI Version 2.1.101 NetCore 2.0\r\n\r\nI have the following Problem, i have a quite large Solution with multiple Projects organized in different Layers. Some Layers are hidden from the Top Level Application and are used only by the layers below.\r\nI had this already back in old csproj projects, on .net 4.x and later with new csproj system and asp.net core but based on full framework \"net462\" i never had any problems with this.\r\n\r\nnow i was upgrading to netcoreapp2.0 (netcore in general) and i have noticed some problems.\r\n\r\ni was not able to run my application if i use `PrivateAssets All` on ProjectReference if the references project uses SubProjects or NuGet Packages (exclusive used by this referenced SubProject)\r\n```\r\n<ProjectReference Include=\"....\">\r\n      <PrivateAssets>All</PrivateAssets>\r\n</ProjectReference>\r\n```\r\n\r\nI have created a example Repo on GitHub based on new Projects from \"File New Project\" in VS linked together and explained the problems and solutions in a few small commits.\r\n\r\ni hope this explains the Problem.\r\nhttps://github.com/FlorianRainer/Report_ExampleApp/commits/master\r\n\r\nPlease Read the Commit Messages for more details.\r\n\r\nMaybe i have missed something and there is a easy built in way to do this, maybe something else then `PrivateAssets All` but i havn't found anything working.\r\n\r\nThanks for any feedback on this, hopefully there whould be a better solution then this hacky workaround.\n\n"},"comment":{"url":"https://api.github.com/repos/dotnet/cli/issues/comments/374400426","html_url":"https://github.com/dotnet/cli/issues/8826#issuecomment-374400426","issue_url":"https://api.github.com/repos/dotnet/cli/issues/8826","id":374400426,"user":{"login":"livarcocc","id":367554,"avatar_url":"https://avatars3.githubusercontent.com/u/367554?v=4","gravatar_id":"","url":"https://api.github.com/users/livarcocc","html_url":"https://github.com/livarcocc","followers_url":"https://api.github.com/users/livarcocc/followers","following_url":"https://api.github.com/users/livarcocc/following{/other_user}","gists_url":"https://api.github.com/users/livarcocc/gists{/gist_id}","starred_url":"https://api.github.com/users/livarcocc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/livarcocc/subscriptions","organizations_url":"https://api.github.com/users/livarcocc/orgs","repos_url":"https://api.github.com/users/livarcocc/repos","events_url":"https://api.github.com/users/livarcocc/events{/privacy}","received_events_url":"https://api.github.com/users/livarcocc/received_events","type":"User","site_admin":false},"created_at":"2018-03-19T22:12:28Z","updated_at":"2018-03-19T22:12:28Z","author_association":"MEMBER","body":"This is a dup of https://github.com/dotnet/cli/issues/7786.\r\n\r\nI don't believe we currently have a solution for this problem. You want your project reference to be available during compile time only and be binplaced for runtime. And, you want to be able to determine this on each individual project reference.\r\n\r\nI believe the best we currently have is a property called `DisableTransitiveProjectReferences`. You can set it for all your projects using a `Directory.Build.props` or you can set it manually to all of the projects that you don't want having access to transitive project references."}}
{"actor":{"display_login":"livarcocc"}}