<?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: Main WPF project cannot find the WPF control Library dll unless netloaded by AutoCAD in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/main-wpf-project-cannot-find-the-wpf-control-library-dll-unless/m-p/10602875#M15435</link>
    <description>&lt;P&gt;do you know .bundle folder in acad concerned Auto-Load&lt;/P&gt;&lt;P&gt;if you so, this post will be useful for you.&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/net/dll-in-plugin-bundle-fail-to-be-autoloaded/td-p/8344111" target="_blank"&gt;https://forums.autodesk.com/t5/net/dll-in-plugin-bundle-fail-to-be-autoloaded/td-p/8344111&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;netload command is so hard to debug making program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Sep 2021 12:48:55 GMT</pubDate>
    <dc:creator>genosyde</dc:creator>
    <dc:date>2021-09-06T12:48:55Z</dc:date>
    <item>
      <title>Main WPF project cannot find the WPF control Library dll unless netloaded by AutoCAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/main-wpf-project-cannot-find-the-wpf-control-library-dll-unless/m-p/10580491#M15433</link>
      <description>&lt;P&gt;In order to reuse my wpf project, I have created a wpf control library. this compile to the first a.dll&lt;/P&gt;&lt;LI-CODE lang="general"&gt;&amp;lt;UserControl x:Class="Stair_Creator_Lib.stair_view"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:Stair_Creator_Lib"
             mc:Ignorable="d" 
             d:DesignHeight="210" d:DesignWidth="320"&amp;gt;
....
&amp;lt;/UserControl&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also implemented some button and AutoCAD login in this WPF control library.&lt;/P&gt;&lt;P&gt;Then In my main project, I have created a WPF window using the WPF control library&lt;/P&gt;&lt;LI-CODE lang="general"&gt;&amp;lt;Window x:Class="BGS_Acad_Tool.Views.stair_window"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:BGS_Acad_Tool.Views"
        xmlns:sta="clr-namespace:Stair_Creator_Lib;assembly=Stair_Creator_Lib"
        mc:Ignorable="d"
        Title="stair_window" Height="210" Width="320"&amp;gt;
    &amp;lt;sta:stair_view/&amp;gt;
&amp;lt;/Window&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;all the buttons/ textboxes are show correctly in the window. then in my main program, I try to create the window and show it.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;        [CommandMethod ("TEST")]
        public void cmdTest()
        {
            var win = new stair_window();
            Application.ShowModalWindow(Application.MainWindow.Handle, win);
        }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This complied to the second b.dll, I have referenced a.dll in the main function. Everything compiled and build correctly&lt;/P&gt;&lt;P&gt;When I run AutoCAD, if I only netload b.ll, and run the "TEST" command,&amp;nbsp; it throws an exception :&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Exception thrown: 'System.Windows.Markup.XamlParseException' in PresentationFramework.dll

Additional information: Could not load file or assembly 'Stair_Creator_Lib, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.&lt;/LI-CODE&gt;&lt;P&gt;If I netload a.dll and b.dll , it works as expected. Why this is the behavior? I have put both dlls in the same folder, why I still need to netload both of them in AutoCAD ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Aug 2021 06:22:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/main-wpf-project-cannot-find-the-wpf-control-library-dll-unless/m-p/10580491#M15433</guid>
      <dc:creator>ilovejingle</dc:creator>
      <dc:date>2021-08-28T06:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Main WPF project cannot find the WPF control Library dll unless netloaded by AutoCAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/main-wpf-project-cannot-find-the-wpf-control-library-dll-unless/m-p/10596248#M15434</link>
      <description>&lt;P&gt;Check this post here:&lt;/P&gt;&lt;P&gt;&lt;A title=".NET Plugin Loading Resources From External DLL" href="http://www.theswamp.org/index.php?topic=54708.msg592308#msg592308" target="_self"&gt;(theswamp.org) .NET Plugin Loading Resources From External DLL&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 10:46:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/main-wpf-project-cannot-find-the-wpf-control-library-dll-unless/m-p/10596248#M15434</guid>
      <dc:creator>jtoverka</dc:creator>
      <dc:date>2021-09-03T10:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: Main WPF project cannot find the WPF control Library dll unless netloaded by AutoCAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/main-wpf-project-cannot-find-the-wpf-control-library-dll-unless/m-p/10602875#M15435</link>
      <description>&lt;P&gt;do you know .bundle folder in acad concerned Auto-Load&lt;/P&gt;&lt;P&gt;if you so, this post will be useful for you.&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/net/dll-in-plugin-bundle-fail-to-be-autoloaded/td-p/8344111" target="_blank"&gt;https://forums.autodesk.com/t5/net/dll-in-plugin-bundle-fail-to-be-autoloaded/td-p/8344111&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;netload command is so hard to debug making program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Sep 2021 12:48:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/main-wpf-project-cannot-find-the-wpf-control-library-dll-unless/m-p/10602875#M15435</guid>
      <dc:creator>genosyde</dc:creator>
      <dc:date>2021-09-06T12:48:55Z</dc:date>
    </item>
  </channel>
</rss>

