Unable to install NuGet package 'sitecore.devex.extensibility.Indexing'. Ensure package names and versions are valid and that NuGet is installed.
There are two parts to working with a Sitecore CLI plugin:
1) Setup the plugin in the local file system
2) Interact with a Sitecore instance using the plugin setup
The sequence diagram below covers part 1 only!
Now over to the actual scenario:
I was trying to play with the Sitecore CLI 4.0.0 in a new Virtual Machine, I did follow all the process involved to setup the plugin as depicted here below:;
I searched over the web for a solution. Although I removed the package name and searched, I couldn't get any favourable results. So, I decided to check if nuget is recognized in the machine and this is the error I received:
nuget not recognized:
nuget : The term 'nuget' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ nuget
+ ~~~~~
+ CategoryInfo : ObjectNotFound: (nuget:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
I then installed nuget through commandline using this command:
Install-Package Nuget.commandline
Luckily, I had a development machine where the plugin installed fine. As I compared with that machine and based on the error, it stroked me to compare the nuget source in Visual Studio. That was the only place my new machine didn't have the myget Sitecore nuget url. So, I added the same:
Then, came back to PowerShell and executed the dotnet sitecore plugin add -n sitecore.devex.extensibility.Indexing
Comments
Post a Comment