视觉工作室扩展 [英] visual studio extensions

查看:57
本文介绍了视觉工作室扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿 

推荐答案

问题的关键在于错误消息:

The key to the problem is in the error message:

在解决方案 

中打开了一个具有相同名称的项目,并显示您发布的代码段,试图添加一个现有的ConsoleApplication2.csproj,当它已经加载时,由于您创建项目的早期代码行。

and the code snippet you posted, you appear to be trying to add an existing ConsoleApplication2.csproj, when it's already loaded due to the earlier line of code where you created the project.

虽然我有点困惑于使用在这个例子中的DTE接口,因为你似乎从VS包调用这个代码,我可以告诉你。还有更好的方法可以通过DTE自动化界面创建/加载现有项目。

Though I'm somewhat puzzled by the usage of the DTE interface in this instance, as you appear to invoking this code from a VS Package as best I can tell. And there are better ways of creating/loading an existing project, via the DTE automation interfaces.


Solution.AddFromFile
方法。

此致,


这篇关于视觉工作室扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆