启动调试我MVC3应用程序打开浏览器中的特定文件.cshtml [英] Launching my debug MVC3 application opens a specific .cshtml file in the browser

查看:130
本文介绍了启动调试我MVC3应用程序打开浏览器中的特定文件.cshtml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio中我preSS F5 在这个特殊的项目MVC3,它打开时:

In Visual Studio when I press F5 in this particular MVC3 project, it opens:

localhost:36185/Views/Auction/Details.cshtml

在其他项目中,当我preSS F5 它正确打开操作时方法:

When in any other project, when I press F5 it correctly open the Home/Index action method:

http://localhost:36185

这是为什么打开一个特定视图,而不是使用正确的家庭/索引行动?什么设置干扰?

Why is this opening a specific View instead of using the correct Home/Index action? What setting is interfering?

推荐答案

项目属性=>网页=>开始行动

Project properties => Web => Start Action

和你挑

这篇关于启动调试我MVC3应用程序打开浏览器中的特定文件.cshtml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆