Home Dashboard Directory Help
Search

Microsoft.Bcl.Build 1.0.5 fails when dependentAssembly is missing a culture attribute by Richard Szalay


Status: 

Closed
 as Duplicate Help for as Duplicate


3
0
Sign in
to vote
Type: Bug
ID: 786394
Opened: 5/5/2013 11:11:02 PM
Access Restriction: Public
3
Workaround(s)
view
1
User(s) can reproduce this bug

Description


Roxel.BuildTasks.EnsureBindingRedirects.MergeBindingRedirectsFromElements throws an exception if configuration/runtime/assemblyBinding/dependentAssembly/assemblyIdentity is missing a "culture" attribute.

I discovered this through an upgraded MVC3 -> MVC4 project. The MVC3 base template doesn't add a "culture" attribute and the conversion to MVC4 (via dropping/updating NuGet packages) doesn't rectify the problem if it already exists.

The output of the error is:

The "EnsureBindingRedirects" task failed unexpectedly.
System.NullReferenceException: Object reference not set to an instance of an object.
at Roxel.BuildTasks.EnsureBindingRedirects.MergeBindingRedirectsFromElements(IEnumerable`1 dependentAssemblies)
at Roxel.BuildTasks.EnsureBindingRedirects.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()    Lion.Tooheys.Facebook
Details
Sign in to post a comment.
Posted by Microsoft on 7/24/2013 at 11:02 AM
Thanks for reporting this issue. The failure is a known bug in this version of Microsoft.Bcl.Build. Please update to the latest.
Posted by Microsoft on 5/8/2013 at 2:13 AM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Richard Szalay on 5/7/2013 at 6:49 PM
Solution attached. To repro:

1. Open Connect.786394.Repro.sln
2. Build :: Clean
3. Build :: Rebuild

(Clean may be required to reproduce in subsequent attempts)
Posted by Microsoft on 5/6/2013 at 2:33 AM
Thank you for submitting feedback on Visual Studio and .NET Framework. In order to efficiently investigate and reproduce this issue, we are requesting additional information outlined below.

Could you please give us a demo project to demonstrate this issue so that we can conduct further research?

Please submit this information to us within 4 business days. We look forward to hearing from you with this information.

Microsoft Visual Studio Connect Support Team
Posted by Microsoft on 5/5/2013 at 11:51 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.
Posted by Ron Cain on 6/3/2013 at 6:41 AM
The core issue has been fixed. A new version of Microsoft.Bcl.Build is available on nuget.org. Prior to this version, a NuGet Update All caused the build break described above. But since 5/30 when the new version was pushed up, I can Update All MVC4 projects without any problems.
Posted by abatishchev on 5/30/2013 at 10:39 AM
See http://stackoverflow.com/questions/16832256/the-ensurebindingredirects-task-failed-unexpectedly
Posted by Richard Szalay on 5/5/2013 at 11:12 PM
Open your project's web/app.config and look for any configuration/runtime/assemblyBinding/dependentAssembly/assemblyIdentity that are missing a culture attribute and add culture="neutral". Clean and rebuild.
File Name Submitted By Submitted On File Size  
Connect.786394.Repro.zip (restricted) 5/7/2013 -