Open RIA Services User Support DomainServices.Client / generated code errors at build time  Viewed 17028 time(s), 2 post(s)., 3/2/2015 9:49:44 AM - by Nigenigenige

Nigenigenige 3/3/2015 10:10:14 AM

Hi, we're attempting to upgrade from to the latest NuGet packages and are experiencing a strange problem during build.

When building our Silverlight project on the build server, we are seeing logs of the form:

c:\Builds\16\Product\1.9\Binaries\OpenRiaServices.DomainServices.Client.dll : warning CS1684: Reference to type 
claims it is defined in 'c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Silverlight\v5.0\system.dll', 
but it could not be found 

Generated_Code\Product.Services.Web.g.cs(1212,49): error CS0012: The type 'System.ComponentModel.ICollectionViewFactory' 
is defined in an assembly that is not referenced.
You must add a reference to assembly 'WindowsBase, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. 

We already have a valid reference to WindowsBase in our server-side project so I'm not sure what's going on here.
The CS1684 warning indicates a .NET versioning conflict perhaps? Our projects are targeting SL5 and .NET 4.5.1.

This all builds fine on our development machines (building from Visual Studio). I'm completely stumped. Any help or suggestions would be appreciated. 

This content has not been rated yet. 
15 Reputation 1 Total posts
ColinBlair 3/3/2015 5:50:46 PM

That is a weird error, sounds like the Silverlight code generation is running inside a non-Silverlight project.

We have a new set of NuGet packages about to release, from reading the comments on CodePlex I think we are consolidating CodeGeneration into a single NuGet package which may or may not help or explain the issue you are having. There is a copy of the new CodeGen at, if you could try it out and reply to that issue. If the problem continues please create a new issue on Codeplex so we can track it.

This content has not been rated yet. 
1539 Reputation 130 Total posts