If you are using STSDEV and Windows Server 2008, the DebugRefreshAssemblyInGac target will be broken. The reason is C:\Windows\system32\ iisapp.vbs has been replaced by C:\Windows\system32\inetsrv\appcmd.exe . In order to fix this the Microsoft.SharePoint.Targets file needs the following modifications...