UI_Generator icon indicating copy to clipboard operation
UI_Generator copied to clipboard

ekUIGen Parallel DLL Access

Open wallstop opened this issue 9 years ago • 1 comments

Currently, I have a solution setup that's simplified to something like:

Project A gets an EmptyKeys UI generated for it through its dependent projects. Project B gets an EmptyKeys UI generated for it through its dependent projects. Project C depends on both A and B. A and B have no common dependencies.

Building project A works great, building project B works great. When project C builds, VS parallelizes the builds of projects A and B, which means that ekUiGen attempts to run against two different projects at roughly the same time, which ends up throwing an IOException in the FileInfo.copy method.

The process cannot access the file '<solution path>\packages\EmptyKeysUI_Generator.2.3.0.0\tools\EmptyKeys.UserInterface.Designer.dll' because it is being used by another process.

Granted, the real solution here is for me to organize my projects better. However, I tested adding a backoff strategy with a low upper limit around IOExceptions in File.copy - worked great, but pretty hacky.

Feel free to close if this is the wrong forum for this.

wallstop avatar Jul 06 '16 07:07 wallstop

I see, will think about this issue

EmptyKeys avatar Jul 07 '16 15:07 EmptyKeys