Cannot add a reference to PCL from C++/Cli project

情到浓时终转凉″ 提交于 2019-12-08 09:09:50

问题


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?

Thank you


回答1:


This questionas was replied but for some unknown reason, the response has been deleted:

The solution is to edit the vcxproj file and change

 <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>

to

 <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>


来源:https://stackoverflow.com/questions/13321958/cannot-add-a-reference-to-pcl-from-c-cli-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!