updated to current vs17 and ucrt

master
JoYo 2023-03-27 13:16:49 -04:00
parent 304fbdad0f
commit dd5158cf46
3 changed files with 7 additions and 7 deletions

View File

@ -1,9 +1,9 @@
# escape=`
FROM mcr.microsoft.com/windows/servercore:ltsc2022
ADD https://aka.ms/vs/16/release/channel C:\docker\visualstudio.release.chman
ADD https://aka.ms/vs/16/release/vs_buildtools.exe C:\docker\vs_buildtools.exe
COPY vs16.config C:\docker\.vsconfig
ADD https://aka.ms/vs/17/release/channel C:\docker\visualstudio.release.chman
ADD https://aka.ms/vs/17/release/vs_buildtools.exe C:\docker\vs_buildtools.exe
COPY vs17.config C:\docker\.vsconfig
RUN C:\docker\vs_buildtools.exe --quiet --wait --norestart --nocache `
--channelUri C:\docker\visualstudio.release.chman `

View File

@ -11,6 +11,6 @@
"Microsoft.VisualStudio.Component.VC.Llvm.Clang",
"Microsoft.VisualStudio.Component.VC.Llvm.ClangToolset",
"Microsoft.VisualStudio.Component.VC.Tools.x86.x64",
"Microsoft.VisualStudio.Component.Windows10SDK.18362",
"Microsoft.VisualStudio.Component.Windows10SDK",
]
}

View File

@ -3,14 +3,14 @@ param([parameter()][string] $msvc="C:\msvc")
new-item -path $msvc -type directory -force
new-item -path "temp" -type directory -force
invoke-webrequest https://aka.ms/vs/16/release/channel -outfile temp\visualstudio.release.chman
invoke-webrequest https://aka.ms/vs/16/release/vs_buildtools.exe -outfile temp\vs_buildtools.exe
invoke-webrequest https://aka.ms/vs/17/release/channel -outfile temp\visualstudio.release.chman
invoke-webrequest https://aka.ms/vs/17/release/vs_buildtools.exe -outfile temp\vs_buildtools.exe
$arguments = @(
"--quiet", "--wait", "--norestart", "--nocache",
"--channeluri", ($pwd.path + "\temp\visualstudio.release.chman"),
"--installchanneluri", ($pwd.path + "\temp\visualstudio.release.chman"),
"--config", ($pwd.path + "\vs16.config"),
"--config", ($pwd.path + "\vs17.config"),
"--installpath", "$msvc"
)