Ask Your Question
4

How to specify a particular version of NuGet during the publishing process?

asked 2022-08-25 11:00:00 +0000

bukephalos gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2021-04-29 18:00:00 +0000

djk gravatar image

To specify a particular version of NuGet during the publishing process, follow these steps:

  1. Open the project/solution in Visual Studio.
  2. Right-click on the project in the Solution Explorer and select "Manage NuGet Packages".
  3. In the NuGet Package Manager, click on the gear icon to open the NuGet Package Manager Settings.
  4. Under the "Package Sources" tab, click the "+" button to add a new package source.
  5. Enter a name for the new package source (e.g. "MyNuGet"), and then enter the URL for the desired version of NuGet (e.g. "https://nuget.org/packages/nuget.versio…").
  6. Click "OK" to save the new package source.
  7. In the NuGet Package Manager, select the new package source from the dropdown list.
  8. Install the desired version of NuGet by searching for it in the NuGet Package Manager and clicking "Install".

Once the desired version of NuGet is installed, you can continue with the publishing process using the specified version.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-08-25 11:00:00 +0000

Seen: 15 times

Last updated: Apr 29 '21