<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: C# Project of the EG Add-in, How to set the icon in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/C-Project-of-the-EG-Add-in-How-to-set-the-icon/m-p/110523#M9451</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Slash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Two things that you should confirm:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Your ICO file is included as part of the Visual Studio project, with a build action of "Embedded Resource"&lt;/P&gt;&lt;P&gt;2. The name you provided is the full namespace-qualified file name.&amp;nbsp; Your project's default namespace will determine the first qualifier.&amp;nbsp; According to the name you provided, the default namespace is "Print".&amp;nbsp; Check in the project settings to make sure that's the case. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&amp;nbsp; Look in the Manifest, under resources.&amp;nbsp; See attached image for example.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ildasm_icon.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/2455_ildasm_icon.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Sep 2012 16:26:58 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2012-09-03T16:26:58Z</dc:date>
    <item>
      <title>C# Project of the EG Add-in, How to set the icon</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/C-Project-of-the-EG-Add-in-How-to-set-the-icon/m-p/110522#M9450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Hello, evetyone! &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #575757;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 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:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;IMG alt="1.jpg" class="jive-image-thumbnail jive-image" height="243" src="https://communities.sas.com/legacyfs/online/2452_1.jpg" width="600" /&gt;&lt;/P&gt;&lt;P&gt;The first Add-in is where I download from the sas.support. You see, there is a icon with the Add-in.&lt;/P&gt;&lt;P&gt;The second is that I use the C# write. And I notice the Example: Calculate lag, there is a code which set the icon:&lt;/P&gt;&lt;PRE __default_attr="c#" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13464961359808868" jivemacro_uid="_13464961359808868"&gt;
&lt;P&gt;[IconLocation("CalculateLag.function.ico")]&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt; So, I add this code to my project,&lt;/P&gt;&lt;PRE __default_attr="c#" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13464961916126714" jivemacro_uid="_13464961916126714" modifiedtitle="true"&gt;
&lt;P&gt;[IconLocation("Print.App.ico")]&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;My Environment:&lt;/P&gt;&lt;P&gt;Visual Studio 2010 Ultimate&lt;/P&gt;&lt;P&gt;Enterprise Guide 4.3&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Sep 2012 10:45:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/C-Project-of-the-EG-Add-in-How-to-set-the-icon/m-p/110522#M9450</guid>
      <dc:creator>Slash</dc:creator>
      <dc:date>2012-09-01T10:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: C# Project of the EG Add-in, How to set the icon</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/C-Project-of-the-EG-Add-in-How-to-set-the-icon/m-p/110523#M9451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Slash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Two things that you should confirm:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Your ICO file is included as part of the Visual Studio project, with a build action of "Embedded Resource"&lt;/P&gt;&lt;P&gt;2. The name you provided is the full namespace-qualified file name.&amp;nbsp; Your project's default namespace will determine the first qualifier.&amp;nbsp; According to the name you provided, the default namespace is "Print".&amp;nbsp; Check in the project settings to make sure that's the case. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&amp;nbsp; Look in the Manifest, under resources.&amp;nbsp; See attached image for example.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ildasm_icon.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/2455_ildasm_icon.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 16:26:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/C-Project-of-the-EG-Add-in-How-to-set-the-icon/m-p/110523#M9451</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2012-09-03T16:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: C# Project of the EG Add-in, How to set the icon</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/C-Project-of-the-EG-Add-in-How-to-set-the-icon/m-p/110524#M9452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chris,&lt;/P&gt;&lt;P&gt;Thankyou vey much! The problem is the icon file's Build Action. I don't know this point.&lt;/P&gt;&lt;P&gt;It's default value is "Content", so that is not working. Now I change it to "Embedded Resource", so the problem has been solved.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="001.jpg" class="jive-image" src="https://communities.sas.com/legacyfs/online/2456_001.jpg" /&gt;&lt;IMG alt="002.jpg" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/2457_002.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And, you let me know the IL DASM tool, this is a useful tool. Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 01:34:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/C-Project-of-the-EG-Add-in-How-to-set-the-icon/m-p/110524#M9452</guid>
      <dc:creator>Slash</dc:creator>
      <dc:date>2012-09-04T01:34:37Z</dc:date>
    </item>
  </channel>
</rss>

