{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Tooling/issues/695","repository_url":"https://api.github.com/repos/aspnet/Tooling","labels_url":"https://api.github.com/repos/aspnet/Tooling/issues/695/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Tooling/issues/695/comments","events_url":"https://api.github.com/repos/aspnet/Tooling/issues/695/events","html_url":"https://github.com/aspnet/Tooling/issues/695","id":167936158,"number":695,"title":"Can't add project reference FROM .NET Core library TO .NET Core console app","user":{"login":"christianspecht","id":263372,"avatar_url":"https://avatars.githubusercontent.com/u/263372?v=3","gravatar_id":"","url":"https://api.github.com/users/christianspecht","html_url":"https://github.com/christianspecht","followers_url":"https://api.github.com/users/christianspecht/followers","following_url":"https://api.github.com/users/christianspecht/following{/other_user}","gists_url":"https://api.github.com/users/christianspecht/gists{/gist_id}","starred_url":"https://api.github.com/users/christianspecht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christianspecht/subscriptions","organizations_url":"https://api.github.com/users/christianspecht/orgs","repos_url":"https://api.github.com/users/christianspecht/repos","events_url":"https://api.github.com/users/christianspecht/events{/privacy}","received_events_url":"https://api.github.com/users/christianspecht/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-07-27T19:29:41Z","updated_at":"2016-08-03T07:36:07Z","closed_at":null,"body":"I'm using Visual Studio 2015 Community Edition *(previously with .NET Core RC1)* on Windows 8.1.\r\n\r\nI updated to .NET Core RTM and now I'm trying to create a new console app with unit tests.\r\nSo I have a solution with a console app and a library *(for the tests)*, and I need to reference the console app from the library.\r\nBut I'm not able to create that reference.\r\n\r\nHere is my test project on GitHub:\r\nhttps://github.com/christianspecht/CoreRtmReferenceTest\r\n\r\n\r\nWhat I did so far:\r\n\r\n- [uninstall DNVM and DNX](https://ievangelist.github.io/blog/migrating-to-rc2/)\r\n- install [Visual Studio 2015 Update 3](https://www.visualstudio.com/news/releasenotes/vs2015-update3-vs) and [.NET Core Tools for Visual Studio](https://go.microsoft.com/fwlink/?LinkId=817245)\r\n- [create a console app](https://github.com/christianspecht/CoreRtmReferenceTest/commit/fd2f85f4ac6f40aaef21596d92a98f88f35ce06b) and [a library](https://github.com/christianspecht/CoreRtmReferenceTest/commit/da0d4be5bfc5696464dbc1e47c0ae21c93d890aa), both in the same solution\r\n\r\nNow when I try to reference the console app from the library, I get the following error message:\r\n![error message](https://cloud.githubusercontent.com/assets/263372/17189030/f340c738-543f-11e6-967f-a65ab47c30ac.png)\r\n\r\n\r\n> The following projects are not supported as references : \r\n> \r\n>   - CoreRtmReferenceTest has target frameworks that are incompatible with targets in current project CoreRtmReferenceTest.TestLibrary. \r\n> \r\n> CoreRtmReferenceTest.TestLibrary:\r\n> \t.NETStandard,Version=v1.6\r\n> \r\n> CoreRtmReferenceTest:\r\n> \t.NETCoreApp,Version=v1.0\r\n\r\nI googled \".NETStandard\" and \".NETCoreApp\" and found [this](https://github.com/dotnet/corefx/blob/master/Documentation/architecture/net-platform-standard.md), and now my brain hurts.\r\n\r\nPlus, I already read [this](https://github.com/aspnet/Tooling/issues/45), but I think it doesn't apply to me, because I want to do exactly the opposite.\r\n*(this link is about adding references FROM apps TO libraries)*\r\n\r\nHowever, from what I understand from this link, there *are* problems with referencing compiled DLLs right now, but project references inside the same solution should work.\r\nIn fact, referencing the library from the console app **does** work, just not the other way round.\r\n\r\nIs there any solution to do this outside Visual Studio?\r\n\r\n---\r\n\r\n*What I was actually trying to do:\r\nI have an existing .NET Core RC1 console app with test library which I want to update to .NET Core RTM.\r\nThis issue blocks me from upgrading, because I'm not able to create that reference there either.*\r\n"},"comment":{"url":"https://api.github.com/repos/aspnet/Tooling/issues/comments/237165074","html_url":"https://github.com/aspnet/Tooling/issues/695#issuecomment-237165074","issue_url":"https://api.github.com/repos/aspnet/Tooling/issues/695","id":237165074,"user":{"login":"JonPSmith","id":4509872,"avatar_url":"https://avatars.githubusercontent.com/u/4509872?v=3","gravatar_id":"","url":"https://api.github.com/users/JonPSmith","html_url":"https://github.com/JonPSmith","followers_url":"https://api.github.com/users/JonPSmith/followers","following_url":"https://api.github.com/users/JonPSmith/following{/other_user}","gists_url":"https://api.github.com/users/JonPSmith/gists{/gist_id}","starred_url":"https://api.github.com/users/JonPSmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonPSmith/subscriptions","organizations_url":"https://api.github.com/users/JonPSmith/orgs","repos_url":"https://api.github.com/users/JonPSmith/repos","events_url":"https://api.github.com/users/JonPSmith/events{/privacy}","received_events_url":"https://api.github.com/users/JonPSmith/received_events","type":"User","site_admin":false},"created_at":"2016-08-03T07:36:07Z","updated_at":"2016-08-03T07:36:07Z","body":"Hi @christianspecht,\r\n\r\nThanks for the link. Further work on this problem suggests that the compile errors about a missing `using` statement were an artefact of Visual Studio. It turns out that Visual Studio 2015 (update 3) was throwing up errors with `dotnet build` did not find. All very confusing. \r\n\r\nI am not totally sure what solved my problem as I, in the end, used another approach to overcome it. However I think removing and then reloading a project, and/or exiting VS and restarting it helped."}}
{"actor":{"display_login":"JonPSmith"}}