简体   繁体   English

使用EnvDTE访问项目的属性

[英]Accessing properties of a project using EnvDTE

I'm writing a visual studio add-in to automate some of our BizTalk related tasks. 我正在编写一个Visual Studio加载项来自动化一些与BizTalk相关的任务。

I'd like to be able to access the property values of a project (not what shows in the default 'Properties' pane. The properties shown in a window if you right click on the project and select 'properties' from the context menu.) 我希望能够访问项目的属性值(不是默认“属性”窗格中显示的内容。如果右键单击项目并从上下文菜单中选择“属性”,则窗口中显示的属性。 )

Specifically I'd like to get/set the application it deploys to, assembly signing, etc. The rest of the add-in is already working. 具体来说,我想获取/设置要部署到的应用程序,程序集签名等。其余的加载项已经在工作。

Thanks! 谢谢!

我不确定它是否包含部署/程序集签名,并且由于有很多支持代码,因此很难给出完整的示例,但是您可以从IVsSolutionBuildManager.FindActiveProjectCfg开始,将结果转换为IVsProjectCfg2并枚举OutputGroups。

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

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