-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to fix the issues with TargetFrameworks? #315
Comments
Docker tooling doesn't support adding docker support on projects with TargetFramwroks. Looks like you added the TargetFrameworks after adding docker support. Having said that it could still work as long as you have the |
Thank you for your answer. Tried: <TargetFrameworkIdentifier>.NETCore</TargetFrameworkIdentifier> Doesn't seem to make a difference:
Removing net48 from the target frameworks removes the OS switch message box (basically DockerDefaultTargetOS seems not to be used). But keeping net5.0;net6.0 still fails for net6.0. So I guess the final answer is that docker tooling doesn't support multiple targets? |
One of the .Net targets sets the Having a compose project targeting multiple frameworks is not a supported scenario. |
I am facing the same issue as per original ticket description. Is there any plan to support multiple |
Checked everywhere I could search but didn't find any meaningful information. Any help is highly appreciated. I feel it should be fairly simple unless there is a bug in the docker tools.
I have projects with multiple targets, like this:
<TargetFrameworks>net5.0;net6.0</TargetFrameworks>
or
<TargetFrameworks>net48;net6.0</TargetFrameworks>
or
<TargetFrameworks>net48;net5.0;net6.0</TargetFrameworks>
Problems:
Docker tools for Visual Studio seem to get confused:
I cannot find any way to set 1) the target OS and/or 2) the target framework. Something as simple as setting the OS to Linux and the TargetFramework to "net6.0" when <TargetFrameworks> is set either "net48;net5.0;net6.0" or "net5.0;net6.0".
Tried:
Thanks.
The text was updated successfully, but these errors were encountered: