dotnet restore fails with bogus missing config file error on some computers
See original GitHub issueMoving issue from https://github.com/OmniSharp/omnisharp-vscode/issues/96
Steps to reproduce
-
Install VS Code on a Ubuntu
-
Try to restore the CLR debugger in the same way that VS Code will –
cd ~/.vscode/extensions/ms-vscode.csharp-0.3.7/coreclr-debug dotnet --verbose restore --configfile NuGet.config
Expected behavior
Restore succeeds
Actual behavior
On some machine, restore fails with –
~/.vscode/extensions/ms-vscode.csharp-0.3.7/coreclr-debug$ dotnet --verbose restore --configfile NuGet.config
error: File '/home/dhanajay/.vscode/extensions/ms-vscode.csharp-0.3.7/NuGet.config' does not exist.
NOTES:
- The error message at least indicates that dotnet restore is looking in the wrong directory (the current directory is …\coreclr-debug)
- We had someone internal run into this on OSX. That time it turned out to be due to junk left over from an older version. But @dhnnjy tried uninstalling/reinstalling with no success.
Environment data
dotnet --version
output:
.NET Command Line Tools (1.0.0-beta-001675)
Product Information: Version: 1.0.0-beta-001675 Commit Sha: N/A
Runtime Environment: OS Name: ubuntu OS Version: 14.04 OS Platform: Linux Runtime Id: ubuntu.14.04-x64
Issue Analytics
- State:
- Created 8 years ago
- Reactions:1
- Comments:9
Top Results From Across the Web
dotnet restore fails in build on private agent and TFS
For testing I added a command line task to run dotnet restore directly and it works fine. "C:\Program Files\dotnet\dotnet.exe" restore %BUILD_SOURCESDIRECTORY%\ ...
Read more >NuGet Package Restore
NuGet Package Restore restores all of a project's dependencies that are listed in either a project file or a packages.config file.
Read more >NuGet Restore failing using MSBuild - visual studio
You are using MSBuild-Integrated way to restore package, for this way, there is .nuget folder (contains nuget.exe, nuget.config and ...
Read more >Troubleshooting NuGet Package Restore in Visual Studio
This article focuses on common errors when restoring packages and steps to resolve them. Package Restore tries to install all package ...
Read more >dotnet restore command - .NET CLI
Learn how to restore dependencies and project-specific tools with the dotnet restore command.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have a similar issue on OS X 10.11.4. I reinstalled VS Code (deleted the app and the ~/.vscode folder). The issue persists.
Actual Behavior
Environment Data
Thanks @gregg-miskelly I will close this down then. We can reopen on NuGet/Home if it surfaces again.