diff --git "a/WPFTest\347\216\257\345\242\203\351\205\215\347\275\256.md" "b/WPFTest\347\216\257\345\242\203\351\205\215\347\275\256.md" index cdbb98e90fa36ffa227f5c32b0605b5617f23419..d2bd283290d7a55381c42b1991a220330ae5934b 100644 --- "a/WPFTest\347\216\257\345\242\203\351\205\215\347\275\256.md" +++ "b/WPFTest\347\216\257\345\242\203\351\205\215\347\275\256.md" @@ -68,4 +68,34 @@ xcopy "$(SolutionDir)WPFTest\Files\*.*" "$(TargetDir)Files\" /y ③安装完成 -![image8](images/8.png) \ No newline at end of file +![image8](images/8.png) + +## 4 vs无法识别成功安装的.net框架 +①vs无法识别安装的框架 + +在vs2022的下载中已经安装了.net 4.8 +![image4.1](images/4.1.png) + +但是打开打开项目时显示缺少目标框架 +![image4.2](images/4.2.png) +生成项目时显示因为缺少调试目标无法调试,无法找到"System"命名空间 +![image4.3](images/4.3.png) +![image4.4](images/4.4.png) +打开项目属性发现目标框架中无法识别.net 4.8 +![image4.5](images/4.5.png) +但是在注册表中发现我们已经成功下载了.net 4.8 +![image4.6](images/4.6.png) + +②将对应文件拷贝 + +打开注册器,发现vs是从"D:\Program Files (x86)\Reference Assemblies" loading .net framework +![image4.7](images/4.7.png) + +但是.net框架是下载到" C:\Program Files (x86)\Reference Assemblies"。因此vs找不到下载好的.net + +![image4.8](images/4.8.png) + +将C盘上图对应的文件夹.NETFramework复制到D盘对应的位置即可 +![image4.9](images/4.9.png) +重启vs,可以识别。如果无法重新生成,以管理员身份运行即可。 +![image4.10](images/4.10.png) diff --git a/images/4.1.png b/images/4.1.png new file mode 100644 index 0000000000000000000000000000000000000000..a60c30b53e5804ea116abaf277307df4af87a916 Binary files /dev/null and b/images/4.1.png differ diff --git a/images/4.10.png b/images/4.10.png new file mode 100644 index 0000000000000000000000000000000000000000..cba0758953589289c990edc61b8b87d65e9f4854 Binary files /dev/null and b/images/4.10.png differ diff --git a/images/4.2.png b/images/4.2.png new file mode 100644 index 0000000000000000000000000000000000000000..d15ee05001fa0b1082bb2002c4d8756c7a2b7c1f Binary files /dev/null and b/images/4.2.png differ diff --git a/images/4.3.png b/images/4.3.png new file mode 100644 index 0000000000000000000000000000000000000000..89e563fb4b3af98ec62bf58b06236f47fe14b802 Binary files /dev/null and b/images/4.3.png differ diff --git a/images/4.4.png b/images/4.4.png new file mode 100644 index 0000000000000000000000000000000000000000..7421f96a0bb89ee5e4f72e39639bc69486d0b3db Binary files /dev/null and b/images/4.4.png differ diff --git a/images/4.5.png b/images/4.5.png new file mode 100644 index 0000000000000000000000000000000000000000..95cb1800e2ca117b34db07495f0dfc608cd183d9 Binary files /dev/null and b/images/4.5.png differ diff --git a/images/4.6.png b/images/4.6.png new file mode 100644 index 0000000000000000000000000000000000000000..3a993f3f4d1ccbf42148e20cb006849cdf976802 Binary files /dev/null and b/images/4.6.png differ diff --git a/images/4.7.png b/images/4.7.png new file mode 100644 index 0000000000000000000000000000000000000000..a493578c01314c258028cf2aa3745d14e0c3e949 Binary files /dev/null and b/images/4.7.png differ diff --git a/images/4.8.png b/images/4.8.png new file mode 100644 index 0000000000000000000000000000000000000000..e236ad2a035348360e6c116ec1be765ad60f3e71 Binary files /dev/null and b/images/4.8.png differ diff --git a/images/4.9.png b/images/4.9.png new file mode 100644 index 0000000000000000000000000000000000000000..68535291806bb1a5510ad55ea599dc5deab80867 Binary files /dev/null and b/images/4.9.png differ