Team City and EPiServer Global Cache Assembly

The company I work for uses TeamCity for continuous build of, amongst others, EPiServer sites.
Yesterday and today I have started testing the upgrade of EPiServer 5 to EPiServer 6. However, although the builds of version 5 sites work on development machines, and the two versions appear to sit alongside each other fine, the build of the older sites have stopped working on the TeamCity build server.
The error that I am getting is: c:\Windows\assembly\GAC_MSIL\EPiServer\6.0.530.0__8fe83dea738b45b7\EPiServer.dll error CS1705: Assembly 'EPiServer, Version=6.0.530.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7' uses 'EPiServer.BaseLibrary, Version=6.0.530.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7' which has a higher version than referenced assembly 'EPiServer.BaseLibrary, Version=5.2.375.236, Culture=neutral, PublicKeyToken=8fe83dea738b45b7'.
How do I tell TeamCity to only use the newer version of the EPiServer.dll GAC for the one test upgrade project and continue using the older GAC version for all other projects?
Apologies if this is a basic problem as I am relatively new to TeamCity.
Many thanks in advance for any help.

Comment actions Permalink

I think what you *should* do here is to take the EpiServer files and add them to a tools folder and reference the dlls from here in your project - this means that there is no dependency on GAC dlls being in place

Comment actions Permalink

When we faced the same situation - we found out, that it is better to store all needed libraries for a project in separate folder. Thus, we are not relying on GAC which could give such an issues


Please sign in to leave a comment.