DmitryEfimenko / TwitterBootstrapMvc

Fluent implementation of ASP.NET-MVC HTML helpers for Twitter Bootstrap.
Apache License 2.0
223 stars 79 forks source link

Can't install native package into two or more win32 projects in same solution #428

Closed gordonwatts closed 8 years ago

gordonwatts commented 8 years ago

To reproduce:

  1. In VS Community, Update 3, with everything up to date
  2. Create a new empty solution, add two C++ win32 console applications (call them bogus1 and bogus2, for example).
  3. From solution line select "Manage nuget packages...", search nuget.org for the ROOT native package.
  4. Select "bogus1" as the target, and install. Works fine.
  5. Select "bogus2" as the target, and install. Fails with a "Could not install package 'ROOT 534.36.13'. 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."
  6. Uninstall from bogus1, select bogus2, install. Works fine.
  7. Select bogus1, install. Fails with the same error as above.

I have not figured a work around yet. I have version 3.5.0.1484 of nuget installed according to the extensions and updates dialog box. Here is a complete log of the attempted installation when I selected two of my projects (selecting bogus1 and bogus2 at the same time).

Attempting to gather dependency information for package 'ROOT.534.36.13' with respect to project 'PlotSingleLimit', targeting 'native,Version=v0.0'
Gathering dependency information took 85.67 ms
Attempting to resolve dependencies for package 'ROOT.534.36.13' with DependencyBehavior 'Lowest'
Resolving dependency information took 0 ms
Resolving actions to install package 'ROOT.534.36.13'
Resolved actions to install package 'ROOT.534.36.13'

Attempting to gather dependency information for package 'ROOT.534.36.13' with respect to project 'ExtrapolateByBeta', targeting 'native,Version=v0.0'
Gathering dependency information took 0.76 ms
Attempting to resolve dependencies for package 'ROOT.534.36.13' with DependencyBehavior 'Lowest'
Resolving dependency information took 0 ms
Resolving actions to install package 'ROOT.534.36.13'
Resolved actions to install package 'ROOT.534.36.13'
Retrieving package 'ROOT 534.36.13' from 'nuget.org'.
Adding package 'ROOT.534.36.13' to folder 'C:\Users\Gordon\Documents\Code\calratio2015\Extrapolation\packages'
Added package 'ROOT.534.36.13' to folder 'C:\Users\Gordon\Documents\Code\calratio2015\Extrapolation\packages'
Added package 'ROOT.534.36.13' to 'packages.config'
Successfully installed 'ROOT 534.36.13' to PlotSingleLimit
Executing nuget actions took 300.44 ms
Found package 'ROOT 534.36.13' in 'C:\Users\Gordon\Documents\Code\calratio2015\Extrapolation\packages'.
Install failed. Rolling back...
Package 'ROOT.534.36.13' does not exist in project 'ExtrapolateByBeta'
Executing nuget actions took 11.33 ms
Could not install package 'ROOT 534.36.13'. 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.
========== Finished ==========
Time Elapsed: 00:00:00.7735402
gordonwatts commented 8 years ago

Workaround: uninstall nuget 3.5 and install 3.4.4 (which is most up to date in the gallery). Given 3.4.4. is the most up to date that is sitting in the extension gallery, I'm not sure how I ended up with 3.5 on my machine. Perhaps it came down when I upgraded to update 3?

DmitryEfimenko commented 8 years ago

hi, not sure what happened with your nuget version, but I'm glad you fond the issue.

gordonwatts commented 8 years ago

Yikes! I'm so sorry - I must have been working without sleep. This should have been in the nuget issue feed, not yours!! :(