I can't import my solution with solutionpackager since the folder only contains a dll.data.xml file "\PluginAssemblies\<Assembly Name 1>-{guid 1}\<Assembly Name 1>.dll.data.xml" but not the actual .dll file "\PluginAssemblies\<Assembly Name 1>-{guid 1}\<Assembly Name 1>.dll".
When trying to export the solution with a normal manual export solution (unmanaged) from CRM, I only get the .dll and not the dll.data.xml file.
And when exporting with solutionpackager included in CoreTools (v9.0.2.12) I only get the dll.data.xml file and not the .dll file.
Both the plugin and sdkprocessingsteps are included in the solution in CRM.
I know that I can get the import to work if I remove the plugin and sdkprocessingsteps from the solution inlc references in the solution.xml file, but I dont want to do that everytime I want to import the solution.
Questions:
1. Why doesnt the solutionpackager export the .dll file and only the dll.data.xml file? When the documentation states that It should.
Link: https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/solution-component-file-reference-solutionpackager
2. Why does a normal solution export (unmanaged) only include the .dll file and not the .dll.data.xml file?
3. How do I resolve the isssue?
The error I got when importing was (that got me started looking at the problem):
Following objects, required by the solution, are not present. /n/r Type='PluginAssembly', Id (or schema name)='PluginAssembly-X.Crm.Hooks, Version=1.0.0.0, Culture=neutral, PublicKeyToken=749f69a31206f09p'.
/n/r Please do a dependency check on your solution prior to exporting, add the missing objects to your solution and re-export/n/r
Unhandled Exception: Microsoft.Crm.Tools.SolutionPackager.PluginExecutionException: RootComponent validation failed.
Thankful for all the help I can get.
Other info:
Dynamics 365 version 1612 (9.0.3.7) (DB 9.0.3.7) onpremise
Worked fine in 8.2.
Imported 8.2 solution to 9.0 org. (Worked fine).
Exported the solution (Worked fine).
Tried to import the newly exported solution (Didn't work).
Reset the Org to a vanilla 9.0.
Tried to import the newly exported soluition again (Didn't work).
Also tried with the latest version av solution packager in Microsoft.CrmSdk.CoreTools (9.0.3.1).
/Rickard