简体   繁体   中英

Trying to edit and change target framework in *.csproj file

I have a project which was in asp.net MVC 4.0, Now I updated my project MVC version from 4.0 to 5.2. After this update, I have lost my IntelliSense from all my *.cshtml files, that's OK still I can work without IntelliSense but suddenly I don't know what happened with my project all the *.cshtml files in a project are not opening. Below message is showing when I trying to open the *.cshtml file. 在此处输入图片说明

I think there is an issue with my .csproj file, In that file the target framework is still is 4.0

在此处输入图片说明

Can anybody suggest do I really need to update .csproj file for open the *.cshtml pages and enable the IntelliSense ?

Thanks in Advance.

Try changing the target framework. If you are using 4.0 try to make it 4.5.

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