Tuesday, February 2, 2016

ASP.NET 5 & ServiceFabric: Unable to locate Dependency Microsoft.AspNet.Server.WebListener >= 1.0.0-rc1-final

When adding an ASP.NET 5 Web API to my ServiceFabric solution, restoring the NuGet packages failed with the following error message:

Errors in Projects\MyActor\Web1\project.json
    Unable to locate Dependency Microsoft.AspNet.Server.WebListener >= 1.0.0-rc1-final
Restore complete, 73193ms elapsed


image

This is an issue in the current version of the SDK. You can fix it by executing the following steps:

  • Go to your ASP.NET 5 web project
  • Open the project.json file
  • Add a space to the file and save it
    • This will trigger a NuGet Package restore and the missing dependency will be downloaded

No comments: