问题描述
我有一个项目(VC ++ 2005),其中我导入了VCProjectEngine.dll,并且来自".dsp"。生成了".vcproj" (总而言之 - 代码生成)。
$
但现在我想从".dsp"生成".vcxproj"在WIndows 7上,在Visual Studio 2010(VC ++)下。
$
我尝试了它并出现了第一个问题:在VS2010中没有VCProjectEngine.dll。 />
我试图使用Microsoft.VisualStudio.VCProjectEngine.dll,但无法使用命名空间导入和使用...。
请发送简短示例如何使用Microsoft.VisualStudio.VCProjectEngine.dll。
无论如何,是否有可能来自".dsp"得到"vcxproj"在VS2010中?
$
提前付款。
最好的问候
I have a project (VC++ 2005), in which I have imported VCProjectEngine.dll and from ".dsp" have generated ".vcproj" (in one word - did code generation).
But now I want to generate from ".dsp" the ".vcxproj" on WIndows 7, under Visual Studio 2010 (VC++).
I tried it and the first problem that appears: in VS2010 there isn't VCProjectEngine.dll.
I tried to use Microsoft.VisualStudio.VCProjectEngine.dll, but could not import and used using namespace... .
Please, send short example how to use Microsoft.VisualStudio.VCProjectEngine.dll.
And anyway, is it possible from ".dsp" get "vcxproj" in VS2010?
Thanks in advance.
Best Regards
Hakob。
推荐答案
如果无法加载VCProjectEngine.dll,我建议您尝试运行"C:\Program Files(x86)\ Microsoft Visual Studio 10.0 \VC \vcvarsall.bat"首先,或使用Studio 2010命令提示符,您可以在所有程序中找到它们> Microsoft visual studio 2010-> visual
工作室工具。
If the VCProjectEngine.dll could not be loaded, I suggest you try running "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" first, or using Studio 2010 Command Prompt which you can find in All programs->Microsoft visual studio 2010->visual studio tools.
通过使用Visual C ++ 2010,您可以打开并保存在Visual C ++版本6或更高版本中生成的项目。 Visual C ++将自动转换项目。升级过程会创建扩展名为.vcxproj的项目文件,并且不会删除
旧项目文件(.dsp,.vcproj)。在某些情况下,升级过程中可能会在日志中显示警告和错误消息。这可能是由于旧的和新的构建系统之间的差异,语言的更改或库的更改。要求
简化解决这些消息,首先解决构建系统问题,然后通过使用以下过程:
1->并排安装Visual C ++ 2010。
2->在Visual C ++ 2010中,打开并升级解决方案。
3->对于每个项目,通过将 Platform Toolset 设置为v100来选择Visual C ++ 2010工具集。 。$
4->清理并构建解决方案。进行更改并重新构建,直到构建成功。
By using Visual C++ 2010, you can open and save a project that was built in Visual C++ version 6 or later. Visual C++ will convert the project automatically. The upgrade process creates project files that have the extension .vcxproj, and does not remove old project files (.dsp, .vcproj). In some cases warnings and error messages might appear in the log during the upgrade process. These might be due to differences between the old and new build systems, changes to the languages, or changes to the libraries.To simplify resolving these messages, solve the build system issues first, and the code issues second by using the following process:
1->Install Visual C++ 2010 side by side.
2->In Visual C++ 2010, open and upgrade the solution.
3->For each project, choose the Visual C++ 2010 toolset by setting Platform Toolset to v100. .
4->Clean and build the solution. Make changes and build again until the build is successful.
最好的问候,
Helen Zhao
Best regards,
Helen Zhao
这篇关于将dsp转换为vcxproj的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!