Sign inSign up

ani1203/legacy

By ani1203

Updated over 7 years ago

image with Ms-Build-15(version 14 ) and Nuget installed

Image
0

2.0K

ani1203/legacy repository overview

1- image with ms build version 14 installed .

DOCKER-FILE

FROM microsoft/windowsservercore:10.0.14393.206

SHELL ["powershell"]

Note: Get MSBuild 14

RUN Invoke-WebRequest "https://download.microsoft.com/download/E/E/D/EEDF18A8-4AED-4CE0-BEBE-70A83094FC5A/BuildTools_Full.exe" -OutFile "$env:TEMP\BuildTools_Full.exe" -UseBasicParsing RUN & "$env:TEMP\BuildTools_Full.exe" /Silent /Full

Todo: delete the BuildTools_Full.exe file in this layer

Note: Add .NET + ASP.NET

RUN Install-WindowsFeature NET-Framework-45-ASPNET ;
Install-WindowsFeature Web-Asp-Net45

Note: Add NuGet

RUN Invoke-WebRequest "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe" -OutFile "C:\windows\nuget.exe" -UseBasicParsing WORKDIR "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0"

Note: Install Web Targets

RUN & "C:\windows\nuget.exe" Install MSBuild.Microsoft.VisualStudio.Web.targets -Version 14.0.0.3 RUN mv 'C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\MSBuild.Microsoft.VisualStudio.Web.targets.14.0.0.3\tools\VSToolsPath*' 'C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0'

Note: Add Msbuild to path

RUN setx PATH '%PATH%;C:\Program Files (x86)\MSBuild\14.0\Bin\msbuild.exe' CMD ["C:\Program Files (x86)\MSBuild\14.0\Bin\msbuild.exe"]

Tag summary

Content type

Image

Digest

Size

3.7 GB

Last updated

over 7 years ago

docker pull ani1203/legacy