DLL Recompilation With Inventor Open
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have several class library DLLs for Inventor. To test them after I make changes, I open Inventor and invoke methods via an iLogic rule. If there are errors, I change the source code and recompile, but if I don't first close Inventor, Visual Studio gives this error:
Could not copy "obj\Debug\Part Classes.dll" to "..\..\..\DLL\Part Classes.dll". Beginning retry 1 in 1000ms. The process cannot access the file '..\..\..\DLL\Part Classes.dll' because it is being used by another process. The file is locked by: "Autodesk® Inventor® 2018 (7344)" Part Classes
This error doesn't appear if I haven't used the DLL yet in this Inventor session.
I pretty much understand what this means, but I'm wondering if there's a way around it without closing Inventor, since loading it up again every time I want to test a change is time-consuming and tedious.
Does anyone know of a way to get around this?