Build and environement variable

I have a large visual studio solution with multiple projects in it (over 50). I recently decided to try Rider and was pleasantly surprised that the whole solution imported right through in rider.

However, our build environment requires multiple environment variable to be set (they vary depending on the branch we build). So we have a .bat file that basically set about 20 or so environment variable then launches VS. When using rider (installed from the toolbox), is there way to invoke my .bat file prior to MSBuild running on the various projects?


1 comment
Comment actions Permalink

I know this is an old one, but for anyone else, you can set multiple actions "before launch" on any run/debug configuration. I would presume that if the script sets any environment variables, they would be there for subsequent steps.


Please sign in to leave a comment.