Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

command with parameters

$
0
0
I have created a VSPackage using wizard that comes with VS SDK. The package defines one command that can be accessed from Tools menu. The package is loading fine, I can execute the command manually, from the command window, from command line (/Command switch) or using DTE.ExecuteCommand() call ("Tools.MyCommand"). However I would like the command to accept switches and arguments. Currently whenever I try to execute my command with arguments I get something like:Command "Tools.MyCommand" does not accept arguments or switches. How do I make sure that it accepts arguments? Should this be done during command registration inInitialize() method? Or maybe in .vsct file?

Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>