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