@@ -11,32 +11,26 @@ ENV `
1111 # NuGet version to install
1212 NUGET_VERSION=6.14.0 `
1313 # Install location of Roslyn
14- ROSLYN_COMPILER_LOCATION="C:\P rogram Files (x86)\M icrosoft Visual Studio\2 022 \B uildTools\M SBuild\C urrent\B in\R oslyn"
14+ ROSLYN_COMPILER_LOCATION="C:\P rogram Files (x86)\M icrosoft Visual Studio\1 8 \B uildTools\M SBuild\C urrent\B in\R oslyn"
1515
1616# Install NuGet CLI
1717RUN mkdir "%ProgramFiles%\N uGet\l atest" `
1818 && curl -fSLo "%ProgramFiles%\N uGet\n uget.exe" https://dist.nuget.org/win-x86-commandline/v%NUGET_VERSION%/nuget.exe `
1919 && mklink "%ProgramFiles%\N uGet\l atest\n uget.exe" "%ProgramFiles%\N uGet\n uget.exe"
2020
2121# Install VS components
22- RUN `
23- # Install VS Test Agent
24- curl -fSLo vs_TestAgent.exe https://aka.ms/vs/17/release/vs_TestAgent.exe `
25- && start /w vs_TestAgent --quiet --norestart --nocache --wait --installPath "%ProgramFiles(x86)%\M icrosoft Visual Studio\2 022\T estAgent" `
26- && powershell -Command "if ($err = dir $Env:TEMP -Filter dd_setup_*_errors.log | where Length -gt 0 | Get-Content) { throw $err }" `
27- && del vs_TestAgent.exe `
28- `
29- # Install VS Build Tools
30- && curl -fSLo vs_BuildTools.exe https://aka.ms/vs/17/release/vs_BuildTools.exe `
22+ RUN curl -fSLo vs_BuildTools.exe https://aka.ms/vs/stable/vs_BuildTools.exe `
3123 && start /w vs_BuildTools ^ `
32- --installPath "%ProgramFiles(x86)%\M icrosoft Visual Studio\2 022 \B uildTools" ^ `
24+ --installPath "%ProgramFiles(x86)%\M icrosoft Visual Studio\1 8 \B uildTools" ^ `
3325 --add Microsoft.Component.ClickOnce.MSBuild ^ `
3426 --add Microsoft.Net.Component.4.8.1.SDK ^ `
3527 --add Microsoft.NetCore.Component.Runtime.8.0 ^ `
3628 --add Microsoft.NetCore.Component.Runtime.9.0 ^ `
29+ --add Microsoft.NetCore.Component.Runtime.10.0 ^ `
3730 --add Microsoft.NetCore.Component.SDK ^ `
3831 --add Microsoft.VisualStudio.Component.NuGet.BuildTools ^ `
3932 --add Microsoft.VisualStudio.Component.WebDeploy ^ `
33+ --add Microsoft.VisualStudio.Component.TestTools.BuildTools ^ `
4034 --add Microsoft.VisualStudio.Web.BuildTools.ComponentGroup ^ `
4135 --add Microsoft.VisualStudio.Workload.MSBuildTools ^ `
4236 --quiet --norestart --nocache --wait `
@@ -56,14 +50,13 @@ RUN `
5650 # Cleanup
5751 && (for /D %i in ("%ProgramFiles(x86)%\M icrosoft Visual Studio\I nstaller\* " ) do rmdir /S /Q "%i" ) `
5852 && (for %i in ("%ProgramFiles(x86)%\M icrosoft Visual Studio\I nstaller\* " ) do if not "%~nxi" == "vswhere.exe" del "%~i" ) `
59- && powershell Remove-Item -Force -Recurse "%TEMP%\* " `
60- && rmdir /S /Q "%ProgramData%\P ackage Cache"
53+ && powershell Remove-Item -Force -Recurse "%TEMP%\* "
6154
6255# Set PATH in one layer to keep image size down.
6356RUN powershell setx /M PATH $(${Env:PATH} `
6457 + \" ;${Env:ProgramFiles}\N uGet\" `
65- + \" ;${Env:ProgramFiles(x86)}\M icrosoft Visual Studio\2 022 \T estAgent \C ommon7 \I DE \C ommonExtensions \M icrosoft \T estWindow \" `
66- + \" ;${Env:ProgramFiles(x86)}\M icrosoft Visual Studio\2 022 \B uildTools\M SBuild \C urrent \B in \a md64 \" `
58+ + \" ;${Env:ProgramFiles(x86)}\M icrosoft Visual Studio\1 8 \B uildTools \M SBuild \C urrent \B in \a md64 \" `
59+ + \" ;${Env:ProgramFiles(x86)}\M icrosoft Visual Studio\1 8 \B uildTools\C ommon7 \I DE \E xtensions \T estPlatform \" `
6760 + \" ;${Env:ProgramFiles(x86)}\M icrosoft SDKs\W indows\v 10.0A\b in\N ETFX 4.8.1 Tools\" `
6861 + \" ;${Env:ProgramFiles(x86)}\M icrosoft SDKs\C lickOnce\S ignTool\" )
6962
0 commit comments