我的解决方案中有一个较旧的ASP.NET MVC 4项目。我刚刚安装了Visual Studio 2017 RC社区版(VisualStudio / public.d15rel / 15.0.26020.0)。我们已成功使用VS2015。
当我在VS2017RC中加载解决方案时,出现错误:
The application which this project type is based on was not found.
我在安装VS2017RC之后重新安装了ASP.NET MVC 4,但它没有帮助。
我计划将其升级到更新版本的ASP.NET MVC,但我希望同时使用VS2017。
答案 0 :(得分:5)
查找代码(可能不同):
<ProjectTypeGuids> {E3E379DF-F4C6-4180-9B81-6769533ABE47}; {349c5851-65df-11da-9384-00065b846f21}; {fae04ec0-301f-11d3-bf4b-00c04f79efbc} </ProjectTypeGuids>
删除{E3E379DF-F4C6-4180-9B81-6769533ABE47};
并非所有MVC4属性(f.e.Viewbag)都在Views中被识别。 但至少你可以打开并运行项目,直到发布补丁。
答案 1 :(得分:3)
答案 2 :(得分:1)
他们说这是固定的,等待发布(目前)。
这是UserVoice票证:https://developercommunity.visualstudio.com/content/problem/2865/cannot-load-mvc4-web-project-in-vs-2017-rc.html