For development purposes on CRM Online and more important the ability to debug I want to work with the CRM development toolkit. I experience some problems and I hope anyone can give me some guidance?
Specs
- Working with Visual Studio Community (VS 2013)
- Developer toolkit CRM 2013 (because 2015 is not yet available as far as I am aware)
- CRM 2015 Online (read that it should also work with the CRM 2013 developer toolkit)
By changing VS studio install and regedit (see link under) I managed to connect to CRM and create plugins:
http://www.hashtagcrm.com/?p=79
When building my project I was unable to build, because the targeted framework was different. After I have changed the .NET framework of the project/solutions to 4.5.2. I was able to build the project in Visual Studio, but I receive the following warnings refering to the primary reference:
-----------------------------------------------------------------------------------
1>------ Build started: Project: CrmPackage, Configuration: Debug Any CPU ------
1>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1697,5): warning MSB3274: The primary reference "C:\Users\nico.van.de.heiden\Documents\Visual Studio 2013\Projects\Connector\Connector\Plugins\bin\Debug\Connector.Plugins.dll" could not be resolved because it was built against the ".NETFramework,Version=v4.5.2" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.5".
1>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1697,5): warning MSB3274: The primary reference "C:\Users\nico.van.de.heiden\Documents\Visual Studio 2013\Projects\Connector\Connector\Workflow\bin\Debug\Connector.Workflow.dll" could not be resolved because it was built against the ".NETFramework,Version=v4.5.2" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.5".
1>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1697,5): warning MSB3275: The primary reference "C:\Users\nico.van.de.heiden\Documents\Visual Studio 2013\Projects\Connector\Connector\Plugins\bin\Debug\Connector.Plugins.dll" could not be resolved because it has an indirect dependency on the assembly "Microsoft.Xrm.Sdk, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" which was built against the ".NETFramework,Version=v4.5.2" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.5".
========== Build: 1 succeeded, 0 failed, 2 up-to-date, 0 skipped ==========
------------------------------------------------------------------------------------------------
But the project builded, so it tried to deploy my project. When I deployed to CRM I got the following error:
Error registering plugins and/or workflows. Assembly bin\Debug\DPMConnector.Plugins.dll could not be found.
C:\Program Files (x86)\MSBuild\Microsoft\CRM\Microsoft.CrmDeveloperTools.12.targets
176 CrmPackage
Hopefully someone can help me out here, because I do like the developer toolkit and prefer to work this way.