Print Page | Close Window

MSBuild requests Silverlight dlls for a Server Side Project

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=1949
Printed Date: 21-Apr-2026 at 12:19pm


Topic: MSBuild requests Silverlight dlls for a Server Side Project
Posted By: jfranco
Subject: MSBuild requests Silverlight dlls for a Server Side Project
Date Posted: 07-Jul-2010 at 8:01am

We are getting a weird error from our TFS Build where specific project that we created (Server-Side C# Class Lib) is housing our server side interceptors. In certain instances when we reference our derived types of UserBase or Entity, we get the following error.

Interceptors\EntityServerSaveHandler.cs (20): The type 'IdeaBlade.EntityModel.UserBase' is defined in an assembly that is not referenced. You must add a reference to assembly 'IdeaBlade.EntityModel.SL, Version=6.0.3.1, Culture=neutral, PublicKeyToken=287b5094865421c0'.

 Interceptors\EntityServerSaveHandler.cs (21): The type 'IdeaBlade.EntityModel.Entity' is defined in an assembly that is not referenced. You must add a reference to assembly 'IdeaBlade.EntityModel.SL, Version=6.0.3.1, Culture=neutral, PublicKeyToken=287b5094865421c0'.
 
I already have references to the non-SL versions of IdeaBlade assemblies and have them CopyLocal = True.. Everything compiles locally for our development team, only MSBuild fails which is ruining our continuous integration builds.
 
THanks,
James



Replies:
Posted By: ting
Date Posted: 07-Jul-2010 at 7:02pm
So, it looks like you've done most of the right steps, but MSBuild is still picking up a stray reference to the Silverlight assembly from somewhere.  Since the assemblies containing the Entities must have the same assembly name on client and server-side, I'd check to see if that is causing any confusion with MSBuild.  (This restriction will be removed in the next release of DevForce.)
 
 



Print Page | Close Window