How to install the .NET Framework 3.5 on Windows Server 2016 and later

Lots of applications require the .NET Framework 3.5 installed on your Windows Server 2016 and later. By default, the .NET Framework 3.5 is not installed on these Operating Systems and must be installed manually by an administrator. You can install the .NET Framework 3.5 also on Windows Server 2022 by following the steps described in this blog post. my case is want to install WiX 3.11.2 that requestion .NET Framework 3.5 like below.

 

There are multiple ways to install the .NET Framework 3.5 feature on Windows Server 2016 and later:

  • By using the “Add Roles and Features” Wizard of the Windows Server Manager
  • By using PowerShell
  • By using the DISM tool
  • By using the Group Policy Feature on Demand setting

In this blog post I will focus on just two of them: The installation using the Windows Server Manager and the installation via the Windows PowerShell.

If you are using Windows 10, Windows Server 2016, or Windows Server 2019, Microsoft recommends installing .NET Framework 3.5 through the control panel or the methods listed above.

You can find more information about this installation within the official documentation published by Microsoft: Microsoft .NET Framework 3.5 Deployment Considerations.

Install the .NET Framework 3.5 Feature using the Server Manager

First you must open the Server Manager on the system where you want to install the .NET Framework 3.5.

  1. In the Server Manager, open the Add Roles and Features Wizard by clicking Manage –> Add Roles and Features.
  2. Step forward to Installation Type and select Role-based or feature-based installation.
  3. Ensure that you have selected the correct server in the step Server Selection.
  4. Continue to the step Select features and select the (Sub-)feature .NET Framework 3.5 (includes .NET 2.0 and 3.0).
  5. Within the step Confirmation you must specify an alternate source path. On the bottom of the Confirm installation selections screen, click Specify an alternate source path. In the new dialog window Specify Alternate Source Path type the path to the [ISO]:\Sources\SxS on the installation media or the local directory where you have copied the files to. In this example the files were copied to D:\Sources\SxS. Close the dialog window with Ok and start the feature installation by clicking Install on the Confirm installation selections screen.

Select%20the%20Installation%20Type

Select the Installation Type

Step%203%3A%20Select%20the%20destination%20server

Select the destination server

Select%20the%20feature

Select the feature “.NET Framework 3.5 (includes .NET 2.0 and 3.0)”

Specify%20an%20alternate%20source%20path

Specify an alternate source path

Specify%20an%20alternate%20source%20path

Specify an alternate source path

Install the .NET Framework 3.5 Feature using PowerShell

The following commands must be executed within a PowerShell that was started as an administrator.

You can verify if the .NET Framework 3.5 is already installed by running the following PowerShell command:

PS> Get-WindowsFeature -Name "NET-Framework-Core"

If the .NET Framework 3.5 is not installed, you will receive an output like the following:

Display Name                                            Name                       Install State

------------                                            ----                       -------------

    [ ] .NET Framework 3.5 (includes .NET 2.0 and 3.0)  NET-Framework-Core               Removed

To install the .NET Framework 3.5 Windows feature, you must run the following command:

PS> Install-WindowsFeature -Name "NET-Framework-Core" -Source "D:\Sources\SxS"

After the command has finished, you will receive an output like this:

Success Restart Needed Exit Code      Feature Result

------- -------------- ---------      --------------

True    No             Success        {.NET Framework 3.5 (includes .NET 2.0 and...

If you run the following command again, the column Install State should show Installed for the .NET Framework 3.5 (includes .NET 2.0 and 3.0) feature:

PS> Get-WindowsFeature -Name "NET-Framework-Core"

Display Name                                            Name                       Install State

------------                                            ----                       -------------

    [X] .NET Framework 3.5 (includes .NET 2.0 and 3.0)  NET-Framework-Core     
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值