1

Closed

V 2.0.2 and NET 4.0 doesn't work

description

As Kellros already has mentioned, V2.0.2 doesn't work out of the box with .NET 4.0. As I'm using Nuget, I got to go back manually to 2.0.1.
Closed Jul 21, 2013 at 12:45 PM by kentcb
I assume lack of response means that this is due to using from VS2010. Regardless, the next release of KBCsv is switching to a PCL and will drop support for pre FX4.5 due to the BCL async library not being onerous to use and impossible to use from security transparent code.

comments

kentcb wrote May 8, 2013 at 9:55 AM

Hi,

Thanks for bringing this up.

It's difficult to say without further information, but I assume you're building with VS2010 and not VS2012? That being the case, you may be getting this when you build:
The "EnsureBindingRedirects" task failed unexpectedly.
System.MissingMethodException: Method not found: 'System.String System.Reflection.AssemblyName.get_CultureName()'.
   at Roxel.BuildTasks.EnsureBindingRedirects.MergeBindingRedirectsForReferences()
   at Roxel.BuildTasks.EnsureBindingRedirects.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult)
If so, this is due to a bug in the Microsoft.Bcl.Build package, which I have already reported to the BCL team and they've said they'll take a look. This only affects FX4 in 2010.

To work around the problem, you can simply edit the project file and remove the import of Microsoft.Bcl.Build.targets. You won't lose anything doing this because async/await support (which Microsoft.Bcl.Async provdes for FX4 projects) isn't supported in 2010 anyway.