{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/project-system/issues/3409","repository_url":"https://api.github.com/repos/dotnet/project-system","labels_url":"https://api.github.com/repos/dotnet/project-system/issues/3409/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/project-system/issues/3409/comments","events_url":"https://api.github.com/repos/dotnet/project-system/issues/3409/events","html_url":"https://github.com/dotnet/project-system/issues/3409","id":306965312,"number":3409,"title":"\"Assets file '...' doesn't have a target for '.NETCoreApp,Version=v2.0'. Ensure that restore has run and that you have included 'netcoreapp2.0' in the TargetFrameworks for your project.\" after upgrading to VS 15.6.3","user":{"login":"loop-evgeny","id":34301024,"avatar_url":"https://avatars0.githubusercontent.com/u/34301024?v=4","gravatar_id":"","url":"https://api.github.com/users/loop-evgeny","html_url":"https://github.com/loop-evgeny","followers_url":"https://api.github.com/users/loop-evgeny/followers","following_url":"https://api.github.com/users/loop-evgeny/following{/other_user}","gists_url":"https://api.github.com/users/loop-evgeny/gists{/gist_id}","starred_url":"https://api.github.com/users/loop-evgeny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loop-evgeny/subscriptions","organizations_url":"https://api.github.com/users/loop-evgeny/orgs","repos_url":"https://api.github.com/users/loop-evgeny/repos","events_url":"https://api.github.com/users/loop-evgeny/events{/privacy}","received_events_url":"https://api.github.com/users/loop-evgeny/received_events","type":"User","site_admin":false},"labels":[{"id":520560267,"url":"https://api.github.com/repos/dotnet/project-system/labels/Area-External","name":"Area-External","color":"5319e7","default":false},{"id":546614373,"url":"https://api.github.com/repos/dotnet/project-system/labels/Resolution-Duplicate","name":"Resolution-Duplicate","color":"bfd4f2","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-20T17:28:54Z","updated_at":"2018-03-21T12:38:32Z","closed_at":"2018-03-21T12:33:16Z","author_association":"NONE","body":"Since updating VS 15.6.2 to 15.6.3 I started receiving the following error after modifying a source file and rebuilding the solution:\r\n\r\n```\r\n12>C:\\Program Files\\dotnet\\sdk\\2.1.102\\Sdks\\Microsoft.NET.Sdk\\build\\Microsoft.PackageDependencyResolution.targets(167,5): error : Assets file 'C:\\W ork\\engine\\engine\\Loop54.Webserver\\obj\\project.assets.json' doesn't have a target for '.NETCoreApp,Version=v2.0'. Ensure that restore has run and that you have included 'netcoreapp2.0' in the TargetFrameworks for your project.\r\n12>Done building project \"Loop54.Webserver.csproj\" -- FAILED.\r\n12>C:\\Program Files\\dotnet\\sdk\\2.1.102\\Sdks\\Microsoft.NET.Sdk\\build\\Microsoft.PackageDependencyResolution.targets(167,5): error : Assets file 'C:\\W ork\\engine\\engine\\FSharpModules\\obj\\project.assets.json' doesn't have a target for '.NETCoreApp,Version=v2.0'. Ensure that restore has run and that you have included 'netcoreapp2.0' in the TargetFrameworks for your project.\r\n12>Done building project \"FSharpModules.fsproj\" -- FAILED.\r\n```\r\n\r\nThat is, the solution initially builds successfully, but if I a change a C# source file and try to build it again the error occurs (every time). If I clean the solution it then builds successfully again.\r\n\r\nIt doesn't complain about the project I modified, but about 2 of its (indirect dependencies). I also tried modifying other projects and got the same error about some other projects that those depend on, e.g.\r\n\r\n```\r\n7>------ Build started: Project: CSharpSpellmasters, Configuration: Debug Any CPU ------\r\n7>C:\\Program Files\\dotnet\\sdk\\2.1.102\\Sdks\\Microsoft.NET.Sdk\\build\\Microsoft.PackageDependencyResolution.targets(167,5): error : Assets file 'C:\\W ork\\engine\\engine\\Loop54.Engine.Core\\obj\\project.assets.json' doesn't have a target for '.NETCoreApp,Version=v2.0'. Ensure that restore has run and that you have included 'netcoreapp2.0' in the TargetFrameworks for your project.\r\n7>Done building project \"Loop54.Engine.Core.csproj\" -- FAILED.\r\n```\r\n\r\nI've verified that project.assets.json does have a target for '.NETCoreApp,Version=v2.0' and also its contents are the same as after a clean (when the build succeeds). I don't have a duplicate ProjectReference as far as I can see or anything else weird. I tried going back to an earlier revision of the code and it still happened there.\r\n\r\nThe only recent change was upgrading to 15.6.3. I re-installed VS 15.5.7 (which was a huge waste of time!) based on https://docs.microsoft.com/en-us/visualstudio/productinfo/installing-an-earlier-release-of-vs2017 and the problem disappeared.\r\n\r\nIs there a way I can upgrade to 15.6.2, at least? (15.5.7 has another problem I ran into, that was fixed in 15.6.) Can I install an \"experimental\" version of VS in parallel with my main (stable) one? This waste of time due to what is probably a simple bug is an AWFUL user experience. With almost any other software I'd be able to simply go back to the old version in a few minutes."},"comment":{"url":"https://api.github.com/repos/dotnet/project-system/issues/comments/374922541","html_url":"https://github.com/dotnet/project-system/issues/3409#issuecomment-374922541","issue_url":"https://api.github.com/repos/dotnet/project-system/issues/3409","id":374922541,"user":{"login":"loop-evgeny","id":34301024,"avatar_url":"https://avatars0.githubusercontent.com/u/34301024?v=4","gravatar_id":"","url":"https://api.github.com/users/loop-evgeny","html_url":"https://github.com/loop-evgeny","followers_url":"https://api.github.com/users/loop-evgeny/followers","following_url":"https://api.github.com/users/loop-evgeny/following{/other_user}","gists_url":"https://api.github.com/users/loop-evgeny/gists{/gist_id}","starred_url":"https://api.github.com/users/loop-evgeny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loop-evgeny/subscriptions","organizations_url":"https://api.github.com/users/loop-evgeny/orgs","repos_url":"https://api.github.com/users/loop-evgeny/repos","events_url":"https://api.github.com/users/loop-evgeny/events{/privacy}","received_events_url":"https://api.github.com/users/loop-evgeny/received_events","type":"User","site_admin":false},"created_at":"2018-03-21T12:38:32Z","updated_at":"2018-03-21T12:38:32Z","author_association":"NONE","body":"Thanks, but is the same issue known to occur without multi-target projects (my case)?"}}
{"actor":{"display_login":"loop-evgeny"}}