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 build doesn't work in a linux dev container - nuget packages restored incorrectly.

See original GitHub issue

The nuget package seems to be copying files with incorrect paths to the nuget packages folder. When trying to do a build you get this error:

error MSB3030: Could not copy the file "/root/.nuget/packages/" because it was not found. [/workspaces/la-v2-devcontainer/la-v2-devcontainer.csproj]

Looking at the contents of the nuget packages folder using

ls /root/.nuget/packages/ reveals the following file list, where the direcoty path with \ seems to be part of the filename:


Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

hongzlicommented, Dec 16, 2020

Closing as the nuget filename issue has been fixed in the latest release

hongzlicommented, Nov 10, 2020

Try this:

  • In your Logic App folder, delete the ‘bin’ and ‘obj’ folders if they exist
  • Change the contents of the host.json file, located at the root of your Logic App’s folder, to the following:
    "version": "2.0",
    "extensionBundle": {
        "id": "Microsoft.Azure.Functions.ExtensionBundle.Workflows",
        "version": "[1.*, 2.0.0)"
Read more comments on GitHub >

github_iconTop Results From Across the Web core - dotnet restore fails from Docker container
If both or either of 1 and 2 above are true and you have a NuGet.Config file managing your dependencies then try and...
Read more >
Dotnet restore fails to use the local Nuget.Config to retrieve ...
Steps to reproduce add a Nuget.Config to your project with a private feed and run dotnet restore as part of docker build.
Read more >
Troubleshooting NuGet Package Restore in Visual Studio
If the package references in your project file (.csproj) or your packages.config file are incorrect (they do not match your desired state ...
Read more >
NuGet restore failing in Docker Container
The Problem. We have a very simple .Net Core MVC solution. It has the following NuGet packages.
Read more >
Solving flaky dotnet restore issue only on Docker
When I build a Dockerfile, at the part of the dotnet restore I encountered this issue. However, On my colleague's PC, it works...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found