Monthly Archives: May 2011

Visual Studio Test: The magic of DeployItem

Want a file in your project to go to the test folder, add this/these attribute(s) to your test class: //takes the app.config and names it appropriately [DeploymentItem(“..\\..\\Config”, “Config”)] //A generic file in the project [DeploymentItem(“fileinmyproject.text”)] Advertisements

Posted in Uncategorized | Leave a comment

Powershell: Delete a service

Per http://stackoverflow.com/questions/4967496/how-to-check-if-a-windows-service-exists-and-delete-in-powershell $service = Get-WmiObject -Class Win32_Service -Filter “Name=’servicename’” $service.delete()

Posted in Uncategorized | Leave a comment