无法找到类型或命名空间名称“CrystalDecisions”(您是否缺少using指令或程序集引用 [英] type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference

查看:116
本文介绍了无法找到类型或命名空间名称“CrystalDecisions”(您是否缺少using指令或程序集引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在创建Crystal Report并构建项目时收到错误消息。错误消息是:

I am getting an error message when I create my Crystal Report and build the project. The error message is:

"type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?"





我看到一些针对Targeted Framework的回复应该是
.net Framework 4 client profile,但是没有解决问题。



我使用Visual Studio 2010和Crystal Reports内置菜单选项,我的项目中有以下参考:



I have seen some responses that Targeted Framework should be
".net Framework 4 client profile", but that did not solve the problem.

I am using Visual Studio 2010 with Crystal Reports built in menu option and I have the following references in my project:

using CrystalDecisions.Shared;
using CrystalDecisions.ReportSource;
using CrystalDecisions.CrystalReports.Engine;





当我创建.rpt文件时,带有using语句的代码是为我构建的,所以我不知道它为什么会出现问题。



有谁知道为什么会这样?



The code with the using statements is built for me when I create the .rpt file, so I don''t know why it is having a problem.

Does anyone know why this is happening?

推荐答案

请看看这个..

你可能会觉得这很有用。

https://connect.microsoft.com/VisualStudio/feedback/details/560630/vs-2010- net-4-can-found-crystalreports-references [ ^ ]
Pls take a look at this..
U may find this helpful.
https://connect.microsoft.com/VisualStudio/feedback/details/560630/vs-2010-net-4-cannot-found-crystalreports-references[^]


我遇到了同样的问题,这就是我所做的。我转到我的项目的属性,并选择.NET Framework 4作为目标框架而不是.NET Framework 4 Client Profile。之后我重建了我的项目并且工作正常。
I had the same problem and this is what I did. I went to the properties of my project and chose .NET Framework 4 as the target Framework instead of .NET Framework 4 Client Profile. I rebuild my project afterwards and it worked.


这篇关于无法找到类型或命名空间名称“CrystalDecisions”(您是否缺少using指令或程序集引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆