【发布时间】:2013-03-06 15:22:23
【问题描述】:
我是 Windows 桌面应用程序开发的新手。
我使用 Visual Studio 2010 创建了一个应用程序,其中我使用了一个表单进行数据输入。一种带有报表查看器控件的表单和一个用于绘制报表的报表 (.rdlc) 文件。
我的问题是我想让我的应用程序与 dot net framework 3.5 兼容。为此,我已将项目属性中的“高级编译选项...”中的目标框架更改为 3.5。但是在将目标框架更改为 3.5 后运行应用程序时出现错误是:
Could not load file or assembly 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Line 123, position 5. C:\Users\Amir\Desktop\Bill_System\Bill_System\Bill_System\My Project\Resources.resx Billing_System
如何解决这个错误?
请帮忙。提前致谢。
【问题讨论】:
-
这与 OP 的情况无关,但如果您在使用 ResourceWriter 类将 .resx 文件转换为 .resource 文件时遇到此错误,请参见此处:@ 987654321@
标签: visual-studio-2010 .net-4.0 .net-3.5 vb.net-2010