DEV Community

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

Calin Baenen on February 23, 2021

We're getting ever closer to the release of the new and improved Janky in CSharp. However, I face a new challenge, I'm using CLI tools to do buildi...
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!