简体   繁体   English

无法在具有 vsix 扩展名的解决方案资源管理器中打开项目或项目文件夹(通过提供路径)?

[英]Unable open a project or project folder (by giving the path) into solution explorer with an vsix extension?

I have a requirement to load a project in solution explorer by providing a path in the extension.我需要通过在扩展中提供路径来在解决方案资源管理器中加载项目。

Suppose I have a menu button that opens a window form having a text field and a simple button .假设我有一个菜单按钮,可以打开一个window 表单,该表单有一个文本字段和一个简单的按钮 Now when we enter any path into the text field (assuming that an angular project exists on that path) and press the button (below the text field) then the project present on that path should be opened in solution explorer.现在,当我们在文本字段中输入任何路径(假设该路径上存在 angular 项目)并按下按钮(文本字段下方)时,该路径上的项目应在解决方案资源管理器中打开。 How can I do this?我怎样才能做到这一点?

Use EnvDte.Solution.AddFromFile(path) .使用EnvDte.Solution.AddFromFile(path)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM