Asp.Net Core - cannot install Microsoft.AspNet.Mvc nuget package

In my basic Asp.Net web application (running with an empty template), I cannot install the Microsoft.AspNet.Mvc nuget package.

After clicking the "Install in Nuget Manager" button, I get the following error message:

Failed to restore the package. Rollback package changes for "WebApplication1".

I tried to solve this myself, but:

1) There is no project.json in my project

2) Clearing the nuget cache, as in this answer, did not help:   Netstandard1.x Nuget packages cannot be installed for netstandard1.x projects

Project target structure: .NetCoreApp1.0 (also tried 1.1)

Ide: VS2017 RC

I have not had any problems installing other packages yet.

Is there a way around the mvc package?

Btw. .

.

+6
1

nuget , Microsoft.AspNetCore.Mvc, Microsoft.AspNet.Mvc.

, , "mvc" .

+11

Source: https://habr.com/ru/post/1014291/


All Articles