Monthly Archives: October 2011

MSBuild Kill Application Pool Process c#

Needed to kill an application pool process using an MSBuild task and C# cos the process was locking a file. using System; using System.Collections.Generic; using System.IO; using System.Text; using Microsoft.Build.Utilities; using Microsoft.Build.Framework; using System.Diagnostics; using System.Management; namespace MyProject.Deployment.Tasks { public … Continue reading

Posted in Uncategorized | Leave a comment