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.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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