Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Crystal reports really slows down asp.net website build, any way to exclude them?

Was helping a friend who has some 100+ "Crystal Reports 2008" reports as part of a "asp.net website project".

I do not know how/why, but when this "asp.net website" project is building, it spends about 15 minutes "building" the reports directory where all the Crystal Reports reside.

Can Crystal Reports files .rpt's even be build/compiled? Actually it looks like they can be an embedded resource. Like for example according to this article http://msdn.microsoft.com/en-us/library/aa287962(VS.71).aspx you should be able to change whether a report is embedded or not from properties, BUT in "asp.net website project" those properties are not available when a report is highlighted in sol exp.

When the website is build and published, all report files are still put into a corresponding reports folder.

So I guess, my question is there any way to stop VS from building Crystal Reports in "website project"? It's just takeing sooo long it's unbearable.

like image 565
andryuha Avatar asked Oct 27 '22 00:10

andryuha


1 Answers

Thanks for all the suggestions. Turns out it was set up to be embedded as a resource..which with near a hundred was killing the build. Set it to false and the build is in less than a minute.

<businessObjects>
    <crystalReports>
        <rptBuildProvider>
            <add embedRptInResource="false"/>
        </rptBuildProvider>
    </crystalReports>
</businessObjects>
like image 178
andryuha Avatar answered Nov 15 '22 11:11

andryuha