{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/cli/issues/9519","repository_url":"https://api.github.com/repos/dotnet/cli","labels_url":"https://api.github.com/repos/dotnet/cli/issues/9519/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/cli/issues/9519/comments","events_url":"https://api.github.com/repos/dotnet/cli/issues/9519/events","html_url":"https://github.com/dotnet/cli/issues/9519","id":333995454,"node_id":"MDU6SXNzdWUzMzM5OTU0NTQ=","number":9519,"title":"The specified framework 'Microsoft.NETCore.App', version '2.1.1' was not found after the SDK is uninstalled","user":{"login":"JanFredrikD","id":1024180,"node_id":"MDQ6VXNlcjEwMjQxODA=","avatar_url":"https://avatars2.githubusercontent.com/u/1024180?v=4","gravatar_id":"","url":"https://api.github.com/users/JanFredrikD","html_url":"https://github.com/JanFredrikD","followers_url":"https://api.github.com/users/JanFredrikD/followers","following_url":"https://api.github.com/users/JanFredrikD/following{/other_user}","gists_url":"https://api.github.com/users/JanFredrikD/gists{/gist_id}","starred_url":"https://api.github.com/users/JanFredrikD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanFredrikD/subscriptions","organizations_url":"https://api.github.com/users/JanFredrikD/orgs","repos_url":"https://api.github.com/users/JanFredrikD/repos","events_url":"https://api.github.com/users/JanFredrikD/events{/privacy}","received_events_url":"https://api.github.com/users/JanFredrikD/received_events","type":"User","site_admin":false},"labels":[],"state":"open","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,"node_id":"MDk6TWlsZXN0b25lMjEyOTAwOQ==","number":14,"title":"Discussion","description":"Milestone for tracking non-actionable discussion items. ","creator":{"login":"TheRealPiotrP","id":2379589,"node_id":"MDQ6VXNlcjIzNzk1ODk=","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":72,"closed_issues":230,"state":"open","created_at":"2016-11-11T09:49:39Z","updated_at":"2018-06-22T23:03:52Z","due_on":null,"closed_at":null},"comments":22,"created_at":"2018-06-20T09:28:47Z","updated_at":"2018-06-23T14:28:56Z","closed_at":null,"author_association":"NONE","body":"## Steps to reproduce\r\nYou need to already have the Microsoft.NETCore.App 2.1.0 SDK installed with a web project with the versionless Microsoft.AspNetCore.App in the .csproj.\r\n<PackageReference Include=\"Microsoft.AspNetCore.App\" />\r\n\r\nInstall the Microsoft.NETCore.App 2.1.1 SDK and debug your project.\r\nI got it from here:\r\nhttps://github.com/dotnet/versions/tree/7a833dddfddc27f2074b755b94234a25b9757637/build-info/dotnet/product/cli/release\r\n\r\nUninstall the Microsoft.NETCore.App 2.1.1 SDK.\r\n\r\nDebug the web project again.\r\n\r\n## Expected  behavior\r\nShould run with version 2.1.0.\r\n\r\n## Actual behavior\r\nGetting the following error message when debugging:\r\nIt was not possible to find any compatible framework version\r\nThe specified framework 'Microsoft.NETCore.App', version '2.1.1' was not found.\r\nThe following versions are installed:\r\n    2.1.0 at [C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App]\r\n\r\nI tried with a repair on the 2.1.0 SDK, reboot, all changes are rolled back from the source control. I cannot see a reference to the 2.1.1 version anywhere.\r\nWhere does it think that I should target 2.1.1 after I have uninstalled it?\r\n\r\n## Environment data\r\n`dotnet --info` output:\r\n.NET Core SDK (reflecting any global.json):\r\n Version:   2.1.300\r\n Commit:    adab45bf0c\r\n\r\nRuntime Environment:\r\n OS Name:     Windows\r\n OS Version:  6.1.7601\r\n OS Platform: Windows\r\n RID:         win7-x64\r\n Base Path:   C:\\Program Files\\dotnet\\sdk\\2.1.300\\\r\n\r\nHost (useful for support):\r\n  Version: 2.1.0\r\n  Commit:  caa7b7e2ba\r\n\r\n.NET Core SDKs installed:\r\n  1.0.0-preview1-002702 [C:\\Program Files\\dotnet\\sdk]\r\n  1.0.0-preview2-003121 [C:\\Program Files\\dotnet\\sdk]\r\n  1.0.0-preview2-003131 [C:\\Program Files\\dotnet\\sdk]\r\n  1.0.0 [C:\\Program Files\\dotnet\\sdk]\r\n  1.0.2 [C:\\Program Files\\dotnet\\sdk]\r\n  1.0.3 [C:\\Program Files\\dotnet\\sdk]\r\n  1.0.4 [C:\\Program Files\\dotnet\\sdk]\r\n  1.1.0 [C:\\Program Files\\dotnet\\sdk]\r\n  2.0.0 [C:\\Program Files\\dotnet\\sdk]\r\n  2.0.2 [C:\\Program Files\\dotnet\\sdk]\r\n  2.0.3 [C:\\Program Files\\dotnet\\sdk]\r\n  2.1.2 [C:\\Program Files\\dotnet\\sdk]\r\n  2.1.4 [C:\\Program Files\\dotnet\\sdk]\r\n  2.1.100 [C:\\Program Files\\dotnet\\sdk]\r\n  2.1.101 [C:\\Program Files\\dotnet\\sdk]\r\n  2.1.102 [C:\\Program Files\\dotnet\\sdk]\r\n  2.1.103 [C:\\Program Files\\dotnet\\sdk]\r\n  2.1.104 [C:\\Program Files\\dotnet\\sdk]\r\n  2.1.200 [C:\\Program Files\\dotnet\\sdk]\r\n  2.1.201 [C:\\Program Files\\dotnet\\sdk]\r\n  2.1.300 [C:\\Program Files\\dotnet\\sdk]\r\n\r\n.NET Core runtimes installed:\r\n  Microsoft.AspNetCore.All 2.1.0 [C:\\Program Files\\dotnet\\shared\\Microsoft.AspNetCore.All]\r\n  Microsoft.AspNetCore.All 2.1.1 [C:\\Program Files\\dotnet\\shared\\Microsoft.AspNetCore.All]\r\n  Microsoft.AspNetCore.App 2.1.0 [C:\\Program Files\\dotnet\\shared\\Microsoft.AspNetCore.App]\r\n  Microsoft.AspNetCore.App 2.1.1 [C:\\Program Files\\dotnet\\shared\\Microsoft.AspNetCore.App]\r\n  Microsoft.NETCore.App 1.0.0-rc2-3002702 [C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App]\r\n  Microsoft.NETCore.App 1.0.0 [C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App]\r\n  Microsoft.NETCore.App 1.0.1 [C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App]\r\n  Microsoft.NETCore.App 1.0.4 [C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App]\r\n  Microsoft.NETCore.App 1.0.5 [C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App]\r\n  Microsoft.NETCore.App 1.1.1 [C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App]\r\n  Microsoft.NETCore.App 1.1.2 [C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App]\r\n  Microsoft.NETCore.App 2.0.0 [C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App]\r\n  Microsoft.NETCore.App 2.0.3 [C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App]\r\n  Microsoft.NETCore.App 2.0.5 [C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App]\r\n  Microsoft.NETCore.App 2.0.6 [C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App]\r\n  Microsoft.NETCore.App 2.0.7 [C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App]\r\n  Microsoft.NETCore.App 2.1.0 [C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App]\r\n\r\nTo install additional .NET Core runtimes or SDKs:\r\n  https://aka.ms/dotnet-download"},"comment":{"url":"https://api.github.com/repos/dotnet/cli/issues/comments/399682426","html_url":"https://github.com/dotnet/cli/issues/9519#issuecomment-399682426","issue_url":"https://api.github.com/repos/dotnet/cli/issues/9519","id":399682426,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTY4MjQyNg==","user":{"login":"dasMulli","id":6129250,"node_id":"MDQ6VXNlcjYxMjkyNTA=","avatar_url":"https://avatars1.githubusercontent.com/u/6129250?v=4","gravatar_id":"","url":"https://api.github.com/users/dasMulli","html_url":"https://github.com/dasMulli","followers_url":"https://api.github.com/users/dasMulli/followers","following_url":"https://api.github.com/users/dasMulli/following{/other_user}","gists_url":"https://api.github.com/users/dasMulli/gists{/gist_id}","starred_url":"https://api.github.com/users/dasMulli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dasMulli/subscriptions","organizations_url":"https://api.github.com/users/dasMulli/orgs","repos_url":"https://api.github.com/users/dasMulli/repos","events_url":"https://api.github.com/users/dasMulli/events{/privacy}","received_events_url":"https://api.github.com/users/dasMulli/received_events","type":"User","site_admin":false},"created_at":"2018-06-23T14:28:56Z","updated_at":"2018-06-23T14:28:56Z","author_association":"CONTRIBUTOR","body":"not at all.\r\n\r\nThe reason it didn't break before is likely that for 2.0.* runtime updates, the project is actually built for 2.0.0 and uses any later 2.0.* runtime if available on the image. And if you didn't update the 2.0.* asp.net core NuGet packages manually, it would still work (since the 2.0.* runtime stores contained all previous NuGet packages of the 2.0.* range). So if you never opened the NuGet package manager and updated all the deps for the asp.net core patch releases, old images still worked.\r\n\r\nIn 2.1.0+, the same is done for asp.net core as well. However, 2.1.1 is special as it contains some important changes that affect your build so the app will be built for the asp.net core 2.1.1 runtime, not for the 2.1.0 runtime as originally planned. Though if everything works out, from the next patch update forward, your app will always be built for 2.1.1 and any newer 2.1.* runtime will just be used at run-time. This change for 2.1.1 however requires that you use the latest docker image or runtime on target servers.\r\n\r\nIf anything, we may have discovered some shortcomings of the VS build tooling for docker. No idea whom to tag for this though. @livarcocc any idea?\r\n\r\n`docker build` has a `--pull` flag to ensure that all images used during the build of a container are up to date. I don't know how this works for `docker-compose` or how VS handles building the containers involved. If it builds all projects' Dockerimage first and then uses compose, VS could improve here by passing along the `--pull` option."}}
{"actor":{"display_login":"dasMulli"}}