BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Slash
Quartz | Level 8

Hello, evetyone!
     I'm new here, and I'm new for EG. Recently, I use the C# to write some EG Add-in Project. I have a little problem. Look the Pic:

1.jpg

The first Add-in is where I download from the sas.support. You see, there is a icon with the Add-in.

The second is that I use the C# write. And I notice the Example: Calculate lag, there is a code which set the icon:

[IconLocation("CalculateLag.function.ico")]

So, I add this code to my project,

[IconLocation("Print.App.ico")]

But my Add-in is still no icon in the EG Add-in Manager. Although this is little problem, but I hope it will be solved.

My Environment:

Visual Studio 2010 Ultimate

Enterprise Guide 4.3

1 ACCEPTED SOLUTION

Accepted Solutions
ChrisHemedinger
Community Manager

Slash,

Two things that you should confirm:

1. Your ICO file is included as part of the Visual Studio project, with a build action of "Embedded Resource"

2. The name you provided is the full namespace-qualified file name.  Your project's default namespace will determine the first qualifier.  According to the name you provided, the default namespace is "Print".  Check in the project settings to make sure that's the case.

You can use a tool like ildasm (part of the .NET framework) to examine your DLL and make sure the icon is embedded with the name you think it should have.  Look in the Manifest, under resources.  See attached image for example.

ildasm_icon.png

Chris

Check out SAS Innovate on-demand content! Watch the main stage sessions, keynotes, and over 20 technical breakout sessions!

View solution in original post

2 REPLIES 2
ChrisHemedinger
Community Manager

Slash,

Two things that you should confirm:

1. Your ICO file is included as part of the Visual Studio project, with a build action of "Embedded Resource"

2. The name you provided is the full namespace-qualified file name.  Your project's default namespace will determine the first qualifier.  According to the name you provided, the default namespace is "Print".  Check in the project settings to make sure that's the case.

You can use a tool like ildasm (part of the .NET framework) to examine your DLL and make sure the icon is embedded with the name you think it should have.  Look in the Manifest, under resources.  See attached image for example.

ildasm_icon.png

Chris

Check out SAS Innovate on-demand content! Watch the main stage sessions, keynotes, and over 20 technical breakout sessions!
Slash
Quartz | Level 8

Chris,

Thankyou vey much! The problem is the icon file's Build Action. I don't know this point.

It's default value is "Content", so that is not working. Now I change it to "Embedded Resource", so the problem has been solved.

001.jpg002.jpg

And, you let me know the IL DASM tool, this is a useful tool. Thanks again.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 1020 views
  • 4 likes
  • 2 in conversation