How to set project launch through coding in C #

I would like to run a command prompt to launch the project and install its project run

+3
source share
3 answers

Great idea @ Klausbykov. Here is the code for the macro. Please any options for Klaus

See MSDN VS Macros

Option Strict Off
Option Explicit Off
Imports System
Imports EnvDTE
Imports EnvDTE80
Imports EnvDTE90
Imports System.Diagnostics

Public Module RecordingModule
Sub TemporaryMacro()
DTE.ExecuteCommand ("Project.SetasStartUpProject")
End Sub
End Module
+1
source

You can record a macro and assign it a key combination. I think that would be the easiest way.

+4
source

https://github.com/ParticularLabs/SetStartupProjects, nuget,

var startupProjectGuids = new List<string>
{
"11111111-1111-1111-1111-111111111111",
"22222222-2222-2222-2222-222222222222"
};
var suoHacker = new SuoHacker();
suoHacker.CreateStartProjectSuoFiles(testSolutionPath, startupProjectGuids);
0

Source: https://habr.com/ru/post/1747142/


All Articles