Nuget versioning issue with package restore

前端 未结 6 1088
走了就别回头了
走了就别回头了 2021-01-30 15:47

I am unable to install a package (using package restore) due to some kind of versioning issue with Nuget. Here are the steps I took:

build project: error : The schema ve

6条回答
  •  北恋
    北恋 (楼主)
    2021-01-30 16:44

    This above did not work for me, completely. There is one last step that is IMPORTANT to note. After downloading the latest nuget version, you may notice that the same error prints in the output window. The reason is due to the .nuget folder containing a NuGet.exe which specifies a version number.

    The solution (for me and perhaps to those of your that did not resolve your issue with the above directions), is to

    1. Delete the .nuget folder from you solution.

    2. Right click your web project and click Enable Nuget Restore.

    3. The directions above should cause a NEW .nuget folder to be added, this time the NuGet.exe should be the newest version of nuget that you downloaded.

提交回复
热议问题