Jump to content

Spotfire C# extension dll not loaded when debugging in the Analyst


Georgi Koemdzhiev

Recommended Posts

I am trying to figure out why my custom extension dll does not get loaded when I start debugging my project - press F5 when using Visual Studio 2019 (same happens with 2017 as well).

My project is pretty much a simpleCustomTool(i.e. File -> New Project -> TIBCO Spotfire Extention_VS) which registers a menu item in theToolsmenu which when clicked manipulates page locations.

This is where my project is relative to the SDK:

 

When the Spotfire Analyst launches, I go toHelp -> Support diagnostics and logging -> Product File Informationto inspect if the dll (i.e. MapChartCoordinatesCustomToolGeorgi.dll) is loaded correctly, but it doesn't appear to be in the list:

 

This is my main class:

public sealed class CustomAddIn : AddIn

{

// Override methods in this class to register your extensions.

 

protected override void RegisterTools(ToolRegistrar registrar)

{

base.RegisterTools(registrar);

CustomMenuGroup menuGroup = new CustomMenuGroup("My menu sub group");

registrar.Register(new PageTool("Georgi's Menu"), menuGroup);

}

}This is myPageToolclass:

public class PageTool : CustomTool

{

 

public PageTool(string menuText) : base(menuText)

{

}

 

 

protected override void ExecuteCore(Page page)

{

Document document = page.Context.GetAncestor();

int index = document.Pages.IndexOf(page);

document.Pages.Move(index, document.Pages.Count - 1);

}

 

 

protected override bool IsEnabledCore(Page page)

{

Document document = page.Context.GetAncestor();

 

int index = document.Pages.IndexOf(page);

return index >= 0 && index < document.Pages.Count - 1;

}

}

Link to comment
Share on other sites

  • 4 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...