<?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: I can't get a basic C# .NET project WITH WINDOWS FORMS to work in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/i-can-t-get-a-basic-c-net-project-with-windows-forms-to-work/m-p/13228639#M1398</link>
    <description>&lt;P&gt;It is not AutoCAD programming issue, strictly speaking. It is how to do .NET Core (since .NET 5) with Visual Studio.&lt;BR /&gt;&lt;BR /&gt;If you followed mentioned link to create a class library project, by default the project does not include references to UI libraries for Win Form and WPF UI. So, in the project if you right-click the project and select "Add New Item...", the new item dialog box would not show UI related items, nor the right-clicked context menu shows those. In order to use WinForm/WPF UI items in the class library, you need to edit the project file (*.csproj) by right click the project and select "Edit Project File". You need to add following &amp;lt;ItemGroup&amp;gt;:&lt;BR /&gt;&lt;BR /&gt;&amp;lt;ItemGroup&amp;gt;&lt;BR /&gt;&amp;lt;FrameworkReference Include="Microsoft.WindowsDesktop.App.WindowsForms" /&amp;gt;&lt;BR /&gt;&amp;lt;FrameworkReference Include="Microsoft.WindowsDesktop.App.WPF" /&amp;gt;&lt;BR /&gt;&amp;lt;/ItemGroup&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, in the &amp;lt;PropertyGroup&amp;gt;, add&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;PropertyGroup&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;...&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;UseWindowsForms&amp;gt;true&amp;lt;/UseWindowsForms&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;UseWPF&amp;gt;true&amp;lt;.UseWPF.&lt;/P&gt;
&lt;P&gt;&amp;lt;/PropertyGroup&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Note, these add both Windows Form and WPF references. you can choose only add one of them, if you wish.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;/P&gt;</description>
    <pubDate>Tue, 24 Dec 2024 17:44:01 GMT</pubDate>
    <dc:creator>norman.yuan</dc:creator>
    <dc:date>2024-12-24T17:44:01Z</dc:date>
    <item>
      <title>I can't get a basic C# .NET project WITH WINDOWS FORMS to work</title>
      <link>https://forums.autodesk.com/t5/net-forum/i-can-t-get-a-basic-c-net-project-with-windows-forms-to-work/m-p/13227852#M1396</link>
      <description>&lt;P&gt;I'm trying to create&amp;nbsp; a basic C# .NET project WITH WINDOWS FORMS to work, but nothing works.&amp;nbsp; For some reason, when you follow the the directions in&amp;nbsp;&lt;A href="https://help.autodesk.com/view/OARX/2025/ENU/?guid=GUID-43564EB9-F843-4771-823C-573495EE23E0" target="_blank"&gt;https://help.autodesk.com/view/OARX/2025/ENU/?guid=GUID-43564EB9-F843-4771-823C-573495EE23E0&lt;/A&gt;&amp;nbsp;which supposedly how to create a new project in .NET, there is no option int the project explorer to add a new form.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is something basic that should be covered.&amp;nbsp; .NET without forms is ridiculous.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2024 01:44:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/i-can-t-get-a-basic-c-net-project-with-windows-forms-to-work/m-p/13227852#M1396</guid>
      <dc:creator>ivanstarr3</dc:creator>
      <dc:date>2024-12-24T01:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: I can't get a basic C# .NET project WITH WINDOWS FORMS to work</title>
      <link>https://forums.autodesk.com/t5/net-forum/i-can-t-get-a-basic-c-net-project-with-windows-forms-to-work/m-p/13228125#M1397</link>
      <description>&lt;P&gt;This section talks about forms:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/OARX/2025/ENU/?guid=GUID-4AA04844-418B-4D47-9A07-2686624066E1" target="_blank"&gt;https://help.autodesk.com/view/OARX/2025/ENU/?guid=GUID-4AA04844-418B-4D47-9A07-2686624066E1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/OARX/2025/ENU/?guid=GUID-22402F0A-D7A3-4715-8998-06BAA5E0A232" target="_blank"&gt;https://help.autodesk.com/view/OARX/2025/ENU/?guid=GUID-22402F0A-D7A3-4715-8998-06BAA5E0A232&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2024 06:48:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/i-can-t-get-a-basic-c-net-project-with-windows-forms-to-work/m-p/13228125#M1397</guid>
      <dc:creator>Tomislav.Golubovic</dc:creator>
      <dc:date>2024-12-24T06:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: I can't get a basic C# .NET project WITH WINDOWS FORMS to work</title>
      <link>https://forums.autodesk.com/t5/net-forum/i-can-t-get-a-basic-c-net-project-with-windows-forms-to-work/m-p/13228639#M1398</link>
      <description>&lt;P&gt;It is not AutoCAD programming issue, strictly speaking. It is how to do .NET Core (since .NET 5) with Visual Studio.&lt;BR /&gt;&lt;BR /&gt;If you followed mentioned link to create a class library project, by default the project does not include references to UI libraries for Win Form and WPF UI. So, in the project if you right-click the project and select "Add New Item...", the new item dialog box would not show UI related items, nor the right-clicked context menu shows those. In order to use WinForm/WPF UI items in the class library, you need to edit the project file (*.csproj) by right click the project and select "Edit Project File". You need to add following &amp;lt;ItemGroup&amp;gt;:&lt;BR /&gt;&lt;BR /&gt;&amp;lt;ItemGroup&amp;gt;&lt;BR /&gt;&amp;lt;FrameworkReference Include="Microsoft.WindowsDesktop.App.WindowsForms" /&amp;gt;&lt;BR /&gt;&amp;lt;FrameworkReference Include="Microsoft.WindowsDesktop.App.WPF" /&amp;gt;&lt;BR /&gt;&amp;lt;/ItemGroup&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, in the &amp;lt;PropertyGroup&amp;gt;, add&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;PropertyGroup&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;...&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;UseWindowsForms&amp;gt;true&amp;lt;/UseWindowsForms&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;UseWPF&amp;gt;true&amp;lt;.UseWPF.&lt;/P&gt;
&lt;P&gt;&amp;lt;/PropertyGroup&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Note, these add both Windows Form and WPF references. you can choose only add one of them, if you wish.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2024 17:44:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/i-can-t-get-a-basic-c-net-project-with-windows-forms-to-work/m-p/13228639#M1398</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2024-12-24T17:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: I can't get a basic C# .NET project WITH WINDOWS FORMS to work</title>
      <link>https://forums.autodesk.com/t5/net-forum/i-can-t-get-a-basic-c-net-project-with-windows-forms-to-work/m-p/13229290#M1399</link>
      <description>&lt;P&gt;open your csproj file of your project ,add options like this to use windowsforms or wpf&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QQ20241225-153857.png" style="width: 981px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1449008i36E392B7E4D41B66/image-size/large?v=v2&amp;amp;px=999" role="button" title="QQ20241225-153857.png" alt="QQ20241225-153857.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Dec 2024 07:39:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/i-can-t-get-a-basic-c-net-project-with-windows-forms-to-work/m-p/13229290#M1399</guid>
      <dc:creator>DYH_</dc:creator>
      <dc:date>2024-12-25T07:39:28Z</dc:date>
    </item>
  </channel>
</rss>

