简体   繁体   English

msdeploy删除ASP.NET临时文件

[英]msdeploy delete ASP.NET Temporary files

I am using msdeploy to delete web sites using this command 我正在使用msdeploy使用此命令删除网站

msdeploy -verb:delete -dest:apphostconfig="Default Web Site/FOO",computerName="BAR"

however this does not delete the files under 但是,这不会删除下面的文件

C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\Temporary ASP.NET Files\\FOO C:\\ Windows \\ Microsoft.NET \\ Framework64 \\ v4.0.30319 \\ ASP.NET临时文件\\ FOO

Is there an argument for msdeploy to delete these files too? msdeploy是否也有要删除这些文件的参数? If that is not the case, is there something else I can use in a Power Shell or batch script from a remote computer? 如果不是这种情况,我可以在远程计算机的Power Shell或批处理脚本中使用其他功能吗?

You can use the runCommand MSDeploy provider: 您可以使用runCommand MSDeploy提供程序:

msdeploy.exe -verb:sync -source:runCommand="net start MyService" -dest:auto 

https://technet.microsoft.com/en-us/library/ee619740(v=ws.10).aspx https://technet.microsoft.com/zh-CN/library/ee619740(v=ws.10).aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM