Creating a Release configuration manifest #1189
-
Having looked at
...and for the app:
But both produce a manifest containing "development". What am I missing? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Try generating the manifest using the MSBuild target rather than |
Beta Was this translation helpful? Give feedback.
The concept of build configurations and environments (development, production) are independent and not tied together directly. The
dotnet run
command will select the first launch profile from the launchSettings.json and honor whatever environment variables are configured in there, which by default includes setting the environment to "Development".dotnet run
also defaults to using the Debug build configuration.dotnet msbuild
doesn't use launch profiles so the default environment of "Production" will be used.