从命令行控制Visual Studio插件

时间:2023-01-21 16:29:47

Is there a way to control the addins Visual Studio 2008 loads via the command line? I am looking for a way to load my DevExpress plug in when I am working with VB or C# and alternatively load Visual Assist X when I am working on a c++ project.

有没有办法通过命令行控制加载Visual Studio 2008加载?我正在寻找一种方法来加载我的DevExpress插件,当我使用VB或C#时,或者当我在c ++项目上工作时加载Visual Assist X.

2 个解决方案

#1


0  

Not a direct answer but you can disable Visual Assist X either via the menu (VAssistX | Enable/Disable ) or via the command VAssistX.EnableDisable (both of these toggle between on and off). Alternatively, you can add .cs and .vb file extensions to the "Extension to ignore" list in Visual Assist Options | Projects | File Handling.

不是直接答案,但您可以通过菜单(VAssistX |启用/禁用)或通过命令VAssistX.EnableDisable(两者都在打开和关闭之间切换)禁用Visual Assist X.或者,您可以将.cs和.vb文件扩展名添加到Visual Assist Options中的“Extension to ignore”列表中项目|文件处理。

#2


-1  

There is a way to access the command line from a plugin. I think the only option, if you really want this and the plugin doesn't support it out of the box, is the write your own plugin. To do this, just read Environment.CommandLine from the OnConnection method.

有一种方法可以从插件访问命令行。我认为唯一的选择,如果你真的想要这个并且插件不支持开箱即用,那就是编写你自己的插件。为此,只需从OnConnection方法中读取Environment.CommandLine即可。

#1


0  

Not a direct answer but you can disable Visual Assist X either via the menu (VAssistX | Enable/Disable ) or via the command VAssistX.EnableDisable (both of these toggle between on and off). Alternatively, you can add .cs and .vb file extensions to the "Extension to ignore" list in Visual Assist Options | Projects | File Handling.

不是直接答案,但您可以通过菜单(VAssistX |启用/禁用)或通过命令VAssistX.EnableDisable(两者都在打开和关闭之间切换)禁用Visual Assist X.或者,您可以将.cs和.vb文件扩展名添加到Visual Assist Options中的“Extension to ignore”列表中项目|文件处理。

#2


-1  

There is a way to access the command line from a plugin. I think the only option, if you really want this and the plugin doesn't support it out of the box, is the write your own plugin. To do this, just read Environment.CommandLine from the OnConnection method.

有一种方法可以从插件访问命令行。我认为唯一的选择,如果你真的想要这个并且插件不支持开箱即用,那就是编写你自己的插件。为此,只需从OnConnection方法中读取Environment.CommandLine即可。