Debugging CRM 4.0 Plugins in Visual Studio 2010

Hello,

Spent a bit of time today pulling my hair out trying to develop (and debug) a CRM 4.0 plugin in Visual Studio 2010.

Here’s some cheat-sheet notes

  • Target Framework 3.5 – The IDE won’t even allow you to add the references to the SDK libraries unless it’s 3.0 or above.
  • Once you have the dll and pdb disk deployed for your plugin and you wish to attach to the process make sure that you change the code type from automatic to Managed (v2.0,v1.1,v1.0) and T-SQL.

The second one there was the sticking point since it’s usually set to automatic which will target 4.0 managed.

Hopefully this saves someone else some valuable time!

Leave a Reply

Your email address will not be published. Required fields are marked *