无法从C ++ / Cli项目添加对PCL的引用 [英] Cannot add a reference to PCL from C++/Cli project
问题描述
我有一个便携式类库项目,Net 4.5平台激活。我可以使用它在其他C#项目没有问题。
现在,我有一个C ++ / Cli项目,我需要使用上面的PCL项目的一些类。
当我添加对PCL项目的引用,Visual Studio 2012给我一个错误,因为不同的目标平台。
I have a Portable Class Library project, Net 4.5 platform activated. I can use it in other C# projects without problems. Now, I have a C++/Cli project and I need to use some classes of the above PCL project. When I add the reference to the PCL project, Visual Studio 2012 gives me an error because of different target platforms.
是否有一个问题,添加引用
Is there a problem to add references to PCL projects from C++/Cli projects?
谢谢
推荐答案
已回复此问题,但由于某些未知原因,响应已删除:
This questionas was replied but for some unknown reason, the response has been deleted:
解决方案是编辑vcxproj文件并更改
The solution is to edit the vcxproj file and change
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
至
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
这篇关于无法从C ++ / Cli项目添加对PCL的引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!