DEV Community

Discussion on: How do I set the release mode (e.g. "debug", "release") for a CSharp file in `X.csproj`

Collapse
 
rmaurodev profile image
Ricardo

I don't think you can use the csproj to define that
In the cli command you define if is release or debug
E.g. dotnet publish -c Release

Checkout this docs, maybe it helps
docs.microsoft.com/pt-br/dotnet/co...

Collapse
 
baenencalin profile image
Calin Baenen

Can this be used with build?

Collapse
 
baenencalin profile image
Calin Baenen

Nevermind, it does.

Collapse
 
baenencalin profile image
Calin Baenen

Thanks! Cheers!