MAK
MAK

Reputation: 7260

How do I Install NuGet Package

I am working on Visual Studio 2010.

I want to install the package into my vs2010 for WPF application.

I want to install the following package:

enter image description here

The above package version is : Wpf AutoGrid 1.3.0

While installation I am getting following error:

enter image description here

I also tried with other versions also but didn't get anything.

Upvotes: 0

Views: 138

Answers (3)

vendettamit
vendettamit

Reputation: 14677

None of the other provided solution will work because the Nuget package of WPFAutoGrid only have binaries compiled on .Net 4.5 even if you change your project's target framework from 4.0 client profile to 4.0 full framework version. Now you have two choices

  1. Either download the project or Fork it and try to compile it with your project's target framework 4.0. This might break the build so you would endup fixing the broken issues in worst case scenario. If it works use that library in your project happily.

  2. Or Raise an Issue on github source of WPFAutoGrid to request update of Nuget package to include a .Net 4.0 libraries.

Upvotes: 4

Bradley Uffner
Bradley Uffner

Reputation: 16991

It looks like your main project is targeting the Client Profile of .net 4.0. Try changing your main project to build against the full profile.

See this MSDN page for specific step-by-step on how to change it: https://msdn.microsoft.com/en-us/library/bb398202(v=vs.100).aspx

Upvotes: 0

Haydar Ali Ismail
Haydar Ali Ismail

Reputation: 411

I guess you are using Visual Studio 2010 RTM which still not included with .NET Framework 4.0, the package WPF Auto Grid require at least .NET Framework 4.0 in order to work. So I guess you can install .NET Framework 4.0 by yourself or you can use newer version of Visual Studio which by default already installed with .NET Framework 4.0.

Let me know and mark it as an answer if it helps you :)

Upvotes: 1

Related Questions