How can I install an older version of a package via NuGet?

前端 未结 5 1842

I want to install an older version of a package (Newtonsoft.Json). But NuGet rolls back:

PM> Install-Package Newtonsoft.Json -Version 4.0.5
Su         


        
5条回答
  •  离开以前
    2020-11-27 09:47

    Now, it's very much simplified in Visual Studio 2015 and later. You can do downgrade / upgrade within the User interface itself, without executing commands in the Package Manager Console.

    1. Right click on your project and *go to Manage NuGet Packages.

    2. Look at the below image.

      • Select your Package and Choose the Version, which you wanted to install.

    Very very simple, isn't it? :)

提交回复
热议问题