Skip to Content
Former Member
Apr 19, 2008 at 11:23 AM

Compiling .Net 2 with CR XI R2 in VS2008


I developed an application in .Net 2 that uses CR XI R2 code classes to open reports and generate (export) reports to PDF files. This uses non of Crystals form or web control objects....all just code classes. The references for crystal assemblies are all for specific versions.

If I compile this .Net 2 app in VS2005 and run it works. If I compile from VS2008 I can see in the build that it is missing objects and indeed when it runs it crashes.

I know CR XI R2 is not compatible with VS2008 (for which I am sadly disappointed) but I would have guessed that just applied to objects in the designer or to 3.5 objects (.Net 2 code should still be able to reference CR 11.x objects). Why would just referencing a Crystal assembly by a .Net 2 project not be recognized in a build???

As a second question I thought VS2008 included CR 2008 basic.....but the CR assemblies that come with it seem to be earlier 10.x so if I attempt to reference those instead of the 11.x objects code bombs because it cannot open the XI R2 reports. Am I missing something or is CR 2008 indeed an earlier verison that CR XI?