Refreshing file list

Topics: User Forum
Aug 14, 2006 at 12:41 PM
Hi,

I am totally new to the AddIn and am stil trying to get it to work for me.
I have an existing solution, with separate projects for each application layer.

In this solution, whenver I try te refresh the file list Visual Studion crashes!
As the solution is under SouceControl, I thought, maybe ReadOnlly files are not handled. So I created a new project Class Library type and tried the tool there. In this solution, pressing the refresh button does nothing, the list stays empty. Any idea what I am doing (have done) worng?

Thanks in advance for any help you can provide!!

Ivo Vink
Coordinator
Aug 14, 2006 at 3:05 PM
I tested the sandcastle with subversion, that went ok. Make sure you project is compiled and the bin folders contain the dlls also make sure you have xml output on compiling switched on (project properties)

If still no luck you could try to download latest sourcecode project and hit some breakpoints in usercontrols > sandcastle > btnRefresh_Click and the and OvernightPowerAddIns.Classes.Common.Analyse class. Before testing the project with the downloaded project, first uninstall the previous build and create OvernightPowerAddIns - For Testing.AddIn file in the add-in folder

should contain: (adjust dll path -> project/bin !)

<?xml version="1.0" encoding="UTF-16" standalone="no"?>
<Extensibility xmlns="http://schemas.microsoft.com/AutomationExtensibility">
<HostApplication>
<Name>Microsoft Visual Studio</Name>
<Version>8.0</Version>
</HostApplication>
<Addin>
<FriendlyName>OvernightPowerAddIns - PowerAddIns</FriendlyName>
<Description>OvernightPowerAddIns - Add-ins that make your daily live easyer</Description>
<Assembly>C:\development\overnight\OvernightPowerAddIns\OvernightPowerAddIns\OvernightPowerAddIns\bin\OvernightPowerAddIns.dll</Assembly>
<FullClassName>OvernightPowerAddIns.Connect</FullClassName>
<LoadBehavior>1</LoadBehavior>
<CommandPreload>1</CommandPreload>
<CommandLineSafe>0</CommandLineSafe>
</Addin>
</Extensibility>

Hope this helps,

fhk
Aug 15, 2006 at 7:40 AM
Frank,

Tried the debugging option. I found out what's going wrong.
You scan each Project Item separately and in the first code line of that specific function you test if the item cntains elements:
public void ScanItems(ProjectItems myItems)
{
if (myItems.Count == 0) return;
Since we have a DotNet 2.0 web project one of our "items" is not a regular project. myItems then equals to null and the AddIn (and Visual Studion containing it) crashes.
When I skip the test and go on to the return the AddIn continues normally.
Regretfully however, I get Empty CHM-files?!?!?
Since I don't have so much time at the moment, I have to stop testing but will keep on tracking your log.

Thx in advance for any actions!!

Ivo Vink

PS. Maybe you can e hlped with the debug.txt entries? Here they are!

15/08/2006 07:53:26:Connect:76:A Command with that name already exists.
15/08/2006 08:00:00:Analyse:115:Value does not fall within the expected range.
15/08/2006 08:00:00:Analyse:115:Value does not fall within the expected range.
15/08/2006 08:00:00:Analyse:115:Value does not fall within the expected range.
15/08/2006 08:00:00:Analyse:115:Value does not fall within the expected range.
15/08/2006 08:03:31:Analyse:115:Value does not fall within the expected range.
15/08/2006 08:03:31:Analyse:115:Value does not fall within the expected range.
15/08/2006 08:03:31:Analyse:115:Value does not fall within the expected range.
15/08/2006 08:03:31:Analyse:115:Value does not fall within the expected range.
15/08/2006 08:08:23:Connect:76:A Command with that name already exists.
15/08/2006 08:16:53:Connect:76:A Command with that name already exists.
15/08/2006 08:19:17:Connect:76:A Command with that name already exists.
15/08/2006 08:22:16:Analyse:115:The file 'BaseException.cs' is not open.
15/08/2006 08:22:16:Analyse:115:Value does not fall within the expected range.
15/08/2006 08:22:16:Analyse:115:Value does not fall within the expected range.
15/08/2006 08:22:16:Analyse:115:Value does not fall within the expected range.
15/08/2006 08:23:41:Analyse:115:Value does not fall within the expected range.
15/08/2006 08:23:41:Analyse:115:Value does not fall within the expected range.
15/08/2006 08:23:41:Analyse:115:Value does not fall within the expected range.
15/08/2006 08:23:41:Analyse:115:Value does not fall within the expected range.
15/08/2006 08:26:01:Analyse:115:Value does not fall within the expected range.
15/08/2006 08:26:01:Analyse:115:Value does not fall within the expected range.
15/08/2006 08:26:01:Analyse:115:Value does not fall within the expected range.
15/08/2006 08:26:01:Analyse:115:Value does not fall within the expected range.
15/08/2006 08:37:02:Connect:76:A Command with that name already exists.
Coordinator
Aug 15, 2006 at 10:19 AM
15/08/2006 07:53:26:Connect:76:A Command with that name already exists
-has to do with the menu failing

myItems == null
-will fx that, np


Empty CHM-files
you could step through each shellcommand and see what goes wrong, maybe setting?

OvernightPowerAddIns.Classes.Common.GenerateHelp
->foreach (ShellCommand myCommand in lCommands)

have no time to fx stuff on the spot, I hope to get that done tomorrow night.
fhk