I ran into this problem as well and found it much more difficult to debug in visual studio than VBA. I agree i found this information really hard to find and in fact i didnt. I had to get a developer friend to help me.
Firstly using the Post Buld events is the proper way of doing it. This is more a hack that you would need to fix before release.
In the project properties edit the compile build output path to be bin\debug and the configuration to be Debug.
In the debug menu change the start external program to be C:\Program Files\Autodesk\Inventor <version>\Bin\Inventor.exe
In windows you should end up with the .dll and the .pdb in the same folder namely bin\debug. My memory eludes me but i think the first two settings should make this happen correctly.
As Boorda said make sure the assembly tag is correct pointing to where this .dll is created in your VS projects folder.
You only need to copy the .addin to the correct place, the dll stays in the debug folder for now.
When you launch the debugger in VS it should now connect correctly.
When your addin is finished one of the last steps would be to change the assembly tag to be the final location of the dll and rebuild. When distributing it the .dll and the addin will be required.
Craig
Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.
---------------------------------------------------------------------------------------------------------------------------
Inventor 2010 Certified Professional
Currently using 2023 Pro