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 / Extensibility / July 2006

Tip: Looking for answers? Try searching our database.

How to tell if a build is a debug or release build?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gunnar Syren - 13 Jul 2006 06:51 GMT
I'm trying to write a macro that runs on the BuildEvents_OnBuildDone
event and that backs up my VB.Net project when I do a release build.

Everything works fine, except it runs on both debug and release builds,
and I only want it to run on release builds.

Is there any way to differentiate between these?

/Gunnar
Peter Macej - 13 Jul 2006 08:25 GMT
You can get the build configuration name using:
DTE.Solution.SolutionBuild.ActiveConfiguration.Name

Signature

Peter Macej
Helixoft - http://www.vbdocman.com
VBdocman - Automatic generator of technical documentation for VB, VB
.NET and ASP .NET code

Gunnar Syren - 13 Jul 2006 08:47 GMT
Thanks Peter!

I was thinking that maybe I should use the OnBuildProjConfigDone event
instead of the BuildDone event, but I couldn't find any useful
documentation on that event.

It _seems_ to fire for each build, just like BuildDone.

I think I'll stick with BuildDone now that I know how to get the
configuration name.

/Gunnar

> You can get the build configuration name using:
> DTE.Solution.SolutionBuild.ActiveConfiguration.Name

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.