SparkleXrm
SparkleXrm copied to clipboard
Error executing .bat
I keep getting this error when executing the bat file
PS C:\Users\user\source\repos\GettingStartedTypeScriptDynamics 365\WebResources\spkl> .\deploy-webresources.bat Using '' '""' is not recognized as an internal or external command, operable program or batch file. Press any key to continue . . .
This probably means that the locations of the Nuget packages folder is not where it should be. Where is the spkl Nuget folder in relation to the bat file?

In case anyone else hits this issue, it happens when the project you are using spkl tasks for is not in the root folder of the solution (ie at the same level as the packages folder).
So running it for this 'Plugins' project will work fine because it is in the same folder as 'packages':
but not for the 'MySolution' project because it is one folder lower down.
To fix this, change the path in the *.bat file you are trying to run.
By default the path is set to this:
set package_root=..\..\
In the example above, changing it to this fixes the problem:
set package_root=..\..\..\
so that the task goes up one folder further to find the spkl package folder