I ve tried to find a keyboard shortcut to build only the startup project In VS2008.
I only found a configurable shortcut to build the project which is currently viewed, which isn t as good.
Any ideas?
Thanks.
I ve tried to find a keyboard shortcut to build only the startup project In VS2008.
I only found a configurable shortcut to build the project which is currently viewed, which isn t as good.
Any ideas?
Thanks.
That macro ought to do it:
Sub Build_Startup()
DTE.ToolWindows.OutputWindow.Parent.Activate()
Dim sb As SolutionBuild2 = DTE.Solution.SolutionBuild
For Each item In sb.StartupProjects
sb.BuildProject(sb.ActiveConfiguration.Name, item, True)
Next
End Sub
Just put that in your macros - using the Macros IDE Alt + F11, and add a keyboard mapping to it (Tools/Customize/Commands/Keyboard, find your new command in the Macros.
namespace), and you re all set.
You could create a custom solution configuration that only builds the project you want (named for example "StartupOnly"). By default Visual Studio shows a combo in the toolbar that allows to quickly switch between different configurations, so all you would need is to select that configuration and use the regular build command.
You can use "Build Only Startup Project" extension on VS 2019 and VS 2022.
Also to assigne keyboard shorcut, you can check "Build.BuildOnlyStartupProject" shortcut.
Sorry, I don t have enough points to reply directly to progician above, but in VS2010, if you add the following as the first line of Bahbar s macro, the output window will display during the build
DTE.ToolWindows.OutputWindow.Parent.Activate()
Update: additionally, you need to use the following for the configuration name:
Dim configName = String.Format("{0}|{1}", sb.ActiveConfiguration.Name, sb.ActiveConfiguration.PlatformName)
I m using Visual Studio 2008 (with the latest service pack) I also have ReSharper 4.5 installed. ReSharper Code analysis/ scan is turned off. OS: Windows 7 Enterprise Edition It takes me a long time ...
The full error is as follows: The type System.Windows.Forms.Control is defined in an assembly that is not referenced. You must add a reference to assembly System.Windows.Forms, Version=2.0.0.0, ...
I can t find the Code Analysis tool in Visual Studio Team System 2008 Database Edition. Is this feature not available in the Database Edition?
I tried installing VS.PHP some time ago. I was intent on seeing how it works with my current setup. I immediately encountered trouble: none of my sites wanted to render. On windows, I m using WAMP ...
I followed Scott Guthrie s instructions as outlined at http://weblogs.asp.net/scottgu/archive/2008/11/21/jquery-intellisense-in-vs-2008.aspx but no avail: intellisense still doesn t work. Any tips?
First off, I m completely out of my depth here. So the question might be the wrong one to ask, but here goes... As per the accepted answer to this question, I m trying to compile the bindings for the ...
I was seeing about Windows Mobile 5 SDK at Microsoft Download Center and I also see some requirements to run it: System Requirements Supported Operating Systems: Windows Server 2003 Service Pack 1; ...
After Jeph most recent post: http://www.codinghorror.com/blog/archives/001310.html, I thought to myself it would be fun to see if any of my code has those trailing whitespaces. So I open Visual ...