Home: Cannot install packages into C++/CLR project

Created on 20 Jul 2016  路  3Comments  路  Source: NuGet/Home

As was reported in https://github.com/Reactive-Extensions/Rx.NET/issues/233, NuGet is not properly installing packages into C++/CLR projects.

To repro with VS 2015 U3:

  1. Create new C++ Console application using the "CLR Console Application" template
  2. Try to add System.Interactive using NuGet, either the package manager console or the UI

It fails with the following error:

Could not install package 'System.Interactive 3.0.0'. You are trying to install this package into a project that targets 'native,Version=v0.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

Most helpful comment

This issue is still present in VS2017 15.5.1 (latest update)

All 3 comments

Thanks for reporting the issue. At this point we do not plan on releasing an update for VS2015. Please try latest VS2017 and let us know if you need more help from us.

This issue is still present in VS2017 15.5.1 (latest update)

Is there a solution or workaround here?

Was this page helpful?
0 / 5 - 0 ratings