<?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: Getting existing .Net tools up and running in 2025 in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/getting-existing-net-tools-up-and-running-in-2025/m-p/12941474#M3867</link>
    <description>&lt;P&gt;Ok, after some back and forth and the holiday period, I finally got my project up and running.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;However, I still have a problem in my source code that I need help with (even if it might not fit in here)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have always used a file selection using Windows.Forms.SaveFileDialog. This type does not seem to be supported anymore, even if I try to include System_Windows_Forms as COM.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim fileDialog As New Windows.Forms.SaveFileDialog&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 06 Aug 2024 07:17:06 GMT</pubDate>
    <dc:creator>glandorf</dc:creator>
    <dc:date>2024-08-06T07:17:06Z</dc:date>
    <item>
      <title>Getting existing .Net tools up and running in 2025</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-existing-net-tools-up-and-running-in-2025/m-p/12790492#M3864</link>
      <description>&lt;P&gt;Originally, I had already programmed some tools for AutoCAD 2010 in Visual Basic .Net and migrated them to the latest version every few versions over the years. However, I haven't really followed the development of programming for AutoCAD.&lt;/P&gt;&lt;P&gt;The tools that I programmed made our work easier in many cases. I'm probably not a particularly good programmer, but somehow I usually managed it. With the current version for 2025, I can only just get the &lt;A href="https://help.autodesk.com/view/OARX/2025/ENU/?guid=GUID-E0EA91B2-E833-477C-9F4F-B900E02891D5" target="_blank" rel="noopener"&gt;example from Autodesk&lt;/A&gt; to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had always used the wizard for the respective versions of Visual Studio, but apparently it no longer exists. In the past, the wizard usually only required me to enter the program path to the AutoCAD installation and I was able to start and debug AutoCAD directly from Visual Studio. How does it work with the 2025 version?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I now click on debug in Visual Studio, I get the following message (translated from German)&lt;BR /&gt;“A project with the output type ‘Class library’ cannot be started directly. To debug the project, add an executable project to this solution ...”&lt;/P&gt;&lt;P&gt;Somewhere I have to enter the path to acad.exe but I can't find it in Visual Studio 2022 (version 17.10.0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 15:40:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-existing-net-tools-up-and-running-in-2025/m-p/12790492#M3864</guid>
      <dc:creator>glandorf</dc:creator>
      <dc:date>2024-05-22T15:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Getting existing .Net tools up and running in 2025</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-existing-net-tools-up-and-running-in-2025/m-p/12791804#M3865</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You do not need any wizard. These wizards are mainly project templates and it is quite easy to create your own project templates for AutoCAD from a working project (see &lt;A href="https://learn.microsoft.com/en-us/visualstudio/ide/how-to-create-project-templates?view=vs-2022" target="_blank" rel="noopener"&gt;this topic&lt;/A&gt;). You can also start from these &lt;A href="https://github.com/gileCAD/AutoCAD-Csharp-Project-Template" target="_blank" rel="noopener"&gt;editable C# project templates&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Concerning AutoCAD 2025, there is a break in compatibility for .NET projects due to the fact that the .NET API now targets .NET 8.0 instead of the .NET Framework. You can try migrating your projects by following the step-by-step instructions in the attached files of &lt;A href="https://forums.autodesk.com/t5/net/migration-guide-net-framework-to-autocad-2025-net-8-0/m-p/12676274" target="_blank" rel="noopener"&gt;this topic&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 04:46:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-existing-net-tools-up-and-running-in-2025/m-p/12791804#M3865</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2024-05-23T04:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Getting existing .Net tools up and running in 2025</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-existing-net-tools-up-and-running-in-2025/m-p/12795727#M3866</link>
      <description>&lt;P&gt;For setting the startup options, you can follow the instructions given &lt;A href="https://learn.microsoft.com/en-us/answers/questions/709798/where-is-debug-start-action-options-in-a-c-dll-pro" target="_blank" rel="noopener"&gt;here&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 14:32:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-existing-net-tools-up-and-running-in-2025/m-p/12795727#M3866</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2024-05-24T14:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Getting existing .Net tools up and running in 2025</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-existing-net-tools-up-and-running-in-2025/m-p/12941474#M3867</link>
      <description>&lt;P&gt;Ok, after some back and forth and the holiday period, I finally got my project up and running.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;However, I still have a problem in my source code that I need help with (even if it might not fit in here)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have always used a file selection using Windows.Forms.SaveFileDialog. This type does not seem to be supported anymore, even if I try to include System_Windows_Forms as COM.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim fileDialog As New Windows.Forms.SaveFileDialog&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 06 Aug 2024 07:17:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-existing-net-tools-up-and-running-in-2025/m-p/12941474#M3867</guid>
      <dc:creator>glandorf</dc:creator>
      <dc:date>2024-08-06T07:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Getting existing .Net tools up and running in 2025</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-existing-net-tools-up-and-running-in-2025/m-p/12942178#M3868</link>
      <description>&lt;P&gt;Not sure what do you mean by "&lt;FONT color="#0000FF"&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;try to include System_Windows_Forms as COM&lt;/EM&gt;&lt;/FONT&gt;...&lt;/SPAN&gt;" (how?). But the code should be:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Dim fileDialog As New System.Windows.Forms.SaveFileDialog&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure your project file has this:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;	&amp;lt;ItemGroup&amp;gt;
		&amp;lt;FrameworkReference Include="Microsoft.WindowsDesktop.App.WindowsForms" /&amp;gt;
    &amp;lt;/ItemGroup&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;And, you can see in the Solution Explorer window:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="normanyuan_0-1722953150716.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1394868i37826F51D2CB9FE2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="normanyuan_0-1722953150716.png" alt="normanyuan_0-1722953150716.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 14:06:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-existing-net-tools-up-and-running-in-2025/m-p/12942178#M3868</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2024-08-06T14:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Getting existing .Net tools up and running in 2025</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-existing-net-tools-up-and-running-in-2025/m-p/12942227#M3869</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1650171"&gt;@glandorf&lt;/a&gt;&amp;nbsp; a écrit&amp;nbsp;:&lt;BR /&gt;
&lt;P&gt;I have always used a file selection using Windows.Forms.SaveFileDialog. This type does not seem to be supported anymore, even if I try to include System_Windows_Forms as COM.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Dim fileDialog As New Windows.Forms.SaveFileDialog&lt;/LI-CODE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The first "PropertyGroup" element of your project SDK have to contain this element:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;UseWindowsForms&amp;gt;true&amp;lt;/UseWindowsForms&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;So that your class can "import" System.Windows.Forms and the class should be decored with the SupportedOSPlatform attribute:&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;[SupportedOSPlatform("windows")]&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS: this works with C#, I do not know about VB...&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 14:29:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-existing-net-tools-up-and-running-in-2025/m-p/12942227#M3869</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2024-08-06T14:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Getting existing .Net tools up and running in 2025</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-existing-net-tools-up-and-running-in-2025/m-p/12942719#M3870</link>
      <description>&lt;P&gt;Thank you very much,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had already made the entries mentioned in the project file and was in despair.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I only failed because of the "system". Previously I was able to write Windows.Forms.SaveFileDialog. Now it must be &lt;STRONG&gt;System.&lt;/STRONG&gt;Windows.Forms.SaveFileDialogue&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 18:43:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-existing-net-tools-up-and-running-in-2025/m-p/12942719#M3870</guid>
      <dc:creator>glandorf</dc:creator>
      <dc:date>2024-08-06T18:43:00Z</dc:date>
    </item>
  </channel>
</rss>

