VS.NET Automation: Remove a Reference

Jun 21 2004 6:50 AM
Hi, I got a problem when using the 'Remove' function of the VS.NET Automation Object 'Reference'. I want to programatically remove a reference on an assembly, so that i can open it to do some reflection stuff and then add it again to the project references. Now I call MyReference.Remove and when I try to load the assembly for reflection or to make other operations on it (e.g. delete it) I get an Exception System.IO Exception. Can someone please help me?