Setting environment variables in pre-build event and using in compilation step

It’s 11 years later than when this question was originally asked. I am using VS 2019 if in the event you want to assign variables in your event like…. set ABC=123 Then you can’t use $(ABC) as the $(ABC) is processed before it is handed to the command line to run. You must use %ABC% … Read more