You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While docker is often convenient, there are many reasons why one would want to run a service directly on the host, instead of through a container layer.
Currently, Attempting to run the project directly results in an error.
$ dotnet run Wave/Wave.csprojUnable to run your project.Ensure you have a runnable project type and ensure 'dotnet run' supports this project.A runnable project should target a runnable TFM (for instance, net5.0) and have OutputType 'Exe'.The current OutputType is 'DockerCompose'.
I don't know enough about dotnet development to fix this myself.
The text was updated successfully, but these errors were encountered:
Well, looking around the web a bit, it seems this is a use-case no one has ever required before.. the issue is basically that the project file is configured for docker, which changes the way c# and asp.net behave, and while fixing that would probably just be one or two lines in the project file, the project itself assumes certain configurations about the host system that it's container will fulfill.. like the /app/files or /app/configuration directories existing. I can put it on my list to find solutions for, probably need a secondary project file for building a standalone version, but it won't be as simple as just adding that to make it run without issues without a container.
It should already be possible to run wave outside of a container.
Create a publish package with dotnet publish Wave/Wave.csproj
Copy the publish folder onto a machine with the .net8 runtime installed
Run dotnet Wave.dll inside the publish folder (don't forget to provide the correct environment variables)
The files (/app/files in the docker image) folder will be relative to your work directory.
Regarding /configuration, this should be made configurable via appsettings.json (And to be fair, everything in config.* should be configurable in this file)
While docker is often convenient, there are many reasons why one would want to run a service directly on the host, instead of through a container layer.
Currently, Attempting to run the project directly results in an error.
I don't know enough about dotnet development to fix this myself.
The text was updated successfully, but these errors were encountered: