Asp.net aspnet_compile-v开关到底做什么?

Asp.net aspnet_compile-v开关到底做什么?,asp.net,aspnet-compiler,Asp.net,Aspnet Compiler,aspnet\u编译器要求对虚拟路径(或从中派生虚拟路径的-m)使用-v,即使指定了-p 例如: aspnet_compiler -p c:\Projects\WebSites\WebSite3 -v /WebSite3 c:\Precompiled <?xml version="1.0" encoding="utf-8"?> <preserve resultType="8" virtualPath="/WebSite3/global.asax" hash="6c89111"

aspnet\u编译器
要求对虚拟路径(或从中派生虚拟路径的
-m
)使用
-v
,即使指定了
-p

例如:

aspnet_compiler -p c:\Projects\WebSites\WebSite3 -v /WebSite3 c:\Precompiled
<?xml version="1.0" encoding="utf-8"?>
<preserve resultType="8" virtualPath="/WebSite3/global.asax" hash="6c89111" filehash="11b1c8ce4647" flags="150000" assembly="App_global.asax" type="ASP.global_asax">
    <filedeps>
        <filedep name="/WebSite3/global.asax" />
    </filedeps>
</preserve>
我想知道为什么
-v
很重要。您可以放置一个伪路径,它仍然可以编译。该值最终作为
virtualPath
属性的一部分出现在
.compiled
文件中。例如:

aspnet_compiler -p c:\Projects\WebSites\WebSite3 -v /WebSite3 c:\Precompiled
<?xml version="1.0" encoding="utf-8"?>
<preserve resultType="8" virtualPath="/WebSite3/global.asax" hash="6c89111" filehash="11b1c8ce4647" flags="150000" assembly="App_global.asax" type="ASP.global_asax">
    <filedeps>
        <filedep name="/WebSite3/global.asax" />
    </filedeps>
</preserve>

如果安装在服务器上,即使在
.compiled
文件中有不匹配(或伪造)的
virtualPath
,该站点也能正常工作。那么
aspnet\u编译器
在指定这一点上大惊小怪有什么好的理由吗