Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / Feature-Pack

.NET 3.5 under Windows 10: If Everything Else Fails During the Feature Install

4.60/5 (3 votes)
17 May 2017CPOL 5.8K  
Starting with Windows 8, .NET 3.5 comes more or less tightly coupled to the OS, as a Windows Feature.

Introduction

Starting with Windows 8, .NET 3.5 comes more or less tightly coupled to the OS, as a Windows Feature. But there's a shortcoming: Even though one doesn't need to download an installation package, the Windows Feature dialog is supposed to download it via Windows Update. This can lead to serious troubles, if your computer is joined to a domain and the sysadmins did not add the .NET Framework 3.5 to the WSUS storage.

Why this Reference

I have found myself in a situation where Windows was unable to install .NET 3.5 even on newly setup machines over the UI. It was always a major PITA to go and grab the command line I needed from the depths of the internet.

The Command Line

Luckily enough, the .NET 3.5 CAB package is present on the Windows 10 installation media. To install the CAB file, open up an elevated command prompt and use the following command:

dism /online /enable-feature /featurename:NetFx3 /All Source:<<DRIVE>>\sources\sxs /LimitAccess

Replace <<DRIVE>> with the drive letter of your Windows 10 Installation image, e.g., if your image is inserted into drive D:, use:

dism /online /enable-feature /featurename:NetFx3 /All Source:D:\sources\sxs /LimitAccess

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)