I am having issues when building a dotnet core application inside a docker container. I am using dotnet core 2.2.
The setting for the project are: Output: Console App Startup Project: Web.Project
When running the command below inside the container:
RUN dotnet build "Web.csproj" -c Release -o /app
I get the error below:
Could not find 'Web.Program' specified for Main method [/src/Web/Web.csproj]
If the project is just an assembly (dll) everything works fine but I'm unable to run the web app.
Any ideas?