<?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: The problem of fakes generation for AcDbMng.dll and AcMng.dll assemblies in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/the-problem-of-fakes-generation-for-acdbmng-dll-and-acmng-dll/m-p/5969962#M37592</link>
    <description>&lt;P&gt;Maybe Autodesk uses own interfaces with the same names and I am to add some additional assemblies of AutoCAD for &lt;EM&gt;Microsoft Fakes Framework&lt;/EM&gt; using?&lt;BR /&gt;&lt;BR /&gt;If I generate the fake only for &lt;EM&gt;AcMng.dll&lt;/EM&gt; then I haven't errors. But if I generate the fake also for &lt;EM&gt;AcDbMng.dll&lt;/EM&gt; then I get these problems. Also, at this case in the &lt;EM&gt;Solution Explorer&lt;/EM&gt; I see the &lt;EM&gt;AcMgd.17.2.0.0.Fakes&lt;/EM&gt; appeared, but I don't see something like &lt;EM&gt;AcDbMgd.17.2.0.0.Fakes&lt;/EM&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/209217iEDB453186649D914/image-size/original?v=mpbl-1&amp;amp;px=-1" alt="0.png" title="0.png" border="0" /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Jan 2016 19:32:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-01-01T19:32:33Z</dc:date>
    <item>
      <title>The problem of fakes generation for AcDbMng.dll and AcMng.dll assemblies</title>
      <link>https://forums.autodesk.com/t5/net-forum/the-problem-of-fakes-generation-for-acdbmng-dll-and-acmng-dll/m-p/5969942#M37591</link>
      <description>&lt;P&gt;MS Visual Studio 2015 Enterprise&lt;BR /&gt;AutoCAD 2009 SP3&lt;BR /&gt;&lt;BR /&gt;I am learning Microsoft Fakes Framework. I create new Unit Test Project, add AcDbMng.dll and AcMng.dll assemblies of AutoCAD 2009 into my project, and through their context menu call the "Add Fakes Assembly". Now I launch my project building and get 128 errors... For example:&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;&amp;gt; It wasn't succeeded to find type or a name of a name space of "ICollection" (perhaps, there is no directive of using or an assembly reference). [c:\users\andrey\documents\visual studio 2015\Projects\msfakes\obj\Debug\Fakes\adm\f.csproj] msfakes c:\users\andrey\documents\visual studio 2015\Projects\msfakes\f.cs 206092&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;&amp;gt; It wasn't succeeded to find type or a name of a name space of "IDictionary" (perhaps, there is no directive of using or an assembly reference). [c:\users\andrey\documents\visual studio 2015\Projects\msfakes\obj\Debug\Fakes\adm\f.csproj] msfakes c:\users\andrey\documents\visual studio 2015\Projects\msfakes\f.cs 206119&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;&amp;gt; The modifier "override" is not valid for this item. [c: \ users \ andrey \ documents \ visual studio 2015 \ Projects \ msfakes \ obj \ Debug \ Fakes \ adm \ f.csproj] msfakes c: \ users \ andrey \ documents \ visual studio 2015 \ Projects \ msfakes \ f. cs 206119&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;Such error messages are not clear for me. I tried to change the target .Net Framework platform: .Net 4.6 and .Net 3.5, but I get the same messages.&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;&amp;gt; ICollection, IDictionary, modifier "override"... &lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I don't understand, what relation they have to these assemblies, because they are defined in the platform assemblies instead of AcDbMng.dll and AcMng.dll.&lt;BR /&gt;&lt;BR /&gt;Anybody has idea about such behaviour? How can I fix it?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jan 2016 18:39:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/the-problem-of-fakes-generation-for-acdbmng-dll-and-acmng-dll/m-p/5969942#M37591</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-01T18:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: The problem of fakes generation for AcDbMng.dll and AcMng.dll assemblies</title>
      <link>https://forums.autodesk.com/t5/net-forum/the-problem-of-fakes-generation-for-acdbmng-dll-and-acmng-dll/m-p/5969962#M37592</link>
      <description>&lt;P&gt;Maybe Autodesk uses own interfaces with the same names and I am to add some additional assemblies of AutoCAD for &lt;EM&gt;Microsoft Fakes Framework&lt;/EM&gt; using?&lt;BR /&gt;&lt;BR /&gt;If I generate the fake only for &lt;EM&gt;AcMng.dll&lt;/EM&gt; then I haven't errors. But if I generate the fake also for &lt;EM&gt;AcDbMng.dll&lt;/EM&gt; then I get these problems. Also, at this case in the &lt;EM&gt;Solution Explorer&lt;/EM&gt; I see the &lt;EM&gt;AcMgd.17.2.0.0.Fakes&lt;/EM&gt; appeared, but I don't see something like &lt;EM&gt;AcDbMgd.17.2.0.0.Fakes&lt;/EM&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/209217iEDB453186649D914/image-size/original?v=mpbl-1&amp;amp;px=-1" alt="0.png" title="0.png" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jan 2016 19:32:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/the-problem-of-fakes-generation-for-acdbmng-dll-and-acmng-dll/m-p/5969962#M37592</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-01T19:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: The problem of fakes generation for AcDbMng.dll and AcMng.dll assemblies</title>
      <link>https://forums.autodesk.com/t5/net-forum/the-problem-of-fakes-generation-for-acdbmng-dll-and-acmng-dll/m-p/5970175#M37593</link>
      <description>&lt;P&gt;This problem can be solved through the `AcDbMgd.fakes` file editing. For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;Fakes xmlns="http://schemas.microsoft.com/fakes/2011/"&amp;gt;
  &amp;lt;Assembly Name="AcDbMgd" Version="17.2.0.0"/&amp;gt;
  &amp;lt;StubGeneration&amp;gt;
    &amp;lt;Clear/&amp;gt;
  &amp;lt;/StubGeneration&amp;gt;
  &amp;lt;ShimGeneration&amp;gt;
    &amp;lt;Clear/&amp;gt;
    &amp;lt;Add Namespace="Autodesk.AutoCAD.DatabaseServices"/&amp;gt;
  &amp;lt;/ShimGeneration&amp;gt;
&amp;lt;/Fakes&amp;gt;&lt;/PRE&gt;&lt;P&gt;More detailed info about the `fakes`-format is &lt;A href="https://msdn.microsoft.com/en-us/library/hh708916.aspx" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Jan 2016 09:30:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/the-problem-of-fakes-generation-for-acdbmng-dll-and-acmng-dll/m-p/5970175#M37593</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-02T09:30:27Z</dc:date>
    </item>
  </channel>
</rss>

