windows 安装.net2.0/3.0
将下列代码拷到本地bat文件中(bat文件和sxs文件夹同级),下载适用的.net安装包版本后放置到sxs文件夹,用管理员权限执行bat文件即可。
@echo off pushd %~dp0 if not exist d:\sources\sxs md d:\sources\sxs echo .....begin to copy files..... xcopy ".\sxs" "d:\sources\sxs\" /e/y echo .....finished copy files..... dism /online /enable-feature /all /featurename:netfx3 /source:d:\sources\sxs /limitaccess @echo on pause
.net2.0/3.0安装包下载(下载后解压到sxs文件夹中)
widows 1909前版本 适用.net2.0/3.0
windows1909 适用.net2.0/3.0
windows2010r2 适用 .net2.0/3.0
黄山市民网:https://www.huangshanshimin.com/