Re: Determine whether App is running is Visual Studio
From: Dmitriy Lapshin [C# / .NET MVP] (x-code_at_no-spam-please.hotpop.com)
Date: 04/19/04
- Next message: Rahul Anand: "Re: Array Fundamentals"
- Previous message: Willy Denoyette [MVP]: "Re: Array Fundamentals"
- In reply to: cody: "Determine whether App is running is Visual Studio"
- Next in thread: cody: "Re: Determine whether App is running is Visual Studio"
- Reply: cody: "Re: Determine whether App is running is Visual Studio"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 19 Apr 2004 12:52:13 +0300
If we assume that you always use the Debug configuration to run the project
from the IDE,
you can use the following condition:
#if DEBUG
path = ".\..\..\..\myfile.rpt";
#else
path = "myfile.rpt";
#endif
-- Dmitriy Lapshin [C# / .NET MVP] X-Unity Test Studio http://www.x-unity.net/teststudio.aspx Bring the power of unit testing to VS .NET IDE "cody" <no_spam_deutronium@gmx.net> wrote in message news:uGXuH$eJEHA.952@TK2MSFTNGP12.phx.gbl... > Is there a way to do: > > #if APP_IS_RUN_IN_VS > path = ".\..\..\..\myfile.rpt"; > #else > path = "myfile.rpt"; > #endif > > I don't want to put the files into debug/bin dir since they woulbe be > deleted on rebuilt then. > > -- > cody > > Freeware Tools, Games and Humour > http://www.deutronium.de.vu || http://www.deutronium.tk > >
- Next message: Rahul Anand: "Re: Array Fundamentals"
- Previous message: Willy Denoyette [MVP]: "Re: Array Fundamentals"
- In reply to: cody: "Determine whether App is running is Visual Studio"
- Next in thread: cody: "Re: Determine whether App is running is Visual Studio"
- Reply: cody: "Re: Determine whether App is running is Visual Studio"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|