Restore has failed. Check if dotnet is installed and available in PATH. #2370
Unanswered
evgeniiworkst
asked this question in
Q&A
Replies: 2 comments 1 reply
-
![]() |
Beta Was this translation helpful? Give feedback.
0 replies
-
Have you tried passing the argument |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
when dotnet restore i see error "Restore has failed. Check if dotnet is installed and available in PATH."
In my project, I use the GhostDoc plugin for VS2022, which generates a file called project.sln.GhostDoc.xml. For some reason, cdxgen includes it for analysis (even though it shouldn't) and throws an error stating that it is not supported. In index.js, the error handling consists of multiple if-else statements, and in the very last else block, if it cannot find the error text, it outputs an error indicating that the dotnet PATH is not found, which is not true.
There is a hypothesis that cdxgen parses files not with a strict regular expression and, instead of project.sln, it takes project.sln* for analysis.
Beta Was this translation helpful? Give feedback.
All reactions