Publish to a Folder

  1. In Visual Studio Code – TERMINAL, run:

    dotnet publish -c Release -o ./bin/publish

  2. Copy the contents of ServerAPIs/bin/Release to the target location where the Web API service will run, and start the service using the dotnet command.