aspnet / Tooling

Issue tracker and info on Visual Studio tooling for ASP.NET
Other
258 stars 124 forks source link

Docker tools fail if multiple TFMs in project file #1056

Closed matthewDDennis closed 6 years ago

matthewDDennis commented 6 years ago

If you modify your projects to have multiple frameworks with the <TargetFrameworks> tag, then the Docker tools does not know which framework to use as there is no <TargetFramework> tag.

Adding the <TargetFramework>netcoreapp1.1<...> fixes the problem in Visual Studio and all the frameworks build and can debug with Docker.

However, if you try and build a framework other than the netcoreapp1.1 with the DotNet CLI, it fails as it, as the documentation states, will ignore the <TargetFrameworks> tag if the <TargetFramework> tag is present

barrytang commented 6 years ago

To report new issues, use the Report a Problem tool. The GitHub Issue Tracker for the aspnet/Tooling repo is now deprecated in favor of the Report a Problem tool.

If you encounter a problem with Visual Studio, we want to know about it so that we can diagnose and fix it. By using the Report a Problem tool, you can collect detailed information about the problem, and send it to Microsoft with just a few button clicks. See here for more details.