Results 1 to 1 of 1

Thread: Building solutions from Windows Explorer

  1. #1

    Thread Starter
    Frenzied Member axion_sa's Avatar
    Join Date
    Jan 2002
    Location
    Joburg, RSA
    Posts
    1,724

    Building solutions from Windows Explorer

    This tip will add an entry to the right-click context menu on .sln files. When clicked, a command prompt will be spawned (and remain open) with MSBuild performing the build.

    This example uses 3.5's MSBuild. Just replace the path to your preferred .NET installation's MSBuild location (%WINDIR%\Microsoft.NET\Framework\{{Version}}\MSBuild.exe)

    Open Windows Explorer & open the Folder Options dialog (Tools menu)

    Locate the Visual Studio Solution file type (SLN) and click "Advanced":


    In the "Edit File Type" dialog, click the "New" button:


    In the "New Action" dialog, give your action a name (say, "Build (debug)") and the following application path (verbatim):

    "c:\WINDOWS\system32\cmd.exe" /k C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe "%1" /p:Configuration=Debug /t:Rebuild

    Attached Images Attached Images    
    Last edited by axion_sa; Oct 29th, 2009 at 10:22 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width