English 中文(简体)
是否有办法在部署后从网络中删除文件夹?
原标题:Is there a way to delete folders from a web role after deployment?

我有一些档案,其唯一目的是在部署时抄送双筒。 在建造和安装后,可从网络功能中删除这些夹。

是否有办法实现自动化? 可能有一项启动任务? 启动任务会看什么?

Update 1

@Richard, thanks this is good info. I remember there being 2 folders, siteroot and approot. Will try just deleting the folders during App_Start.

问题回答

You can certainly delete files in startup tasks, or do it from code in the OnStart method of your class deriving RoleEntryPoint.

Is there any reason to delete the files? Are they doing any harm?





相关问题
Windows Azure WorkerRole response

I am working on an Azure demo to run Powershell in a worker role. In my web role I add the name of the Powershell script which is to be run to a CloudQueue object. I can print the script output to ...

Windows Azure WebRole stuck in a deployment loop

I ve been struggling with this one for a couple of days now. My current Windows Azure WebRole is stuck in a loop where the status keeps changing between Initializing, Busy, Stopping and Stopped. It ...

Getting a token for Windows Azure

We are looking at Windows Azure, but getting a token appears to be hard now, at least that s what I m seeing in web searches. Anyone tried it or know how to accelerate that process? Any idea how long ...

Developing Azure .Net 4.0 Applications

Presently .Net 4.0 is not supported on Azure. This thread indicates that you will not be able to use .Net 4.0 with VS 2010 until it is supported in the cloud. http://social.msdn.microsoft.com I d ...

.NET 4.0 on Windows Azure?

My google-fu is failing me on this one. As a possible solution to Unit Testing .NET 3.5 projects using MStest in VS2010 (but I ve put this in a seperate question because it s kind of unrelated): Is ...

热门标签