<?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# Add reference to PresentationFramework in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/c-add-reference-to-presentationframework/m-p/12593938#M5255</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/543921"&gt;@norman.yuan&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adding those references is what worked. Thank you!&lt;/P&gt;</description>
    <pubDate>Fri, 01 Mar 2024 20:38:19 GMT</pubDate>
    <dc:creator>snappyjazz</dc:creator>
    <dc:date>2024-03-01T20:38:19Z</dc:date>
    <item>
      <title>C# Add reference to PresentationFramework</title>
      <link>https://forums.autodesk.com/t5/net-forum/c-add-reference-to-presentationframework/m-p/12593597#M5253</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I started learning programming using vb.net and am now learning C#. I am trying to rewrite my code for AutoCAD commands, but am having this issue. It doesn't have this issue in the VB.NET version I should add. In the code snippet below the issue for all is: The type control is defined in an assembly that is not referenced. You must add a reference to assembly 'PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. How do I add that reference? why does it have this issue in C# and not VB.NET?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="snappyjazz_2-1709312618418.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1332390i6E51EC1F7A25D689/image-size/medium?v=v2&amp;amp;px=400" role="button" title="snappyjazz_2-1709312618418.png" alt="snappyjazz_2-1709312618418.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="snappyjazz_3-1709312642435.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1332391i57E1F0A3C6717C12/image-size/medium?v=v2&amp;amp;px=400" role="button" title="snappyjazz_3-1709312642435.png" alt="snappyjazz_3-1709312642435.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 17:06:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/c-add-reference-to-presentationframework/m-p/12593597#M5253</guid>
      <dc:creator>snappyjazz</dc:creator>
      <dc:date>2024-03-01T17:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: C# Add reference to PresentationFramework</title>
      <link>https://forums.autodesk.com/t5/net-forum/c-add-reference-to-presentationframework/m-p/12593662#M5254</link>
      <description>&lt;P&gt;Where do you write your code (seeing all the noisy "// PropertyGroup.....&amp;nbsp; " thing)? VS Code, or Visual Studio? You should use Visual Studio.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also seeing "&amp;lt;TargetFrameworkAttribute&amp;gt;.net 5.0 - window..." suggests that you target the wrong .NET version. Before Acad2025 release, you can only use .NET Framework 4.x (depending on your version of AutoCAD, if it is not too old version).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since AutoCAD ribbon is built on top of WPF, you do need to add following references "PresentationFramework, WindowBase, System.Xaml, if you want to deal with Ribbon from the AdWindows.dll. In the project explorer, you right click "references" node, click "Add References..." and then in the dialog box, select "Assemblies" on the left pane, then find these references and select/check them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 17:40:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/c-add-reference-to-presentationframework/m-p/12593662#M5254</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2024-03-01T17:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: C# Add reference to PresentationFramework</title>
      <link>https://forums.autodesk.com/t5/net-forum/c-add-reference-to-presentationframework/m-p/12593938#M5255</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/543921"&gt;@norman.yuan&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adding those references is what worked. Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 20:38:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/c-add-reference-to-presentationframework/m-p/12593938#M5255</guid>
      <dc:creator>snappyjazz</dc:creator>
      <dc:date>2024-03-01T20:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: C# Add reference to PresentationFramework</title>
      <link>https://forums.autodesk.com/t5/net-forum/c-add-reference-to-presentationframework/m-p/13043721#M5256</link>
      <description>&lt;P&gt;I am facing the exact same issue and I am trying to add the dlls but not being able to. The Project explorer as you mentioned is nowhere to be found. Please can you help me with this.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 09:48:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/c-add-reference-to-presentationframework/m-p/13043721#M5256</guid>
      <dc:creator>pts_user</dc:creator>
      <dc:date>2024-09-25T09:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: C# Add reference to PresentationFramework</title>
      <link>https://forums.autodesk.com/t5/net-forum/c-add-reference-to-presentationframework/m-p/13044348#M5257</link>
      <description>&lt;P&gt;Do not just say "exact same issue" vaguely: in most cases, an issue that looks the same or similar is from an unique condition or combination of conditions. You need to provide more relevant information: which version of AutoCAD (due to Acad2025 's big change to API requirements, knowing it is Acad2025, or pre-Acad2025 version is significant!), which development tool you are using (Visual Studio, or Visual Studio Code, since you claim "Project Explorer... is nowhere to be found");&amp;nbsp; what kind of AutoCAD .NET API code you are writing (if you want to manipulate AutoCAD's UI, such as Ribbon, as the OP did, and references AcWindows/AdWindows.dll, you would need to have "PresentationFramework/PresentationFrameworkCore/WindowBase/System.Xaml.dll" also referenced.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide more details, so meaningful helps/suggestions could be offered.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 14:01:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/c-add-reference-to-presentationframework/m-p/13044348#M5257</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2024-09-25T14:01:47Z</dc:date>
    </item>
  </channel>
</rss>

