gpt4 book ai didi

asp.net-mvc-2 - VS2012 中的 ASP.net MVC2 项目不起作用

转载 作者:行者123 更新时间:2023-12-04 01:57:22 24 4
gpt4 key购买 nike

是否可以在 Visual Studio 2012 中打开 MVC2 项目?当我尝试加载项目时,出现此错误:

De\De.csproj: The application which this project type is based on was not found. Please try this link for further information: http://go.microsoft.com/fwlink/?prd=12395&pver=11&sbp=ProjectTypeDeprecated&plcid=0x409&clcid=0x409&ar=MSDN&sar=ProjectCompatibility&o1=F85E285D-A4E0-4152-9332-AB1D724D3325



然后我重定向到: http://www.asp.net/whitepapers/mvc3-release-notes#upgrading

我需要升级到 MVC3 还是可以将我的项目保留在 MVC2 中?

最佳答案

VinnyG's request我正在提供指向 an answer I provided 的链接关于如何解决这个问题。 The linked answer提供了一个完全详细的解决方案,但这里是一个摘要:

ASP.NET MVC 2 will need to be downloaded and installed. The MVC 2 project file will need to be modified removing its project GUID. The removal of the project GUID will mean that the project no longer behaves like an MVC project: no right click to add view, controller, etc., but will compile and work as an MVC 2 project without having to migrate.

关于asp.net-mvc-2 - VS2012 中的 ASP.net MVC2 项目不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12691999/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com