【发布时间】:2016-07-07 19:57:31
【问题描述】:
我正在使用 EnvDTE 在 Visual Studio 插件中修改 VC 项目的链接器和编译器设置/选项。但我似乎找不到可以从 DTE 实例访问这些选项的位置。到目前为止我所拥有的是
// I successfully can open the solution and get the project I'd like to
// modify the build options of (compiler and linker options)
foreach (EnvDTE.Project p in VS2015Instance.Solution.Projects)
{
if(p.UniqueName.Contains(projectName))
{
// At this point I have a reference to my VC project.
// Here I'd like to set some linker option before building the
// project.
VS2015Instance.ExecuteCommand("Build.BuildSolution");
}
}
那么,我在哪里可以获取/设置这些选项?
【问题讨论】:
标签: c# c++ visual-studio automation envdte