Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 56567
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T17:33:17+00:00 2026-05-10T17:33:17+00:00

On a class library project, I set the Start Action on the Debug tab

  • 0

On a class library project, I set the ‘Start Action’ on the Debug tab of the project properties to ‘Start external program’ (NUnit in this case). I want to set an environment variable in the environment this program is started in. How do I do that? (Is it even possible?)

EDIT:

It’s an environment variable that influences all .NET applications (COMplus_Version, it sets the runtime version) so setting it system wide really isn’t an option.

As a workaround I just forced NUnit to start in right .NET version (2.0) by setting it in nunit.exe.config, though unfortunately this also means all my .NET 1.1 unit tests are now also run in .NET 2.0. I should probably just make a copy of the executable so it can have its own configuration file…

(I am keeping the question open (not accepting an answer) in case someone does happen to find out how (it might be useful for other purposes too after all…))

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T17:33:17+00:00Added an answer on May 10, 2026 at 5:33 pm

    In Visual Studio 2008 and Visual Studio 2005 at least, you can specify changes to environment variables in the project settings.

    Open your project. Go to Project -> Properties… Under Configuration Properties -> Debugging, edit the ‘Environment’ value to set environment variables.

    For example, if you want to add the directory ‘c:\foo\bin’ to the path when debugging your application, set the ‘Environment’ value to ‘PATH=%PATH%;c:\foo\bin’.

    Here's a screenshot of the settings dialog

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 89k
  • Answers 89k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer My normal way of creating a hashcode for an arbitrary… May 11, 2026 at 5:49 pm
  • Editorial Team
    Editorial Team added an answer You can use RegExp.exec() to repeatedly apply a regex to… May 11, 2026 at 5:49 pm
  • Editorial Team
    Editorial Team added an answer Cookies are, by default, restricted to the host of the… May 11, 2026 at 5:49 pm

Related Questions

I've recently been building a test framework for a bit of C# I've been
VS2008/C# newbie here. If I open our project, have no code files open, and
Hi I'm trying to use mono-service2 to run a stock Windows Service Project from
I'm writing this question with reference to this one which I wrote yesterday. After

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.