In the class library project, I set the "Run Action" option on the "Debug" tab of the "Run External Program" project properties ( NUnit in this case). I want to set an environment variable in the environment in which this program is running. How should I do it? (Is it possible?)
EDIT:
This is an environment variable that affects all .NET applications (COMplus_Version, it sets the execution version), so installing it on a system scale is really not an option.
As a workaround, I just got NUnit to start with the right version of .NET (2.0) by installing it in nunit.exe.config , although unfortunately this also means that all my .NET unit tests now also run in .NET 2.0. I should probably just make a copy of the executable so that it can have its own configuration file ...
(I leave the question open (I donβt accept the answer) if someone accidentally finds out how this can be useful for other purposes, too ...))
debugging visual-studio environment-variables
Tobi Sep 19 '08 at 8:45 2008-09-19 08:45
source share