Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我使用本地 Web 服务器进行开发,是否可以在不安装 IIS 的情况下从命令行使用实用程序 aspnet_compiler 编译网站项目(3.5)?
谢谢
是的你可以。您必须指定在服务器上托管它的虚拟路径:
aspnet_compiler -v /deploymentVirtualPath -p D:\InputWebSite D:\CompiledWebsite
这会将“D:\InputWebsite”中的网站编译为“D:\CompiledWebsite”,并期望它部署在生产服务器上的“/deploymentVirtualPath”虚拟路径中。如果您需要将其部署在网站根目录中,只需指定“/”作为虚拟路径。