Quantcast
Channel: All Revit API Forum posts
Viewing all articles
Browse latest Browse all 66683

Unable to debug Simple Revit 2019 Plugin with VS 2017

$
0
0

I am using Visual Studio 2017 and Revit 2019. I have created a very simple external command addin:

 

using Autodesk.Revit.Attributes;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;

namespace Test
{
[Transaction(TransactionMode.Manual)]
[Regeneration(RegenerationOption.Manual)]
public class App : IExternalCommand

{

public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
{
TaskDialog.Show("Revit", "Hello World");
return Result.Succeeded;
}
}
}

 

 

And here is the addin manifest:

 

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<RevitAddIns>
<AddIn Type="Command">
<Name>Test</Name>
<Assembly>C:\Users\[***]\bin\Debug\netstandard2.0\Test.dll</Assembly>
<AddInId>7385239d-f9f4-46aa-983a-ec84aac49f15</AddInId>
<FullClassName>Test.App</FullClassName>
<VendorId>None</VendorId>
<VendorDescription>None</VendorDescription>
</AddIn>
</RevitAddIns>

 

 

The plugin works as expected with no issue, but I cannot get the debugger to stop on break points. 

 

I have added "C:\Program Files\Autodesk\Revit 2019\Revit.exe" as the executable under : Project> properties > Debug > Executable

 

I have also enabled "Use Managed Compatibility Mode" in Tools > Options > Debugging > General

 

When I start debugging (Debug > 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.

 

Thanks,

 

Ehsan

 

 


Viewing all articles
Browse latest Browse all 66683

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>