dotnet / sdk-container-builds

Libraries and build tooling to create container images from .NET projects using MSBuild
https://learn.microsoft.com/en-us/dotnet/core/docker/publish-as-container
MIT License
175 stars 30 forks source link

Provide better guardrails for .NET Framework TFMs #525

Open baronfel opened 7 months ago

baronfel commented 7 months ago

@wasabiii has reported on the MSBuild channel of the DotNetEvolution discord that we have a few issues with our .NET Framework TFM support. At minimum we set an entrypoint of dotnet.exe path/to.dll for these scenarios, which 100% will not work.

We should instead detect this case and fail fast. We don't support packaging .NET Framework apps in containers, because they do not target Linux.

wasabii commented 2 months ago

It can be fixed for Framework, as well as Windows images, pretty easily, as well, if that's a choice.