Sitecore Asked by Nikola Kramaric on February 21, 2021
I am following the guide specified here. I can successfully run the command dotnet new tool-manifest
however I get an error when I run
dotnet tool install Sitecore.CLI --add-source https://sitecore.myget.org/F/sc-packages/api/v3/index.json
Error:
C:Program Filesdotnetsdk3.1.405NuGet.targets(128,5): error : Failed to retrieve information about 'sitecore.cli' from remote source 'https://sitecore.myget.org/gallery/FindPackagesById()?id='sitecore.cli'&semVerLevel=2.0.0'. [***]
C:Program Filesdotnetsdk3.1.405NuGet.targets(128,5): error : The content at 'https://sitecore.myget.org/gallery/FindPackagesById()?id='sitecore.cli'&semVerLevel=2.0.0' is not valid XML. [**]
C:Program Filesdotnetsdk3.1.405NuGet.targets(128,5): error : For security reasons DTD is prohibited in this XML document. To enable DTD processing set the DtdProcessing property on XmlReaderSettings to Parse and pass the settings into XmlReader.Create method. [***]
The tool package could not be restored.
Tool 'sitecore.cli' failed to install. This failure may have been caused by:
* You are attempting to install a preview release and did not use the --version option to specify the version.
* A package by this name was found, but it was not a .NET Core tool.
* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
* You mistyped the name of the tool.
For more reasons, including package naming enforcement, visit https://aka.ms/failure-installing-tool
Any ideas?
I found the fix to this. In Visual Studio 2017 or 2019:
Navigate to Tools > NuGet Package Manager > Package Manager Settings > Package Sources
and remove the reference to Sitecore NuGet. This was there from a previous setup of Sitecore. My theory is that it conflicted with this installation.
Packages Sources after removing the Sitecore Source:
Answered by Nikola Kramaric on February 21, 2021
0 Asked on August 23, 2021 by gautam-aneja
2 Asked on August 23, 2021 by corey-burnett
1 Asked on August 23, 2021 by suresh-r
1 Asked on August 23, 2021 by sitecorenerd
4 Asked on August 23, 2021 by rajesh-kumar
3 Asked on August 23, 2021 by breno-diniz-pelosi
2 Asked on August 23, 2021 by serhii-shushliapin
3 Asked on August 23, 2021 by arpana-mittal
1 Asked on August 23, 2021 by nadine-lendzian
2 Asked on August 23, 2021 by alok-kumar
1 Asked on August 23, 2021 by siddharth
2 Asked on August 23, 2021 by barada-behura
0 Asked on August 23, 2021 by sonu
1 Asked on August 23, 2021 by arun-tiwari
1 Asked on August 23, 2021 by pirate-briggs
1 Asked on August 23, 2021 by user2980
Get help from others!
Recent Questions
Recent Answers
© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP