ASP.NET MVC应用程序缺少控制器文件夹

发布于 2025-02-10 00:09:22 字数 411 浏览 0 评论 0原文

我刚刚负责管理IIS托管的两个ASP.NET MVC应用程序。我以前没有ASP.NET(C#)的经验,也没有对任何ASP.NET MVC应用程序的最小知识。主要是Python后端开发。

当我在Microsoft网站上阅读文档时,应用程序应具有模型,视图和控制器。但是,我没有看到我继承的两个应用程序的控制器文件夹。当我在上一个团队发布的GITHUB上查看代码时,在那里,控制器文件夹和控制器文件就在那里。我不确定是否有一种将控制器文件放置在某处或在构建过程中消失的技术。

该应用程序当前正在运行,这些是IIS中唯一可用的目录。控制器文件夹在哪里?

iis screenshot

I just got responsibility of managing two ASP.NET MVC applications hosted on IIS. I have no previous experience with ASP.NET (C#), and very minimal knowledge of any ASP.NET MVC application. Mostly Python backend development.

When I'm reading the documents on Microsoft website, the application should have model, view, and controller. However, I don't see controller folder for two of the application I inherited. When I review the code on GitHub posted by the previous team, the controller folder and controller file are there. I'm not sure if there is a technique to place the controller file somewhere or disappear during the build process.

The application is currently running, and these are the only directory available in IIS. Where is the controller folder?

IIS Screenshot

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

向日葵 2025-02-17 00:09:22

您没有查看源代码。您正在查看编译和发布的应用程序。当然,那里不会有控制器或型号文件夹:它们已被编译到DLL中。您需要查看源代码。您提到您在Github中看到了它们:您需要克隆该GitHub仓库,然后将拥有所需的东西。从那里,您需要弄清楚它们如何部署应用程序到IIS(或提出自己的部署方式)。

You aren't looking at the source code. You're looking at the compiled and published application. Of course there won't be a controller or models folder there: they've been compiled into DLL's. You need to look at the source code. You mentioned you see them in GitHub: you need to clone that GitHub repo and then you'll have what you need. From there, you'll need to figure out how they deploy the app to IIS (or come up with your own way of deploying).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文