.net - What process is accessing my assembly (delete failure when cleaning a project in visual studio? -


I am running an external process in custom msbld work. This work is in assembly A, which i am creating project b . Everything works fine. However, while trying to clean up this project, Visual Studio 2008 gives me an error saying that "the process can not use assembly A because it is being used by any other process". Restarting Visual Studio resolves this issue.

The caller calling the external process is as follows

Process Process = New Process ();

process.start.info = new ProcessStartInfo {FileName = @ "c: \ program.exe", argument = "", UseShellExecute = false, CreateNoWindow = true, RedirectStandardOutput = true, RedirectStandardError = true};

Process.start ();

process.WaitForExit (5000);

How can I troubleshoot a problem like this?

UPDATE: By using the Process Explorer, it tells that devenv.exe handle on assembly A. Why and how do I stop it from having a handle on it?

I am not sure of the goal of your question. You can use the process explorer to find out which file the file is locking.

Here's something like this:


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -