I tried to upgrade one of our project from CSLA 4.5.10 to 4.5.11 BETA today
Downloaded the binaries from Nuget
PM> Install-Package CSLA-Core -Pre
http://nuget.org/packages/CSLA-Core/
The link mentioned a dependencies on Microsoft.Bcl.Async
So Downloaded the same and referred to my project
But it gave an error
Could not load file or assembly 'System.Threading.Tasks, Version=2.5.16.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
The Version i have downloaded file Microsoft.Threading.Tasks.dll is 1.0.14.0
Please let me know if I am missing something here.
Note : I also tried to check the samples available after installing CSLA from the wix Installer. The SImpleApp also had the same error.
I tried to resolve the issue and came across this
http://connect.microsoft.com/VisualStudio/feedback/details/768521/system-typeloadexception-when-using-async-for-wp7-5-version-1-0-11-beta
But the workaround didn't worked from me either.
My mistake, As there were several project the references were not properly provided.
Used Manage Nuget Pagkages to resolve this issue.
I ran into this as well over the past few days. It seems like the process of upgrading from the old Microsoft async library to the new one doesn't always work smoothly.
It sounds like you got lucky and could resolve it with package manager.
In a couple cases I had to do some manual editing of app.config files and some other stuff. It was a PITA...
There are also several nasty bugs still not fixed in v1.0.14.
ConfigureAwait(false) doesn't work, exception stack trace is not preserved as it is in .NET v4.5. There was more, but didn't have time to test with this version, hopefully they fixed it.
- ngm
Copyright (c) Marimer LLC