7

In my Asp .Net Core Web Application (started with empty template) I cannot install Microsoft.AspNet.Mvc nuget package.

After pressing Install in Nuget manager I get this error message:

Package restore failed. Rolling back package changes for 'WebApplication1'.

I tried to solve it on my own, but:

1) My project doesn't have project.json

2) Clearing nuget cache like in this answer didn't help: Netstandard1.x Nuget packages cannot be installed for netstandard1.x projects

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

Ide: VS2017 RC

I didn't have problems so far with installing other packages.

Is there a workaround to install mvc package?

Btw. I have to start with empty project template.

Thanks in advance for your support.

1 Answer 1

13

I looked harder in nuget package name and discovered that correct package to install should be Microsoft.AspNetCore.Mvc and not Microsoft.AspNet.Mvc.

Silly mistake, I chose most popular package by typing "mvc" in search box.

Sign up to request clarification or add additional context in comments.

1 Comment

Future reference... all .net core packages are now Microsoft.AspNetCore.***

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.