question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dotnet restore fails with bogus missing config file error on some computers

See original GitHub issue

Moving issue from https://github.com/OmniSharp/omnisharp-vscode/issues/96

Steps to reproduce

  1. Install VS Code on a Ubuntu

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

  1. The error message at least indicates that dotnet restore is looking in the wrong directory (the current directory is …\coreclr-debug)
  2. 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:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:9

github_iconTop GitHub Comments

2reactions
mighteacommented, Apr 8, 2016

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

Downloading and configuring the .NET Core Debugger...
Running /usr/local/share/dotnet/bin/corerun "/usr/local/share/dotnet/bin/NuGet.CommandLine.XPlat.dll" "restore" "--configfile" "NuGet.config" "--runtime" "osx.10.11-x64"
Process ID: 6489
Specify --help for a list of available options and commands.
error: Unrecognized option '--configfile'
dotnet exited with error code 1
Error while installing .NET Core Debugger.

Environment Data

.NET Command Line Tools (1.0.0)
Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  10.11
 OS Platform: Darwin
 Runtime Id:  osx.10.11-x64
0reactions
blackdwarfcommented, Jul 21, 2016

Thanks @gregg-miskelly I will close this down then. We can reopen on NuGet/Home if it surfaces again.

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found