riskfirst / riskfirst.hateoas

Powerful HATEOAS functionality for .NET web api
MIT License
78 stars 25 forks source link

NRE when using the library in .NET console project created with pre dotnet core project template #10

Closed nicky-iliev closed 6 years ago

nicky-iliev commented 6 years ago

I created a console app using a pre dotnet core project template. Added MVC core deps and run it. There is a NRE inside DefaultRouteMap ctor - DependencyContext.Default is null.

There is a hack for initializing the DependencyContext.Default (if you supply a App.deps.json (copied from .net core application))

jamiecoh commented 6 years ago

Fixed by #11