VisStudio 2003 EnvDTE/automation interface causes exception - 08-01-2003 , 04:47 AM
I am working on automating our build process so I downloaded the BuildIT
app. Based on it I wrote a test build app that uses the automation interface
exposed through the EnvDTE object and I have run into several problems. I am
using the latest version of DevStudio and all code is written in C#.
Our solution has about 30 C# projects in it with some complex dependencies,
and the release build produces two MSI files (client and server files). One
problem I am currently having is that when I invoke the SolutionBuild.Build
method it will grind away for some time and then throw an exception that
"the call was rejected by the callee" (or something similar). I do not have
this problem when I open and build a simple test solution.
Another problem is that when I invoke the SolutionBuild.Clean method it does
not appear to actually do anything. Is this method functional in the current
Also, if a solution build fails is there any means of determining which
project failed? There is a property called LastBuildInfo which simply
returns a pass/fail indication....is that all I can get?
Is there a means of capturing the build output so that I can get feedback
during the build process?
Thanks for any help provided,
Re: VisStudio 2003 EnvDTE/automation interface causes exception - 08-01-2003 , 07:28 PM
Well, in that case have I got good news for you.... I googled up a solution
to the problem.
The problem is that the call takes so long to complete that COM times out.
The way to fix is is to implement an IMessageFilter in the .net code that
calls the interop layer. This is easier then it sounds (once someone has you
how, that is).
The code that does this is on a weblog by Shawn Ness. Here's a link to the
Now all we have to do is get some MSFT dude to archive this so the next time
"J.Marsch" <jeremy (AT) ctcdeveloper (DOT) com> wrote
Re: VisStudio 2003 EnvDTE/automation interface causes exception - 08-04-2003 , 10:58 AM
Wow! That is really good news! Thank you very much!
"Dave" <kdlevine (AT) wi (DOT) rr.com> wrote
|Thread Tools||Search this Thread|