Unable to build Dal Project because, the complier could not found the referenced Csla

Unable to build Dal Project because, the complier could not found the referenced Csla

Old forum URL: forums.lhotka.net/forums/t/12292.aspx


msrs_it posted on Monday, January 06, 2014

Hi,

I've created a new project in .Net Framework 4 and I've referenced Csla v4.5.30. Initially the project worked well. All of a sudden my DAL layer giving the following error and not building the project at all. I've tried all the ways (like checking the target frameworks for all the projects in my solution, etc...).

The visual studio displays the following error whenever I tried to build the project.

The type or namespace name 'Csla' could not be found (are you missing a using directive or an assembly reference?)

I cross checked the assembly references and everything were in place. And the problem exists in my system only. In my colleague system the project is working and building fine.

And also I'm getting the following warning messages

The primary reference "Csla" could not be resolved because it has an indirect dependency on the framework assembly "System.Runtime, Version=2.5.19.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.0". To resolve this problem, either remove the reference "Csla" or retarget your application to a framework version which contains "System.Runtime, Version=2.5.19.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".

Any help in this regard appreciated.

JonnyBee replied on Tuesday, January 07, 2014

Most likely a problem with reference to nuget package Microsoft.Bcl.Async.

Verify that you have the same nuget packages (and versions) and project references as your colleague has.

Copyright (c) Marimer LLC