How To Install Latest Nuget In Dockerfile For Windows

How to install latest nuget in Dockerfile for windows

Hello everybody,

today I want to write few words about how to instal latest Nuget into Windows docker container. For this purpose you can use following commands:

RUN mkdir c:\Nuget
RUN Invoke-WebRequest '' -OutFile 'c:\Nuget\nuget.exe'; \
$env:PATH = $env:PATH + 'c:\Nuget\;c:\Nuget'; \
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\' -Name Path -Value $env:PATH

No Comments

Add a Comment
Comments are closed