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

Status : 

  Duplicate<br /><br />
		This item appears to be a duplicate of another existing Connect or internal item.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 786394 Comments
Status Closed Workarounds
Type Bug Repros 1
Opened 5/5/2013 11:11:02 PM
Access Restriction Public


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
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(