2

Closed

binding redirect fails for worker role

description

run install-package Microsoft.AspNet.WebApi.OwinSelfHost
  1. passes, adds binding redirect to empty web application
  2. passes, with web role
  3. fails, adding binding redirect to worker role (has app.config)
  4. fails, adding binding redirect to class library with app.config or web.config
Found that NuGet is checking for project type and doesn’t add binding redirect for class library projects. Worker role is a class library project and hence fails.

Expected for a worker role project:
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  <dependentAssembly>
    <assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />
    <bindingRedirect oldVersion="0.0.0.0-2.0.1.0" newVersion="2.0.1.0" />
  </dependentAssembly>
</assemblyBinding>
Closed Dec 30, 2013 at 1:38 AM by bhuvak

comments

deepakaravindr wrote Dec 11, 2013 at 9:23 PM

Fixed with 448652d028e3f01ba4022e147baaf4e1fb3f969b