Nuget package installation failure

前端 未结 8 1834
一生所求
一生所求 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:16

    Slippery Pete fixed this problem for me.

    The first time I tried to install my Assembly I got:

    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.

    After ensuring my Assembly within the Nuget package was in the 'lib\net45' folder, I still got the error!

    However after going to Tools->Options->Nuget->General and clearing the cache, the problem was solved.

提交回复
热议问题