VSIX-在Visual Studio扩展中获取Rootsuffix
要调试Visual Studio扩展,您可以使用某个“ Rootsuffix”启动实验实例。参见
有没有办法知道扩展代码中提供的Rootsuffix?
即“ exp”如果实例是从“ devenv.exe /rootsuffix exp”开始的
To debug Visual Studio extensions you can start an experimental instance with a certain "RootSuffix". See https://learn.microsoft.com/en-us/visualstudio/extensibility/the-experimental-instance?view=vs-2022.
Is there a way to know the provided rootsuffix in the code of your extension?
I.e. "Exp" if the instance was started with "devenv.exe /RootSuffix Exp"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
DTE对象具有a 属性包含您需要的信息。
The DTE object has a CommandLineArguments property which contains the information you need.
可以通过以下代码检索:
Can be retrieved with following code: