How To Install Latest Nuget In Dockerfile For Windows
01 June 2017
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 'https://dist.nuget.org/win-x86-commandline/v4.1.0/nuget.exe' -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