Just want to make sure that someone is already using the VSNetAddin on a regular basis? I've found a couple of more things today and need a sanity check and make sure that its not configuration issues on my machine and that my fixes are real (not just imaginary on my machine.. ), otherwise I can't see this working otherwise. These changes for me makes the addin work all the way now...  
 
So here goes...  
 
1) in TaskBuilder.cs, there are assemblies of type System.Reflection.Emit that have no Location, causing an exception. Besides, since it was looking for a match on assembly name, it would be a bit quicker to exit when the name was found rather than going thru the entire foreach.
 
2) in TaskFactory, I had a similar problem... in AddTasks the foreach threw an exception when the assembly had no types. So I wrapped it in a try/catch so that it would return 0 if the foreach failed.
 
3) In default.build for VSNetAddin I updated it again to copy the task.dll's to the vside.dir\tasks directory so that the Addin (just built) can find all the tasks.
 
4) Also after building NAnt, I still needed to manually move the dll's from the NAnt\build directory to the NAnt\bin directory to make sure that the new NAnt dll's were available to the VSNetAddin. I think that this is just an issue of making sure that the final build gets into the bin directory...  
 
Make sense? Is it commitable?
 
Paul
 
----- Original Message -----
From: "Ian MacLean" <[EMAIL PROTECTED]>
To: "Paul D'Anna" <[EMAIL PROTECTED]>
Cc: "Scott Hernandez" <[EMAIL PROTECTED]>; "Arnoldus, Michael" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, February 13, 2003 5:24 PM
Subject: Re: [NAntC-Dev] Re: [nant-dev] VS.Net Addin fails to load?

> Paul,
> It was failing in exactly the same place for me. I'll apply your change
> and see how it goes here. I'm running both 1.0 and 1.1 but have only
> tested the addin against 1.0. As far as I know Scott is running 1.0 also.
>
> Ian
> > Sorry to be a pest, but you say the VS.Net Addin as currently in CVS
> > compiles and works for you? Even with Michael's fix (which wasn't near where
> > I was having the problem), I was having a problem with creating the menus
> > via AddNamedCommand [which after trapping the exception message said
> > "undefined error"]
> >
> > cmdBuildProject = application.Commands.AddNamedCommand(
> > addin, NAntAddinCommands.BUILD_PROJECT,
> >
> > "Build Project",
> >
> > "Builds the Project",
> >
> > false, 101, ref contextUIGuids, status);     // change the false to true in
> > each .AddNamedCommand and it works...
> >
> > I have found that by setting the button value to "true" rather than "false"
> > in creating those commands's, everything seems to work well. Is that an
> > acceptable change? Is it really a fix? I'm using the .Net Framework 1.0 are
> > you possibly using 1.1?
> >
> > Thanks,
> > Paul
> >
> > ps. Attached is the diff of Michaels fix from the files he sent me...
> >  ----- Original Message -----
> > From: Scott Hernandez
> > To: Paul D'Anna
> > Cc:
[EMAIL PROTECTED]
> > Sent: Thursday, February 13, 2003 8:58 AM
> > Subject: [NAntC-Dev] Re: [nant-dev] VS.Net Addin fails to load?
> >
> >
> > Yes, I've had all these things working together. I mostly use NAnt, NUnit,
> > NDoc and the vs.net addin together. I also have another machine with draco
> > doing nightly builds.
> > ----- Original Message -----
> > From: Paul D'Anna
> > To:
[EMAIL PROTECTED] ;
> >
[EMAIL PROTECTED]
> > Sent: Thursday, February 13, 2003 4:03 AM
> > Subject: [nant-dev] VS.Net Addin fails to load?
> >
> >
> > I'm a newbie to all things NAnt, so I'm just diving in by going for getting
> > the whole enchilada going, NAnt, SlingShot, VS.Net Addin, NUnit and NDoc and
> > Draco. I got the latest from CVS on each of them and can build all (Haven't
> > set them all up yet) but the NAnt builds seem to work, except for the .Net
> > Addin. It fails when trying to create the pop up menus.
> >
> > What's anybody else's experience with this? And does anybody else have all
> > of these working together?
> >
> > I've got some time on my hands these days so if this a spot where I can dive
> > in, I'd like to get this working on my machine at least and post any changes
> > I need to make back for review...
> >
> > Paul D'Anna
> >
> >
> > ------------------------------------------------------------------------
> >
> > Index: NAntAddin.cs
> > ===================================================================
> > RCS file: /cvsroot/nantcontrib/NAntContrib/Tools/VSNetAddin/NAntAddin.cs,v
> > retrieving revision 1.1
> > diff -r1.1 NAntAddin.cs
> > 660,662c660,664
> > < for (int j = 1; j < (project.ProjectItems.Count+1); j++)
> > < {
> > < Item_Added(project.ProjectItems.Item(j));
> > ---
> >
> >> if (project.ProjectItems != null) {
> >> for (int j = 1; j < (project.ProjectItems.Count+1); j++)
> >> {
> >> Item_Added(project.ProjectItems.Item(j));
> >> }
>
>
>
>
> -------------------------------------------------------
> This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
> are you planning your Web Server Security? Click here to get a FREE
> Thawte SSL guide and find the answers to all your  SSL security issues.
>
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
> _______________________________________________
> NAntContrib-Developer mailing list
>
[EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nantcontrib-developer

Attachment: VsNetAddin.zip
Description: Zip compressed data

Reply via email to