On Sat, May 23, 2009 at 12:17 AM, Peter Kasting <[email protected]>wrote:
> On Fri, May 22, 2009 at 9:15 PM, nakro <[email protected]> wrote: > >> should have read "a cool macro to only BUILD the startup >> project ....." > > > OK, I understand what you're trying to do. > > Generally when working I either want to test-compile the file I'm in > (ctrl-F7) or actually run the program (F5), or in rare cases ensure > everything builds successfully with my changes (F7). I've never encountered > a need to build, but not run, the startup project, but not the full > solution. However, if this is useful to others, then I'm glad you posted > it! > Actually one similar macro that could be interesting (not to me since I use F5 but maybe to others) Sub BuildCurrentProject() ' Build the project containing the active source file. Dim Proj As Project = DTE.ActiveDocument.ProjectItem.ContainingProject Dim config As Configuration = Proj.ConfigurationManager.ActiveConfiguration DTE.Solution.SolutionBuild.BuildProject(config.ConfigurationName, Proj.UniqueName, True) End Sub It's not that useful with static libs in fact. Note that this one (Run the current unit test) contains most of the code you need to do variants: http://code.google.com/p/chromium/wiki/WindowsVisualStudioMacros#Run_the_currently_selected_google_test M-A --~--~---------~--~----~------------~-------~--~----~ Chromium Developers mailing list: [email protected] View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-dev -~----------~----~----~----~------~----~------~--~---
