updated to current vs17 and ucrt
parent
304fbdad0f
commit
dd5158cf46
|
@ -1,9 +1,9 @@
|
||||||
# escape=`
|
# escape=`
|
||||||
FROM mcr.microsoft.com/windows/servercore:ltsc2022
|
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/17/release/channel C:\docker\visualstudio.release.chman
|
||||||
ADD https://aka.ms/vs/16/release/vs_buildtools.exe C:\docker\vs_buildtools.exe
|
ADD https://aka.ms/vs/17/release/vs_buildtools.exe C:\docker\vs_buildtools.exe
|
||||||
COPY vs16.config C:\docker\.vsconfig
|
COPY vs17.config C:\docker\.vsconfig
|
||||||
|
|
||||||
RUN C:\docker\vs_buildtools.exe --quiet --wait --norestart --nocache `
|
RUN C:\docker\vs_buildtools.exe --quiet --wait --norestart --nocache `
|
||||||
--channelUri C:\docker\visualstudio.release.chman `
|
--channelUri C:\docker\visualstudio.release.chman `
|
||||||
|
|
|
@ -11,6 +11,6 @@
|
||||||
"Microsoft.VisualStudio.Component.VC.Llvm.Clang",
|
"Microsoft.VisualStudio.Component.VC.Llvm.Clang",
|
||||||
"Microsoft.VisualStudio.Component.VC.Llvm.ClangToolset",
|
"Microsoft.VisualStudio.Component.VC.Llvm.ClangToolset",
|
||||||
"Microsoft.VisualStudio.Component.VC.Tools.x86.x64",
|
"Microsoft.VisualStudio.Component.VC.Tools.x86.x64",
|
||||||
"Microsoft.VisualStudio.Component.Windows10SDK.18362",
|
"Microsoft.VisualStudio.Component.Windows10SDK",
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -3,14 +3,14 @@ param([parameter()][string] $msvc="C:\msvc")
|
||||||
new-item -path $msvc -type directory -force
|
new-item -path $msvc -type directory -force
|
||||||
new-item -path "temp" -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/17/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/vs_buildtools.exe -outfile temp\vs_buildtools.exe
|
||||||
|
|
||||||
$arguments = @(
|
$arguments = @(
|
||||||
"--quiet", "--wait", "--norestart", "--nocache",
|
"--quiet", "--wait", "--norestart", "--nocache",
|
||||||
"--channeluri", ($pwd.path + "\temp\visualstudio.release.chman"),
|
"--channeluri", ($pwd.path + "\temp\visualstudio.release.chman"),
|
||||||
"--installchanneluri", ($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"
|
"--installpath", "$msvc"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue