aspnet_compiler 网站项目

发布于 2024-08-20 03:07:16 字数 96 浏览 5 评论 0原文

如果我使用本地 Web 服务器进行开发,我可以在不安装 IIS 的情况下从命令行使用实用程序 aspnet_compiler 编译网站项目 (3.5) 吗?

谢谢

Can I compile a WebSite project(3.5) using utility aspnet_compiler from command line without installing IIS if I am using local web server for development?

Thanks

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

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

发布评论

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

评论(1

一杆小烟枪 2024-08-27 03:07:16

是的,你可以。不过,您必须指定将其托管在服务器上的虚拟路径:

aspnet_compiler -v /deploymentVirtualPath -p D:\InputWebSite D:\CompiledWebsite

这会将“D:\InputWebsite”中的网站编译为“D:\CompiledWebsite”,并期望将其部署在“/deploymentVirtualPath”中生产服务器上的虚拟路径。如果需要将其部署在网站根目录中,只需指定“/”作为虚拟路径即可。

Yes, you can. You'll have to specify the virtual path you'll host it on the server though:

aspnet_compiler -v /deploymentVirtualPath -p D:\InputWebSite D:\CompiledWebsite

This will compile the Web site in "D:\InputWebsite" to "D:\CompiledWebsite" and expects it to get deployed in "/deploymentVirtualPath" virtual path on the production server. If you need to deploy it in the Website root, just specify "/" as the virtual path.

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