I tried to publish my ASP.Net 5
solution via
dotnet publish -c Release -r ubuntu.18.04-x64 --self-contained false /p:DebugType=None /p:DebugSymbols=false /p:EnvironmentName=Staging
that found here.
But I still see in logs that EnvironmentName
is Production
. What did I do wrong?
I also tried to add
<PropertyGroup Condition=" '$(Configuration)' != '' AND '$(Configuration)' != 'Debug' ">
<EnvironmentName>'$(Configuration)'</EnvironmentName>
</PropertyGroup>
into WebApp .csproj
, but the result is the same - nothing changes.