SparkleXrm icon indicating copy to clipboard operation
SparkleXrm copied to clipboard

Error executing .bat

Open wesc09 opened this issue 7 years ago • 3 comments

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 . . .

wesc09 avatar Jan 19 '18 11:01 wesc09

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?

scottdurow avatar Jan 19 '18 11:01 scottdurow

image

wesc09 avatar Jan 19 '18 12:01 wesc09

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': image but not for the 'MySolution' project because it is one folder lower down. image 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

bwmodular avatar Jun 20 '21 21:06 bwmodular