<?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: Autoloader in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/autoloader/m-p/3136778#M59565</link>
    <description>&lt;P&gt;My project refers to a dwg file and several images which I would like to include in the bundle copied to the&amp;nbsp;ApplicationPlugins﻿ folder.&lt;/P&gt;&lt;P&gt;I just can't work out how &amp;nbsp;to locate them. I get an error if I use:&lt;/P&gt;&lt;P&gt;PictureBox1.Image = System.Drawing.Bitmap.FromFile("../Images/test.png")&amp;nbsp;﻿&lt;/P&gt;&lt;P&gt;Possibly just something with the syntax i'm using.&lt;/P&gt;</description>
    <pubDate>Thu, 25 Aug 2011 20:52:56 GMT</pubDate>
    <dc:creator>SRSDS</dc:creator>
    <dc:date>2011-08-25T20:52:56Z</dc:date>
    <item>
      <title>Autoloader</title>
      <link>https://forums.autodesk.com/t5/net-forum/autoloader/m-p/3136544#M59561</link>
      <description>&lt;P&gt;I'm trying to get the autoloader working.&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://download.autodesk.com/media/adn/ADN_DevCast_Episode_6/ADN_DevCast_Episode_6.html"&gt;http://download.autodesk.com/media/adn/ADN_DevCast_Episode_6/ADN_DevCast_Episode_6.html&lt;/A&gt;﻿﻿&lt;/P&gt;&lt;P&gt;Looks like it's a 'fairly' new addition and dead simple but..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All I need to do is add a single resource folder in the bundle and to the xml file to be able to access the files in the dll.&lt;/P&gt;&lt;P&gt;Does anyone know how to modify the xml file and refer to this folder in the dll?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="utf-8" ?&amp;gt;
&amp;lt;ApplicationPackage SchemaVersion="1.0" &amp;gt;
  &amp;lt;Components&amp;gt;
    &amp;lt;ComponentEntry
      AppName="DOTNETTEST2"
      ModuleName="./Contents/AutoloaderDotNetSample2.dll"
      LoadOnCommandInvocation="True"
    &amp;gt;
      &amp;lt;Commands GroupName="DevDays2010"&amp;gt;
        &amp;lt;Command Global="DOTNETTEST2" Local="DOTNETTEST2" /&amp;gt;
      &amp;lt;/Commands&amp;gt;
    &amp;lt;/ComponentEntry&amp;gt;
  &amp;lt;/Components&amp;gt;
&amp;lt;/ApplicationPackage&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I can't remember where I got the resource files from and&amp;nbsp;I can't find many posts on this.&lt;/P&gt;&lt;P&gt;Here is the DevCast for creating the installer.&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://download.autodesk.com/media/adn/DevCasts/ADN_DevCast_Episode_7.html"&gt;http://download.autodesk.com/media/adn/DevCasts/ADN_DevCast_Episode_7.html&lt;/A&gt;﻿&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also is there a way to change the path depending on whether or not you are debugging?&lt;/P&gt;&lt;P&gt;In VB6 I used a function&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Public Function IsIDE() As Boolean 'Returns boolean value of True if not compiled
       IsIDE = (App.LogMode = 0)
End Function&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2011 18:38:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autoloader/m-p/3136544#M59561</guid>
      <dc:creator>SRSDS</dc:creator>
      <dc:date>2011-08-25T18:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Autoloader</title>
      <link>https://forums.autodesk.com/t5/net-forum/autoloader/m-p/3136700#M59562</link>
      <description>&lt;P&gt;This new Autoloader is great but can be quite picky when not done right and there is no downloadable Schema yet available.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have found that the online help was useful in knowing what Elements were required and what attribute properties were available. You can find the help here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Schema breakdown&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://exchange.autodesk.com/autocad/enu/online-help/search#WS1a9193826455f5ff-4fe3487312ce8a8dba5-7feb.htm"&gt;http://exchange.autodesk.com/autocad/enu/online-help/search#WS1a9193826455f5ff-4fe3487312ce8a8dba5-7feb.htm&lt;/A&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.bundle folder example&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://exchange.autodesk.com/autocad/enu/online-help/search#WS73099cc142f4875533992bfb12ce8a5f915-7e45.htm"&gt;http://exchange.autodesk.com/autocad/enu/online-help/search#WS73099cc142f4875533992bfb12ce8a5f915-7e45.htm&lt;/A&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2011 20:12:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autoloader/m-p/3136700#M59562</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-25T20:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Autoloader</title>
      <link>https://forums.autodesk.com/t5/net-forum/autoloader/m-p/3136708#M59563</link>
      <description>&lt;P&gt;Those ADn videos are good also look in 2012 help files here&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://exchange.autodesk.com/autocad/enu/online-help/browse#WS1a9193826455f5ff-4fe3487312ce8a8dba5-7feb.htm"&gt;http://exchange.autodesk.com/autocad/enu/online-help/browse#WS1a9193826455f5ff-4fe3487312ce8a8dba5-7feb.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2011 20:15:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autoloader/m-p/3136708#M59563</guid>
      <dc:creator>jeff</dc:creator>
      <dc:date>2011-08-25T20:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Autoloader</title>
      <link>https://forums.autodesk.com/t5/net-forum/autoloader/m-p/3136762#M59564</link>
      <description>&lt;P&gt;Its not clear to me what you're trying to do. If you're trying to access a resource DLL from your plug-in DLL, then you should use relative paths in your plug-in code to refer to the location of the resource DLL. If for some reason you need to know at runtime the exact path to your plug-in DLL, then the .NET Assembly class provides a function to return this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you give more detail of what you're trying to do?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your second question, the autoloader doesn't differentiate between 'debug' and 'release'. Maybe you could set up a post-build action to copy a different PackageContents.xml file into the bundle with your built DLL depending on the build configuration being used?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2011 20:40:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autoloader/m-p/3136762#M59564</guid>
      <dc:creator>StephenPreston</dc:creator>
      <dc:date>2011-08-25T20:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Autoloader</title>
      <link>https://forums.autodesk.com/t5/net-forum/autoloader/m-p/3136778#M59565</link>
      <description>&lt;P&gt;My project refers to a dwg file and several images which I would like to include in the bundle copied to the&amp;nbsp;ApplicationPlugins﻿ folder.&lt;/P&gt;&lt;P&gt;I just can't work out how &amp;nbsp;to locate them. I get an error if I use:&lt;/P&gt;&lt;P&gt;PictureBox1.Image = System.Drawing.Bitmap.FromFile("../Images/test.png")&amp;nbsp;﻿&lt;/P&gt;&lt;P&gt;Possibly just something with the syntax i'm using.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2011 20:52:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autoloader/m-p/3136778#M59565</guid>
      <dc:creator>SRSDS</dc:creator>
      <dc:date>2011-08-25T20:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Autoloader</title>
      <link>https://forums.autodesk.com/t5/net-forum/autoloader/m-p/3136906#M59566</link>
      <description>&lt;P&gt;If Images is a subfolder to your plug-in DLL location is, isn't the path just "Images\test.png"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or&amp;nbsp;you can always create an absolute path if you don't trust relative paths, like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dim strPath As String = Assembly.GetExecutingAssembly.Location &amp;amp; "\Images\test.png"&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2011 23:05:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autoloader/m-p/3136906#M59566</guid>
      <dc:creator>StephenPreston</dc:creator>
      <dc:date>2011-08-25T23:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Autoloader</title>
      <link>https://forums.autodesk.com/t5/net-forum/autoloader/m-p/3137490#M59567</link>
      <description>&lt;P&gt;That's what I would expected but I've tried a few locations and keep getting file a not found exception.&lt;/P&gt;&lt;P&gt;Assembly.GetExecutingAssembly.Location﻿ is new to me and solved it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I needed to strip the filename out of it. Maybe that's was part of the problem without specifying the full path.&lt;/P&gt;&lt;P&gt;Doesn't matter. Fixed. Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Imports System.Reflection&lt;/P&gt;&lt;P&gt;Imports System.IO﻿&lt;/P&gt;&lt;P&gt;Path.GetDirectoryName(Assembly.GetExecutingAssembly.Location) &amp;amp; "\Resources\test.png"﻿&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2011 14:21:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autoloader/m-p/3137490#M59567</guid>
      <dc:creator>SRSDS</dc:creator>
      <dc:date>2011-08-26T14:21:25Z</dc:date>
    </item>
  </channel>
</rss>

