Crystal Reports 参考不起作用?

MDL*_*MDL 1 .net c# crystal-reports winforms

我在我的 winforms C# 项目中添加了以下引用:

CrystalDecisions.CrystalReports.Engine
CrystalDecisions.ReportSource
CrystalDecisions.Shared
Run Code Online (Sandbox Code Playgroud)

但无论我做什么,我都无法在我的任何 .cs 页面中使用 .dll。添加 CrystalRecisions 引用时,我收到以下警告:

Warning The referenced assembly "CrystalDecisions.CrystalReports.Engine,      Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=MSIL" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project.
Run Code Online (Sandbox Code Playgroud)

从上面的错误中,我可以看到它说它依赖于 system.web 但是我该怎么做呢?我需要下载什么才能从我的 Winforms C# 应用程序运行 Crystal Reports?

pho*_*oog 5

阅读警告!它会准确地告诉您问题所在:您的应用程序面向.NET Framework 4 Client Profile,其中不包括System.Web.

打开项目属性,确保Application选项卡处于活动状态,并将Target Framework的值更改为.NET Framework 4