-
Notifications
You must be signed in to change notification settings - Fork 552
Description
When using the otherwise brilliant "Add Docker Files To Workspace.." feature it seems like the code to generate the ENTRYPOINT at the end of the Dockerfile uses the name of the Project instead of the AssemblyName from inside the .csproj file.
This means that if you have another AssemblyName specified inside the .csproj then the reference for ENTRYPOINT will point to an incorrect .dll name.
This will give a cryptic error message when trying to run the Docker image:
It was not possible to find any installed .NET Core SDKs
Did you mean to run .NET Core SDK commands? Install a .NET Core SDK from:
https://aka.ms/dotnet-download
In my case the line generated was:
ENTRYPOINT ["dotnet", "Physio.Server.WebApi.dll"]
But should have been:
ENTRYPOINT ["dotnet", "Habitlab.Physio.Server.WebApi.dll"]
As that is what I have specified in AssemblyName and RooNameSpace for that matter.