How to build multiple environments with VisualStudio C # .NET Framewok

Question: Question:

I am developing an application for Windows in an environment called VisualStudio C # .NET Framewok. This app is communicating with an external server. There are three servers, a develop environment, a staging environment, and a production environment. Along with that, I also want to build a different server destination for each environment.

(I'm expecting a function like flavor in Android development)

Thank you.

Answer: Answer:

How about writing to an external setting file such as the application setting file function?

It rewrites the configuration file without changing the built binary.

Scroll to Top