<?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 Unable to debug Simple Revit 2019 Plugin with VS 2017 in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/unable-to-debug-simple-revit-2019-plugin-with-vs-2017/m-p/8453985#M45645</link>
    <description>&lt;P&gt;I am using Visual Studio 2017 and Revit 2019. I have created a very simple external command addin:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;using Autodesk.Revit.Attributes;&lt;BR /&gt;using Autodesk.Revit.DB;&lt;BR /&gt;using Autodesk.Revit.UI;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;namespace Test&lt;BR /&gt;{&lt;BR /&gt; [Transaction(TransactionMode.Manual)]&lt;BR /&gt; [Regeneration(RegenerationOption.Manual)]&lt;BR /&gt; public class App : IExternalCommand&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt;&lt;BR /&gt; public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)&lt;BR /&gt; {&lt;BR /&gt; TaskDialog.Show("Revit", "Hello World");&lt;BR /&gt; return Result.Succeeded;&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And here is the addin manifest:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;?xml version="1.0" encoding="utf-8" standalone="no"?&amp;gt;&lt;BR /&gt;&amp;lt;RevitAddIns&amp;gt;&lt;BR /&gt; &amp;lt;AddIn Type="Command"&amp;gt;&lt;BR /&gt; &amp;lt;Name&amp;gt;Test&amp;lt;/Name&amp;gt;&lt;BR /&gt; &amp;lt;Assembly&amp;gt;C:\Users\[***]\bin\Debug\netstandard2.0\Test.dll&amp;lt;/Assembly&amp;gt;&lt;BR /&gt; &amp;lt;AddInId&amp;gt;7385239d-f9f4-46aa-983a-ec84aac49f15&amp;lt;/AddInId&amp;gt;&lt;BR /&gt; &amp;lt;FullClassName&amp;gt;Test.App&amp;lt;/FullClassName&amp;gt;&lt;BR /&gt; &amp;lt;VendorId&amp;gt;None&amp;lt;/VendorId&amp;gt;&lt;BR /&gt; &amp;lt;VendorDescription&amp;gt;None&amp;lt;/VendorDescription&amp;gt;&lt;BR /&gt; &amp;lt;/AddIn&amp;gt;&lt;BR /&gt;&amp;lt;/RevitAddIns&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The plugin works as expected with no issue, but I cannot get the debugger to stop on break points.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have added "C:\Program Files\Autodesk\Revit 2019\Revit.exe" as the executable under : Project&amp;gt; properties &amp;gt; Debug &amp;gt; Executable&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have also enabled "Use Managed Compatibility Mode" in Tools &amp;gt; Options &amp;gt; Debugging &amp;gt; General&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I start debugging (Debug &amp;gt; Start Debugging) it fires up Revit, and my command is there, but when I click on the command, it doesn't stop at the break points. I am not sure if it's a known issue with Revit 2019 and VS 2017, or I am missing a step. Any help is much appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ehsan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 08 Dec 2018 00:29:14 GMT</pubDate>
    <dc:creator>ebarMLN7G</dc:creator>
    <dc:date>2018-12-08T00:29:14Z</dc:date>
    <item>
      <title>Unable to debug Simple Revit 2019 Plugin with VS 2017</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/unable-to-debug-simple-revit-2019-plugin-with-vs-2017/m-p/8453985#M45645</link>
      <description>&lt;P&gt;I am using Visual Studio 2017 and Revit 2019. I have created a very simple external command addin:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;using Autodesk.Revit.Attributes;&lt;BR /&gt;using Autodesk.Revit.DB;&lt;BR /&gt;using Autodesk.Revit.UI;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;namespace Test&lt;BR /&gt;{&lt;BR /&gt; [Transaction(TransactionMode.Manual)]&lt;BR /&gt; [Regeneration(RegenerationOption.Manual)]&lt;BR /&gt; public class App : IExternalCommand&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt;&lt;BR /&gt; public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)&lt;BR /&gt; {&lt;BR /&gt; TaskDialog.Show("Revit", "Hello World");&lt;BR /&gt; return Result.Succeeded;&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And here is the addin manifest:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;?xml version="1.0" encoding="utf-8" standalone="no"?&amp;gt;&lt;BR /&gt;&amp;lt;RevitAddIns&amp;gt;&lt;BR /&gt; &amp;lt;AddIn Type="Command"&amp;gt;&lt;BR /&gt; &amp;lt;Name&amp;gt;Test&amp;lt;/Name&amp;gt;&lt;BR /&gt; &amp;lt;Assembly&amp;gt;C:\Users\[***]\bin\Debug\netstandard2.0\Test.dll&amp;lt;/Assembly&amp;gt;&lt;BR /&gt; &amp;lt;AddInId&amp;gt;7385239d-f9f4-46aa-983a-ec84aac49f15&amp;lt;/AddInId&amp;gt;&lt;BR /&gt; &amp;lt;FullClassName&amp;gt;Test.App&amp;lt;/FullClassName&amp;gt;&lt;BR /&gt; &amp;lt;VendorId&amp;gt;None&amp;lt;/VendorId&amp;gt;&lt;BR /&gt; &amp;lt;VendorDescription&amp;gt;None&amp;lt;/VendorDescription&amp;gt;&lt;BR /&gt; &amp;lt;/AddIn&amp;gt;&lt;BR /&gt;&amp;lt;/RevitAddIns&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The plugin works as expected with no issue, but I cannot get the debugger to stop on break points.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have added "C:\Program Files\Autodesk\Revit 2019\Revit.exe" as the executable under : Project&amp;gt; properties &amp;gt; Debug &amp;gt; Executable&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have also enabled "Use Managed Compatibility Mode" in Tools &amp;gt; Options &amp;gt; Debugging &amp;gt; General&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I start debugging (Debug &amp;gt; Start Debugging) it fires up Revit, and my command is there, but when I click on the command, it doesn't stop at the break points. I am not sure if it's a known issue with Revit 2019 and VS 2017, or I am missing a step. Any help is much appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ehsan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Dec 2018 00:29:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/unable-to-debug-simple-revit-2019-plugin-with-vs-2017/m-p/8453985#M45645</guid>
      <dc:creator>ebarMLN7G</dc:creator>
      <dc:date>2018-12-08T00:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to debug Simple Revit 2019 Plugin with VS 2017</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/unable-to-debug-simple-revit-2019-plugin-with-vs-2017/m-p/8456086#M45646</link>
      <description>&lt;P&gt;I usually use "Debug" -&amp;gt; "Attach to process" to debug Revit addin, and everything seems fine, but you just need to select the Managed code as attached, you can try it and let me know the result.&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2018-12-10 at 1.51.16 PM.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/579289i39A64624D17E21A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-12-10 at 1.51.16 PM.png" alt="Screen Shot 2018-12-10 at 1.51.16 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 06:00:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/unable-to-debug-simple-revit-2019-plugin-with-vs-2017/m-p/8456086#M45646</guid>
      <dc:creator>zhong_wu</dc:creator>
      <dc:date>2018-12-10T06:00:16Z</dc:date>
    </item>
  </channel>
</rss>

