Nuget package installation failure

前端 未结 8 1825
一生所求
一生所求 2020-12-20 11:43

When trying to install a package from our newly created private Nuget Feed i get the following error.

Could not install package \'GC.Timecode 1.0.0.3\'. You are tryi

相关标签:
8条回答
  • 2020-12-20 12:36

    I think solution may vary from case to case, however, in my case, NuGet package was built/compiled in "Class Library .NET Core 3.1" whilst the project which were using this package belonged to .NET Framework. I just changed the project type to .NET Core 3.1 and added NuGet package again and it worked for me.

    0 讨论(0)
  • 2020-12-20 12:38

    I was also getting the following message.

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

    In my case, changing the package management format from packages.config to PackageReference solved the problem.

    0 讨论(0)
提交回复
热议问题