-
Notifications
You must be signed in to change notification settings - Fork 56
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
Multi-Targeting .NET Framework & .NET Core #63
Comments
The easiest solution would be to take the Mono image and just install .NET Core in your Dockerfile, or the other way around :) |
That's exactly what I'm now looking into. Multi-targeting is a fairly common scenario, particularly for library authors. and I don't want to have to maintain a docker image. I was hoping that a more expansive image could be created but I'm not sure who would maintain it. I suppose this is a more general problem with docker images and not being able to somehow merge them when you want dependencies from two base images. I'm sure docker are on it. |
You don't need to maintain a persistent Docker image yourself, you'd just install .NET Core as normal in the Dockerfile and create a temporary image before invoking your build script. |
I'm trying to use Circle CI, to build NuGet packages. So I don't actually have a Dockerfile. Plus I'd rather not maintain all this with each version update. |
Yeah, understood. I think it'd need to be driven by the .NET Core team since they'd need to make it work on Windows with .NET Framework as well. |
I just tried it the other way around, I took the .NET Core docker image and installed mono in there like this:
My test application has a 'normal' project file and a .NET Core style project file targeting the .NET Framework (something I am experimenting with) and this works great. |
The .NET team is working on getting the .NET Framework reference assemblies into a NuGet package so you can build using the .NET Core tooling as well which I guess solves this too: dotnet/designs#33 |
My application is a .NET Framework it is possible to run a docker image with mono? |
Is there any progress on this request? I have similar requirement. |
Steps to reproduce the issue
I'd like to be able to build my project targeting .NET Framework (Mono) and .NET Core.
Expected behavior
A docker image exists with both the .NET Framework (Mono) and .NET Core.
Actual behavior
No such image exists.
Additional information
I was not certain where to raise this issue, so I've also raised it here.
The text was updated successfully, but these errors were encountered: