public WhereCommandDescriptor(WhereService whereService)
        {
            Description = "Locates the installed version(s) of Visual Studio that satisfy the requested requirements.";

            Options = vsOptions
                      .With(propOption)
                      .With(listOption)
                      .With(workloads);

            this.whereService = whereService;
        }
예제 #2
0
 public RunCommandDescriptor()
 {
     Description = "This is default command, so typically it does not need to be provided as an argument.";
     Options     = vsOptions
                   .With(
         new OptionSet
     {
         { "id:", "Run a specific instance by its ID", i => Id = i },
         { "f|first", "If more than one instance matches the criteria, run the first one sorted by descending build version.", f => First = f != null },
         { "v|version:", "Run specific (semantic) version, such as 16.4 or 16.5.3.", v => Version = v },
         { "w|wait", "Wait for the started Visual Studio to exit.", w => Wait = w != null },
         { "nr|nodereuse", "Disable MSBuild node reuse. Useful when testing analyzers, tasks and targets. Defaults to true when running experimental instance.", nr => DisableNodeReuse = nr != null },
         { "default", "Set as the default version to run when no arguments are provided, or remove the current default (with --default-).", d => SetDefault = d != null },
     })
                   .With(workloads);
 }
 public InstallCommandDescriptor()
 {
     Description = "Installs a specific edition of Visual Studio.";
     Options     = vsOptions.With(workloads);
 }
예제 #4
0
 public ClientCommandDescriptor()
 {
     Description = "Launches Visual Studio in client mode";
     Options     = vsOptions.With(clientOptions);
 }