Skip to content

Commit 80de66c

Browse files
committed
Update netfx3 cab filename
1 parent dc9da19 commit 80de66c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

eng/dockerfile-templates/runtime/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
set repo to "mcr.microsoft.com/windows/servercore" ^
3131
set tag to cat(OS_VERSION_NUMBER, "-amd64") ^
3232

33+
set netfx3CabFilename to when(isServer2025,
34+
"microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~en-us~.cab"
35+
"microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.cab") ^
36+
3337
set fromImage to cat(repo, ":", tag)
3438

3539
}}# escape=`
@@ -51,7 +55,7 @@ RUN `
5155
curl -fSLo microsoft-windows-netfx3.zip https://dotnetbinaries.blob.core.windows.net/dockerassets/microsoft-windows-netfx3-{{OS_VERSION_NUMBER}}.zip `
5256
&& tar -zxf microsoft-windows-netfx3.zip `
5357
&& del /F /Q microsoft-windows-netfx3.zip `
54-
&& dism /Online /Quiet /Add-Package /PackagePath:.\microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.cab `
58+
&& dism /Online /Quiet /Add-Package /PackagePath:.\{{netfx3CabFilename}} `
5559
&& del microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.cab `
5660
&& powershell Remove-Item -Force -Recurse ${Env:TEMP}\* `
5761
`

src/runtime/3.5/windowsservercore-ltsc2025/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN `
1212
curl -fSLo microsoft-windows-netfx3.zip https://dotnetbinaries.blob.core.windows.net/dockerassets/microsoft-windows-netfx3-ltsc2025.zip `
1313
&& tar -zxf microsoft-windows-netfx3.zip `
1414
&& del /F /Q microsoft-windows-netfx3.zip `
15-
&& dism /Online /Quiet /Add-Package /PackagePath:.\microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.cab `
15+
&& dism /Online /Quiet /Add-Package /PackagePath:.\microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~en-us~.cab `
1616
&& del microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.cab `
1717
&& powershell Remove-Item -Force -Recurse ${Env:TEMP}\* `
1818
`

0 commit comments

Comments
 (0)