The Dll can not be regenerated because someone is locking it. There are only
2 candidates, both of them the devenv.exe process:
- The debugged IDE (second instance) that loads the binary add-in. When you
exit the second instance of the IDE, its devenv.exe process should
disappear. Use the Task Manager to ensure this is the case.
- The debugger IDE (first instance) that loads the add-in source code and
builds it. There can be several causes for a single instance of the IDE to
lock a dll. See:
The "could not copy temporary files to the output directory" error is
generated in Visual Studio .NET
http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B311491
In general your problem should not happen. I have being doing add-ins for
very long time and the only reason that I've seen to reach a Dll lock is the
one that I exposed in my own article or errant devenv.exe instances that
were not shut down properly.
--
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com "Doug" <dnlwhite@dtgnet.com> escribió en el mensaje
news:1124980241.265510.29650@z14g2000cwz.googlegroups.com...
[quoted text, click to view] > Hi,
> This is no longer working like it did. In the morning I would have
> to basically open the app, switch the add-in to not load at startup,
> get out of the app and come back in and I'd be fine (but I then have to
> mark it as load at startup again at that point or I could never test
> it).
>
> Now I run into this problem after every test of the application. I
> go through the steps in your article, run my tests, make a change, try
> again and then I get the error I originally mentioned and I have to
> repeat your steps in the article again.
>
> Do you have any other suggestions?
>