简体   繁体   English

尝试在* .csproj文件中编辑和更改目标框架

[英]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. 我有一个项目位于asp.net MVC 4.0中,现在我将项目MVC版本从4.0更新到了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. 在此更新之后,我从所有*.cshtml文件中丢失了IntelliSense,没关系,我仍然可以在没有IntelliSense的情况下工作,但是突然之间,我不知道项目中的所有*.cshtml文件没有打开,我的项目发生了什么。 Below message is showing when I trying to open the *.cshtml file. 当我尝试打开* .cshtml文件时,显示以下消息。 在此处输入图片说明

I think there is an issue with my .csproj file, In that file the target framework is still is 4.0 我认为.csproj文件存在问题,在该文件中,目标框架仍然是4.0

在此处输入图片说明

Can anybody suggest do I really need to update .csproj file for open the *.cshtml pages and enable the IntelliSense ? 有人可以建议我是否真的需要更新.csproj文件以打开* .cshtml页面并启用IntelliSense吗?

Thanks in Advance. 提前致谢。

Try changing the target framework. 尝试更改目标框架。 If you are using 4.0 try to make it 4.5. 如果您使用的是4.0,请尝试将其设置为4.5。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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