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 / Setup / June 2006

Tip: Looking for answers? Try searching our database.

Add new Configuration to VS2005?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andrew - 14 Jun 2006 19:21 GMT
I imagine it's possible to add another "Configuration" to VS2005 - as
opposed to just the "Release" and the "Debug" configurations.. Well.. And I
can in fact do just that.. But does anyone know how I can have this new
Configuration actually have any effect?

For example, if I select the "Debug" configuration, I can the use:
#if DEBUG
and
#if !DEBUG

So now I want another Configuration called "QA" and have an environment
variable "QA" set, so I can then go:
#if QA
and
#if !QA

Is that possible?

Any thoughts or suggestions much appreciated.

Cheers
"Gary Chang[MSFT]" - 15 Jun 2006 07:10 GMT
Hi Andrew,

Thank you posting!

>So now I want another Configuration called "QA" and
>have an environment variable "QA" set, so I can then go:
[quoted text clipped - 3 lines]
>
>Is that possible?

That's no problem.

For a VC project, you can manually define the 'QA' preprocessor in the
project properties' C/C++ | Preprocessor | Preprocessor Definitions under
the new QA configuration. This is just the mechanism why DEBUG could be
used under DEBUG configuration.

Thanks!

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.
Andrew - 23 Jun 2006 11:56 GMT
>>So now I want another Configuration called "QA" and
>>have an environment variable "QA" set, so I can then go:
[quoted text clipped - 10 lines]
> the new QA configuration. This is just the mechanism why DEBUG could be
> used under DEBUG configuration.

Hi Gary,

Thank you for your reply, and for the information.  :)

My apologies for not being a little more specific...

First... I was thinking/hoping that there might be a way to actually change
the default behaviour. - So that when I start a new project, I can select
DEBUG, QA, or RELEASE from the Configuration dropdown menu right away.

Also, we almost exclusively use C# - So any solution would at least have to
affect C# projects... And ideally simply all of the VS environment as per
above.

Is there any way to do it that way...?

Please let me know.

Thanks! :)

- Andrew
"Gary Chang[MSFT]" - 26 Jun 2006 06:37 GMT
Hi Andrew,

For a C# project, you can define the 'Conditional compilation symbols' in
its project properties' Build option page, but it also needs you define it
manually.

>Is there any way to do it that way...?

I am afraid there is no such a feature in VS2005.But I suggest you can
submit this feedback to our product feedback center, our development team
may communicate with you directly on the issue there:

http://lab.msdn.microsoft.com/productfeedback/default.aspx

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.

Rate this thread:







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.