SparkleXrm icon indicating copy to clipboard operation
SparkleXrm copied to clipboard

can not generate earlybound classes

Open malaotou opened this issue 5 years ago • 2 comments
trafficstars

in on-premise environment with command "spkl earlybound /l" with the following errors " The application terminated with an error. Value cannot be null. Parameter name: fileName "

malaotou avatar Sep 26 '20 23:09 malaotou

Make sure you have done a Nuget Restore.

scottdurow avatar Sep 27 '20 00:09 scottdurow

Apologies for bumping an old thread but I've run into this issue on two separate projects, through no fault of spkl itself.

In both of my cases, spkl was unable to find the "CrmSvcUtil.exe" in the NuGet packages directory of the project. Even triggering a NuGet Restore did not seem to bring down the necessary files. What I ended up having to do was to uninstall the spkl package, and then the Microsoft.CrmSdk.CoreTools NuGet package.

Once both were uninstalled, I just installed them in the reverse order (Microsoft.CrmSdk.CoreTools, and then spkl) and earlyboundtype generation started working again.

fergusonkw avatar May 08 '24 00:05 fergusonkw