简体   繁体   中英

Compile errors after installing VS2015

I was working on VS2013 on a class library project that references MVC dll from the following location:

C:\\Program Files (x86)\\Microsoft ASP.NET\\ASP.NET MVC 4\\Assemblies\\System.Web.Mvc.dll

Then I uninstalled VS2013 then installed VS2015. Now my project is demanding the MVC dll

在此处输入图片说明

Please note that the following path: C:\\Program Files (x86)\\Microsoft ASP.NET\\ASP.NET MVC 4\\

is missing from my computer.

The following compile error appears on build:

Severity Code Description Project File Line Error CS0234 The type or namespace name 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)

My guess would be that MVC4 was bundled together with visual studio 2013 and thus is also removed. You could try to reinstall it yourself using the web platform installer or removing the dependencies and re-adding them using nuget ( https://www.nuget.org/packages/Microsoft.AspNet.Mvc/4.0.40804 ) Install-Package Microsoft.AspNet.Mvc -Version 4.0.40804

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM