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)); > }