How to install .NET Framework 4.0 in VS2022

Table of contents

〇. Preface

1. Solutions

1. Download the .NET Framework

2. Unzip

3. Install the target framework

3. Restart vs2022 and reopen the project


〇. Preface

Laptop is getting slower and slower, reinstalled. Why not replace vs2019 with vs2022? Then the original project cannot be opened.

1. Solutions

1. Download the .NET Framework

Official website download:

.NET Framework 4.5.2Download

.NET Framework 4.5.1Download

.NET Framework    4.5Download

.NET Framework   4.0Download

Baidu Netdisk:

Link: https://pan.baidu.com/s/1Dj5s6fZIejKbtG-FY0h3Tg

Extraction code: v3vs

Enter the download page, click the Download package link on the right to download the target framework.

You can also right-click and copy the link to Xunlei to download, it seems to be faster.

2. Unzip

Change the suffix of the downloaded file from nupkg to zip, and then unzip it.

3. Install the target framework

In the \build\.NETFramework folder in the unzipped directory

v4.0 folder copied and overwritten to

C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFrameworkUnder contents

3. Restart vs2022 and reopen the project

Guess you like

Origin blog.csdn.net/keyii/article/details/125842896