更改 ASP.NET MVC 中的控制器目录名称
是否可以更改 asp.net MVC 中控制器/视图...的目录名称? 我的意思是我想将控制器文件夹命名为“myControllers”或任何其他名称,这可能吗?又如何?
is it possible to change the directory name of the Controllers / Views ... in asp.net MVC ?
i mean I want to name the controllers folder to be "myControllers" or any other name, is it possible ? and how ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,您可以将“Controllers”文件夹重命名为您想要的名称。这对于视图无效。
但我绝不会建议您更改 ASP.NET 约定。
Yes, you can just rename the "Controllers" folder to what you want. This is doesn't valid for the view.
But I'd never recommend you changing ASP.NET convention.