Visual Studio Development Bookmark and Share   
 index > Visual Studio Extensibility > VS Shell: Adding custom command line arguments to VS Isoloated mode application.
 

VS Shell: Adding custom command line arguments to VS Isoloated mode application.

Hi,

I am developing a VS Isolated mode application and I want to add some custom arguments which I can add on the command line.
Example: I would like to call my final application from the command line like this 'myapp.exe /argument1=value1'

What are the best practices for solving this?

Regards
Lars E.
lar7  Tuesday, October 13, 2009 12:42 PM

Hi Lars,

The following help topics should get you pointed in the right direction:

   Visual Studio SDK: Adding Command-Line Switches


You can register a command line switch with the ProvideCommandLineSwitchAttribute.

Then test for the argument via the SVsAppCommandLine service, by using IVsAppCommandLine.GetOption.

Sincerely,


Ed Dore
Ed Dore  Tuesday, October 13, 2009 5:23 PM

Hi Lars,

The following help topics should get you pointed in the right direction:

   Visual Studio SDK: Adding Command-Line Switches


You can register a command line switch with the ProvideCommandLineSwitchAttribute.

Then test for the argument via the SVsAppCommandLine service, by using IVsAppCommandLine.GetOption.

Sincerely,


Ed Dore
Ed Dore  Tuesday, October 13, 2009 5:23 PM

You can use google to search for other answers

Custom Search

More Threads

• Great, VS2005 is released! when will we see VS SDK released?
• Specified Cast is not Vaild
• Displaying various languages characters
• why my package deploy failed on target pc?
• Differences in ShapeElement placement logic: OnLoad vs. Custom trigger
• Events from xml editor's grid-view
• UIPAB
• Setting the default expanded state for a compartment
• How to programmatically catch solution upgrade event
• Extend contextual menu