aspnet / Announcements

Subscribe to this repo to be notified about major changes in ASP.NET Core and Entity Framework Core
Other
1.66k stars 80 forks source link

Microsoft.AspNetCore.Mvc.Dnx is required to allow Mvc in RC2 to work with Dnx #154

Open pranavkm opened 8 years ago

pranavkm commented 8 years ago

As part of our recent migration, we broke compatibility with DNX in Mvc. This prevents controller and view component discovery from working correctly and view compilation to fail in our latest sources and packages on the aspnetcidev \ aspnetvnext feeds. To address this issue, we've published Microsoft.AspNetCore.Mvc.Dnx to https://www.myget.org/F/aspnetcidev feed that would allow Mvc to continue working with DNX until we've tooling support for dotnet-cli tools.

To use this package:

  1. Add the https://www.myget.org/F/aspnetcidev feed to your sources.
  2. Add Microsoft.AspNetCore.Mvc.Dnx to your project.json.
  3. In your startup under ConfigureServices add a call to AddMvcDnx:
public void ConfigureServices(IServiceCollection services)
{
            ...
            services.AddMvc();
            services.AddMvcDnx();
            ....
}
pranavkm commented 8 years ago

Use https://github.com/aspnet/Mvc/issues/4187 for further discussions.