Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Please check <a href="https://stackoverflow.com/questions/1356565/how-to-start-a-single-project-without-debugging-in-visual-studio/1356970#1356970">this</a> SO answer. I have copy pasted it for you here.</p> <p>If you are interested in permanent solution then I have written a small macro for this task. It does following things :</p> <ol> <li>Gets current selected project ( it will use first selected project, if you have selected multiple projects.)</li> <li>Saves the current Startup Project</li> <li>Sets the current selected project as Startup project and Runs the current selected project in "Start without Debug" Mode.</li> <li>Restores the Initial Startup Project as Startup Project.</li> </ol> <p>Below is the Macro that I have written and the procedure how to do it.</p> <p>How to write Macro : First thing you need to go to Visual Studio Tools --> Macros --> Macro Explorer. Once you got that right click on MyMacros and create a new module (I called it CollapseAll).</p> <p>Now edit the new module (double-click on it) erase whatever is in there and paste this stuff into it.</p> <pre><code>Sub RunSelectedWithoutDebug() Dim Projs As Array Dim Proj As Project Projs = DTE.ActiveSolutionProjects() If (Projs.Length &gt; 0) Then Proj = Projs.GetValue(0) Dim Prop As EnvDTE.Property Prop = DTE.Solution.Properties.Item("StartupProject") Dim PrevStartup As Object PrevStartup = Prop.Value Prop.Value = Proj.Name DTE.ExecuteCommand("Debug.StartWithoutDebugging") Prop.Value = PrevStartup End If End Sub </code></pre> <p>How to bind macro to keyboard shortcut : To do this you need to go to Tools-->Options-->Environment-->Keyboard. Pick your macro from the listBox with all the default VS stuff (remember it will be there like MyMacros.Module1.RunSelectedWithoutDebug) and then assign a hotkey combination or chord to it and save.</p> <p><strong>Note</strong> : Fourth step is creating a problem and spawns an annoying messagebox saying : The build must be stopped to change the solution property. Stop the build? Ok or Cancel. I used to hit Ok for the timebeing. <strong>If you dont have any problem if the macro sets up current selected project as Startup project than please comment last line of macro Prop.Value = PrevStartup by putting ' at the start of line.Now the messagebox will not come.</strong></p> <p>I am looking into it and will post the updated macro once i solve it ( if I can :) )</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload