Why does PowerShell fail to build my .net solutions? (“file is being used by another process”)
问题 I've written a PowerShell script to build several .net solutions one after the other. It simply makes several calls to tfget (to get latest) followed by calls to devenv.exe (to build the .sln files). Here's the code: tfget -item $SolutionPath -overwrite -recurse -ev +errors ... $out = invoke-expression "devenv.com /rebuild debug $SolutionPath" Almost every time I run the script one of the solutions fails to build and I get an error from CSC.exe (?) saying: error CS1606: Assembly signing