{"action":"opened","issue":{"url":"https://api.github.com/repos/dotnet/sdk/issues/2368","repository_url":"https://api.github.com/repos/dotnet/sdk","labels_url":"https://api.github.com/repos/dotnet/sdk/issues/2368/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/sdk/issues/2368/comments","events_url":"https://api.github.com/repos/dotnet/sdk/issues/2368/events","html_url":"https://github.com/dotnet/sdk/issues/2368","id":336231956,"node_id":"MDU6SXNzdWUzMzYyMzE5NTY=","number":2368,"title":"2.1.1: SDK/Runtime Mismatch In Targets","user":{"login":"paulquinn","id":583501,"node_id":"MDQ6VXNlcjU4MzUwMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/583501?v=4","gravatar_id":"","url":"https://api.github.com/users/paulquinn","html_url":"https://github.com/paulquinn","followers_url":"https://api.github.com/users/paulquinn/followers","following_url":"https://api.github.com/users/paulquinn/following{/other_user}","gists_url":"https://api.github.com/users/paulquinn/gists{/gist_id}","starred_url":"https://api.github.com/users/paulquinn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulquinn/subscriptions","organizations_url":"https://api.github.com/users/paulquinn/orgs","repos_url":"https://api.github.com/users/paulquinn/repos","events_url":"https://api.github.com/users/paulquinn/events{/privacy}","received_events_url":"https://api.github.com/users/paulquinn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-27T13:32:31Z","updated_at":"2018-06-27T13:32:31Z","closed_at":null,"author_association":"NONE","body":"## Steps to reproduce\r\na) Installed SDK 2.1.301\r\nb) Open minimal project, .csproj is:\r\n```\r\n<Project Sdk=\"Microsoft.NET.Sdk\">\r\n  <PropertyGroup>\r\n    <TargetFramework>netcoreapp2.1.1</TargetFramework>\r\n  </PropertyGroup>\r\n</Project>\r\n```\r\nc) Build (`dotnet build`)\r\n\r\n## Expected  behavior\r\nThe project should build without error.\r\n\r\n## Actual behavior\r\nBuild error: \r\n_Microsoft.NET.TargetFrameworkInference.targets(137, 5): [null] The current .NET SDK does not support targeting .NET Core 2.1.1.  Either target .NET Core 2.1 or lower, or use a version of the .NET SDK that supports .NET Core 2.1.1._\r\n\r\nIn C:\\Program Files\\dotnet\\sdk\\2.1.301\\Sdks\\Microsoft.NET.Sdk\\targets\\Microsoft.NET.TargetFrameworkInference.targets, line 130 states:  `<NETCoreAppMaximumVersion>2.1</NETCoreAppMaximumVersion>`\r\n\r\nIf I hack this value to 2.1.1 the project builds.\r\n\r\nNB, I also have similar issue with an aspnet project (targetframework netcoreapp2.1.1) with the sdk: \r\n\r\n_Microsoft.AspNetCore.App.targets(14, 5): [null] This version of Microsoft.AspNetCore.App is only compatible with the netcoreapp2.1 target framework. Please target netcoreapp2.1 or choose a version of Microsoft.AspNetCore.App compatible with netcoreapp2.1.1_\r\n\r\nIn C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder\\microsoft.aspnetcore.app\\2.1.1\\build\\netcoreapp2.1\\Microsoft.AspNetCore.App.targets the error condition is:\r\n```\r\n<Target Name=\"EnsureTFMCompatibility\" BeforeTargets=\"_CheckForInvalidConfigurationAndPlatform\">\r\n    <Error\r\n      Text=\"This version of Microsoft.AspNetCore.App is only compatible with the netcoreapp2.1 target framework. Please target netcoreapp2.1 or choose a version of Microsoft.AspNetCore.App compatible with $(TargetFramework).\"\r\n      Condition=\"'$(TargetFramework)' != 'netcoreapp2.1'\"/>\r\n  </Target>\r\n```\r\n- again, I think this should be 2.1.1?\r\n\r\n## Environment data\r\ndotnet --info output from proj dir:\r\n.NET Core SDK (reflecting any global.json):\r\n Version:   2.1.301\r\n Commit:    59524873d6\r\n\r\nRuntime Environment:\r\n OS Name:     Windows\r\n OS Version:  10.0.17134\r\n OS Platform: Windows\r\n RID:         win10-x64\r\n Base Path:   C:\\Program Files\\dotnet\\sdk\\2.1.301\\\r\n\r\nHost (useful for support):\r\n  Version: 2.1.1\r\n  Commit:  6985b9f684\r\n\r\n.NET Core SDKs installed:\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.301 [C:\\Program Files\\dotnet\\sdk]\r\n\r\n.NET Core runtimes installed:\r\n  Microsoft.AspNetCore.All 2.1.1 [C:\\Program Files\\dotnet\\shared\\Microsoft.AspNetCore.All]\r\n  Microsoft.AspNetCore.App 2.1.1 [C:\\Program Files\\dotnet\\shared\\Microsoft.AspNetCore.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.1 [C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App]"}}
{"actor":{"display_login":"paulquinn"}}