Skip to content

Commit 7f993e9

Browse files
committed
Add documentation
1 parent 09fc85d commit 7f993e9

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

documentation/install-netfx3.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# 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
21+
22+
RUN `
23+
# Enable Windows Update service
24+
sc config wuauserv start= auto `
25+
# Install .NET Framework 3.5
26+
&& dism /Online /Enable-Feature /FeatureName:NetFx3 /All `
27+
# Disable Windows Update service
28+
&& sc config wuauserv start= disabled
29+
```

0 commit comments

Comments
 (0)