You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# How to install .NET Framework 3.5 on Windows Server Core container images
2
+
3
+
## Windows Server Core 2022 and later
4
+
5
+
Windows Server Core 2022 and later container images can install [.NET Framework 3.5](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/features-on-demand-non-language-fod?view=windows-11#-net-framework) as a [Feature on Demand](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/features-on-demand-v2--capabilities?view=windows-11).
6
+
7
+
```Dockerfile
8
+
# escape=`
9
+
FROM mcr.microsoft.com/windows/servercore:ltsc2022-amd64
10
+
11
+
RUN dism /Online /Add-Capability /CapabilityName:NetFx3
12
+
```
13
+
14
+
## Windows Server Core 2019 and earlier
15
+
16
+
Windows Server Core 2019 and earlier can use Windows Update to install .NET Framework 3.5. See [Deploy .NET Framework 3.5 by using Deployment Image Servicing and Management (DISM)](https://learn.microsoft.com/windows-hardware/manufacture/desktop/deploy-net-framework-35-by-using-deployment-image-servicing-and-management--dism) for more info.
17
+
18
+
```Dockerfile
19
+
# escape=`
20
+
FROM mcr.microsoft.com/windows/servercore:ltsc2019-amd64
0 commit comments