无需编译DLL即可部署asp.net应用程序

发布于 2024-08-10 19:54:55 字数 189 浏览 3 评论 0原文

当我发布任何类型的 ASP.NET 应用程序时,我的代码会被预编译成各种程序集。我想避免这种情况,以便我可以上传 aspx 页面及其相应的代码隐藏文件。我了解两种方式的好处,但这里需要的是风险最小的发布更改的方式。

如何在不编译程序集的情况下正确部署 ASP.NET 项目?

每个模型(Web 应用程序、MVC ..)的流程是否不同

When I publish any type of asp.net application, my code is precompiled into various assemblies. I would like to avoid this so that I can upload an aspx page and its corresponding codebehind file. I understand the benefits of doing it either way, but what is desired here is the least risky way to publish changes.

How does one properly deploy an asp.net project without compiling assemblies?

Is the process different for each model (web app, MVC..)

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

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

发布评论

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

评论(1

剧终人散尽 2024-08-17 19:54:56

听起来您有一个 Web 应用程序项目,而您想要的是一个网站项目。对于网站项目,您可以修改 aspx 和代码隐藏文件,而不必担心重新编译它们,asp.net 会为您做这件事。每次代码更改都需要编译 Web 应用程序项目。

Sounds like you have a Web Application Project, and what you want is a Website Project. With website projects, you can modify the aspx and codebehind files and not have to worry about recompliling them, asp.net will do that for you. Web Application Projects need to be compiled for every code change.

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