I have a VS 2008 solution with 2 projects. Project A builds into an assembly that is used by Project B (MVC project). I have created a custom task in Project A, which I call when building Project B.
I have come across 2 issues:
- If my AssemblyFile property points to Project A's bin directory, everything works well. But when I want to clean Project B, it always gives the error that Project A's assembly cannot be accessed because it is in use by another process (turns out to be devenv.exe) and the delete fails.
- If my AssemblyFile property points to Project B's bin directory, build fails saying that it cannot load or find Project A's assembly. I've triple checked the path, filename, uppercase/lowercase, spelling and also checked that Project A's assembly really is there when the build fails.
So what is wrong with scenario 1 and 2. Or where should I be pointing AssemblyFile to? Failing all that, is there a better way to do this?