-
Notifications
You must be signed in to change notification settings - Fork 16
Description
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.