1. Clone the source code:
https://github.com/dotnet/winforms
2. .net core sdk required by the installation project:
Run this script:
method:
1. Enter PowerShell and right-click to open with administrator rights
2. 输入Set-ExecutionPolicy RemoteSigned
3. Enter A and press Enter
4. & "path \ xxx.ps1"
3. Go to the cloned warehouse, find the project file, open it directly with VS2019, and compile
4. Successful compilation