EDIT: Please ignore this issue. My problem with setting up the CRM Performance Toolkit has been a result of me referencing the CRM 2013 SDK rather than the CRM 2015 SDK. Protip: even if you want to target a CRM 2013 deployment, you should reference the CRM 2015 SDK for the PowerShell script.
I have been trying to get the CRM Performance Toolkit to compile so that I can run it against a server running CRM 2016. Despite following the the instructions included with the solution, I have been unable to build the project out of box. Here are the steps I've been following:
Downloaded and installed Dynamics CRM 365 SDK.
Downloaded and installed Windows Identity Foundation SDK V3.5.
Verified that .NET Framework 4.5.2 is installed.
Downloaded and installed .NET Framework 4.5.2 Developer Pack.
Downloaded and installed Microsoft Exchange Web Services Managed API.
Downloaded and installed Microsoft Dynamics CRM Client 2016.
Unzipped contents of CRMToolkit.zip to designated folder on local D: drive in "development" folder (D:\development).
Ran PowerShell script in D:\development\CRMToolkit\Setup with following command (usernames, passwords, and server names obfuscated with '****' for security reasons):
.\ToolkitSetup.ps1 -adminName **** -adminPassword **** -domainName dev -crmServerName **** -sqlServerName **** -orgName **** -configSku Onprem -release CRM2015SP1 -crmSdkBinDir "D:\CRM2016SDK\SDK\Bin" -crmSDKReservedDllPath "D:\Program Files\Microsoft Dynamics CRM\CRMWeb\bin" -ssl $false
While the script successfully downloads the various WSDLs and copies over necessary DLLs, it fails to build the solution. I open up the solution in Visual Studio 2015 Enterprise to numerous errors and warnings.
I'm able to resolve one of the missing assembly references "Microsoft.Exchange.WebServices" by opening the Reference Manager for the project CRM_Perf_BenchMark and browsing for the DLL file on this path: "C:\Program Files\Microsoft\Exchange\Web Services\2.0\Microsoft.Exchange.WebServices.dll". After cleaning and building again, there are still 8 errros (and 118 Warnings). They are listed here, copied with column headers, from Visual Studio:
Severity Code Description Project File Line
Error CS0006 Metadata file 'D:\development\CRMToolkit\CRM_Perf_Toolkit\CRM_Perf_BenchMark\bin\CRM2015SP1\CRM_Perf_BenchMark.dll' could not be found Outlook_Perf_Benchmark D:\development\CRMToolkit\CRM_Perf_Toolkit\Outlook_Perf_Benchmark\CSC 1
Error CS0006 Metadata file 'D:\development\CRMToolkit\CRM_Perf_Toolkit\CRM_Perf_BenchMark\bin\CRM2015SP1\CRM_Perf_BenchMark.dll' could not be found EMDBLoader D:\development\CRMToolkit\CRM_Perf_Toolkit\EMDBLoader\CSC 1
Error CS1061 'NavigateToNextEntityRequest' does not contain a definition for 'NewActiveStageId' and no extension method 'NewActiveStageId' accepting a first argument of type 'NavigateToNextEntityRequest' could be found (are you missing a using directive or an assembly reference?) CRM_Perf_BenchMark D:\development\CRMToolkit\CRM_Perf_Toolkit\CRM_Perf_BenchMark\UnitTests\GeneralUnitTests\NavigateBusinessProcessFlowUnitTest.cs 60
Error CS1061 'NavigateToNextEntityRequest' does not contain a definition for 'NewTraversedPath' and no extension method 'NewTraversedPath' accepting a first argument of type 'NavigateToNextEntityRequest' could be found (are you missing a using directive or an assembly reference?) CRM_Perf_BenchMark D:\development\CRMToolkit\CRM_Perf_Toolkit\CRM_Perf_BenchMark\UnitTests\GeneralUnitTests\NavigateBusinessProcessFlowUnitTest.cs 61
Error CS0246 The type or namespace name 'AddDynamicPropertyRequest' could not be found (are you missing a using directive or an assembly reference?) DbPopulator D:\development\CRMToolkit\CRM_Perf_Toolkit\dbPopulator\CrmEntityTemplate.cs 2548
Error CS0246 The type or namespace name 'AddDynamicPropertyRequest' could not be found (are you missing a using directive or an assembly reference?) DbPopulator D:\development\CRMToolkit\CRM_Perf_Toolkit\dbPopulator\CrmEntityTemplate.cs 2548
Error CS0246 The type or namespace name 'AddDynamicPropertyResponse' could not be found (are you missing a using directive or an assembly reference?) DbPopulator D:\development\CRMToolkit\CRM_Perf_Toolkit\dbPopulator\CrmEntityTemplate.cs 2553
Error CS0246 The type or namespace name 'AddDynamicPropertyResponse' could not be found (are you missing a using directive or an assembly reference?) DbPopulator D:\development\CRMToolkit\CRM_Perf_Toolkit\dbPopulator\CrmEntityTemplate.cs 2553
I'm including two screenshots of Visual Studio opened to some of these errors to give you an idea of the issues I'm dealing with. I would highly appreciate anyone providing ideas of what I can do about this. Thanks!