Deploying Crystal Reports report assembly on Appharbor

When deploying a new version of my application to Appharbor that uses the Crystal Reports assembly: CrystalDecisions.CrystalReports.Engine I get the following error message in the appharbor deployment log:

ResolveAssemblyReferences: Primary reference "CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=MSIL". C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9): warning MSB3245: Could not resolve this reference. Could not locate the assembly "CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. 

I set Copy Local to True in the assembly link in VS and the DLL exists in the project \ BIN directory.

Do I need to create a local (non-GAC) copy of the DLL, and then refer to it in the project? If so, how can this be done without the version of the GAC that is still referenced?

Or am I doing something wrong with deployment?

Thanks in advance,

Chris

+6
source share
1 answer

You must add the dll to the local /lib folder that you click along with your code. The easiest way to make sure that you are referencing the correct dll is to remove the original from the GAC, and then make sure your code works.

+4
source

Source: https://habr.com/ru/post/907999/


All Articles