I have a C# project called TestProduct.sln Unfortunately depending on the user the program has to react diffently at one point. How can i tell the program for which user it is compiled? Do i have to use DefineConstants while building like:
msbuild /p:DefineConstants=USER1 TestProduct.sln
and within my code:
#if USER1
// do something USER1 specific
#endif
Or do i have to do something completely different to archieve the wanted behavior?
Thanks in advance for your help.
Edit: Sorry for expressing myself wrong, i have to clarify the situation. Users was the wrong wording i had to call it customers. Foreach customer there is a batch file which starts the msbuild command. And within the msbuild command i want to tell built binary for which customer it will be provided.