If you’re developing custom hosted controls, the easiest way to ensure that the version is correct and all dependencies are included is to set up USD program folder as the output for your build process.
It works but sooner than you know, the folder is a mess, versions of dependent assemblies are out of sync with production which makes it real fun to troubleshoot, and the real issues begin when you have more than one control to develop or when you need to reproduce a production issue.
Unless you simply create a copy of your USD program folder because USD really does not care where does it run from and has no location dependencies.
- Copy the entire USD program folder (default C:\Program Files\Microsoft Dynamics CRM USD\USD) into another location on your disk (e.g. c:\dev\usd).
- Set this folder as the destination for your program output and set UnifiedServiceDesk.exe as the start program.
- Set the breakpoints in your hosted control code and fire away.
- Compare this folder with the original one to build a baseline for what needs to be included for your control to work. That will help you to build the customization file for your distribution.
- Need quickly to test something or develop completely independent control? Just create another copy of the USD folder!