Image Updates to Support Nuget Central Package Management

matt_mckinstry's Avatar

matt_mckinstry

11 May, 2022 09:30 AM

Do you have any timescales for updating the VS2022 image to 17.2?

We'd love to start using https://docs.microsoft.com/en-gb/nuget/consume-packages/Central-Pac... but it requires
VS 17.2+
Nuget 6.2.0+
.NET SDK 6.0.300+

Can these software packages be added to the default BYOC image config?

  1. Support Staff 1 Posted by Feodor Fitsner on 11 May, 2022 04:12 PM

    Feodor Fitsner's Avatar

    Hi Matt,

    I'm not sure if VS 17.2 is required to use Central Package Management feature while building from a command line, but you can install both .NET 6.0.300 and NuGet 6.2 during the build right now.

    Installing .NET 6.0.300:

    Invoke-WebRequest -Uri 'https://dot.net/v1/dotnet-install.ps1' -UseBasicParsing -OutFile "$env:temp\dotnet-install.ps1"
    & $env:temp\dotnet-install.ps1 -Architecture x64 -Version '6.0.300' -InstallDir "$env:ProgramFiles\dotnet"
    

    Installing NuGet 6.2:

    (New-Object Net.WebClient).DownloadFile('{nuget-url}', "C:\Tools\NuGet\nuget.exe")
    

    however, I don't see NuGet 6.2 on its download page: https://www.nuget.org/downloads. https://docs.microsoft.com/en-gb/nuget/consume-packages/Central-Pac... contains a link to that page as well as non-existent NuGet 6.2 release notes.

  2. Feodor Fitsner closed this discussion on 11 Jul, 2022 09:02 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

 

01 Oct, 2024 04:27 PM
26 Sep, 2024 03:49 PM
26 Sep, 2024 09:02 AM
25 Sep, 2024 07:07 PM
24 Sep, 2024 08:39 PM
24 Sep, 2024 06:47 AM