Quantcast
Channel: WE MOVED to github.com/nuget. This site is not monitored!
Viewing all articles
Browse latest Browse all 7612

Commented Unassigned: Cannot add C# package to C++/Cli project [3665]

$
0
0
I have a solution with 2 projects:

Project CS - C# (net45)
Project Cpp - C++ with /clr (x64/net45)

I can add C# dependencies to the CS project, and I can add native packages (created using CoApp) to the Cpp project.

However, NuGet does not allow me to add C# packages to the Cpp project.



Comments: The current code of NuGet doesn't allow treating a project as two different target frameworks. NuGet queries the project system and gets back the target framework as a native project. In order to add assembly references to a native project, you can't use the normal way by putting the assemblies under the 'lib' folder. Please read this page for how to add assembly references to a native project. http://docs.nuget.org/docs/reference/support-for-native-projects

Viewing all articles
Browse latest Browse all 7612

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>