I wrote a PowerShell script to create several .net solutions one by one. It simply calls a few tfget calls (to get the latest), followed by devenv.exe calls (to create .sln files).
Here is 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 message from CSC.exe (?), Saying:
error CS1606: build failed; withdrawal cannot be signed. The process cannot access the file because it is being used by another process.
This happens despite the fact that I have closed all instances of Visual Studio that support these solutions, and I do not have any of them working on my machine.
, , . PowerShell, , .
? - .NET- PowerShell?