本文介绍了使用VS 2005专业版构建的Visual Studio自动化不适用于VS2005 Express Edition的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用ENVDTE dll自动执行项目(VC ++)创建.此自动化在VS2005专业版中运行良好.我已将此自动化构建为独立的.exe.
现在,当我在包含VS2005 Express的计算机上运行.exe时,在创建Solution对象时抛出了错误.

I have used ENVDTE dll to automate project(VC++) creation automatically.This automation is working fine in VS2005 profressional edition.I have built this automation as standalone .exe.
Now when i run the .exe on the machine which contains VS2005 Express it is throwing up error when Solution object is created.

Solution soln = System.Activator.CreateInstance(Type.GetTypeFromProgID("VisualStudio.Solution")) as EnvDTE.Solution;

推荐答案


这篇关于使用VS 2005专业版构建的Visual Studio自动化不适用于VS2005 Express Edition的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-10 17:26