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
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