gpt4 book ai didi

.net - 更改框架版本导致 : Could not load file or assembly PresentationFramework?

转载 作者:行者123 更新时间:2023-12-02 22:14:59 25 4
gpt4 key购买 nike

我正在开发WPF应用程序,该应用程序首先针对3.0框架。当我尝试使其在 4.0 上运行时,出现以下异常。

System.IO.FileNotFoundException was unhandled Message: Could not load file or assembly 'PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

如果我使用 .Net 4.0 编译应用程序,它工作正常。但 3.0 exe 无法与 4.0 一起使用。

提前致谢。

最佳答案

尝试删除 Visual Studio 项目中对PresentationFramework 的DLL 引用,然后在项目属性中重新定位应用程序框架,然后再次添加PresentationFramework 引用。

关于.net - 更改框架版本导致 : Could not load file or assembly PresentationFramework?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5933189/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com