Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / May 2006

Tip: Looking for answers? Try searching our database.

VS.NET 2003 Configuration Manager question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
The Man From SQL - 09 May 2006 14:55 GMT
Okay, here's what I've done so far:

I've got a VS.NET VB.NET solution with four projects:  a Windows App, a
Forms Library, a Data Access layer DLL, and a BLL dll.  To this solution,
I've added a C# Class Library to house all of my NUnit Tests.  

Now, sometimes I want to be able to debug the Windows App, sometimes I want
to be able to run my NUnit tests, and sometimes I want to compile a
release-quality end product (minus the NUnit Test Bed), so I've add an
additional custom configuration called NUnit which builds all five projects
in debug mode.  My debug configuration doesn't build the NUnit library but
builds all the other projects in debug mode.  And my release configuration
builds the four projects in release mode.  This works fine, except for the
following.

What I want to do:

I want to be able to specify a different startup project for different
configurations.  For my Debug and Release configurations, I want the startup
project to be the Windows App, but for the NUnit configuration I want the
startup project to be the NUnit Class Library which triggers the
NUnit-Gui.exe.  It looks like you can only specify one startup project for
each solution.  

Is there a way around this?  

Thanks very much,

TheManFromSQL
"Gary Chang[MSFT]" - 10 May 2006 07:47 GMT
Hi,

Thank you posting!

The startup project is one of the solution's common properties, not a
solution's configuration property. This feature is by design in VS.NET. I
am afraid I haven't any idea on this issue.

Thanks for your understanding.

Best regards,

Gary Chang
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Carlos J. Quintero [VB MVP] - 16 May 2006 14:31 GMT
You can create a macro per each configuration that sets the startup project
and run it. Once the macros are created you can associate keyboard shortcuts
or create buttons on the IDE toolbars. I am not sure if an add-in or macro
could trap the changes of the active configuration and set the startup
project automatically to avoid different macros.

Signature

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com

> Okay, here's what I've done so far:
>
[quoted text clipped - 28 lines]
>
> TheManFromSQL

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.