FoundatioFx / Foundatio

Pluggable foundation blocks for building distributed apps.
Apache License 2.0
1.99k stars 244 forks source link

Error While Installing package from NuGet #176

Closed AminuBishir closed 4 years ago

AminuBishir commented 4 years ago

I was trying to install this package into my application but I got an installation error as thus:

install-package : Could not install package 'Foundatio 8.1.2126'. You are trying to 
install this package into a project that targets '.NETFramework,Version=v4.6', 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.

Please what am I doing wrong? and What can I do to fix this?

Info: It's Desktop winform app that uses EF 6

niemyjski commented 4 years ago

We target .NET Standard 2.0 so it should be working. It could be your version of Visual Studio / NuGet tooling, are you on the latest version? Also I'd recommend upgrading to latest version of .NET if possible as they've made many improvements for consuming .net standard libraries.

AminuBishir commented 4 years ago

Thanks for you response. I'll try out your suggestions.

ejsmith commented 4 years ago

Your app needs to be running at least .net 4.6.1 framework in order to work with .net standard 2.0 assemblies.

niemyjski commented 4 years ago

I'm going to close this as @ejsmith answered this question. If you run into any issues please let us know.