dotnet build doesn't work in a linux dev container - nuget packages restored incorrectly.
See original GitHub issueThe 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/microsoft.azure.workflows.webjobs.extension/1.0.0.8-preview/lib/netcoreapp3.1/Microsoft.Azure.Workflows.ServiceProviders.Abstractions.dll" 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/microsoft.azure.workflows.webjobs.extension/1.0.0.8-preview/
reveals the following file list, where the direcoty path with \
seems to be part of the filename:
LICENSE.txt
NOTICE.txt
'_rels\.rels'
'contentFiles\any\'
'contentFiles\any\any\'
'contentFiles\any\any\JS\analysis.js'
'contentFiles\any\any\JS\customError.js'
'contentFiles\any\any\JS\esprima.js'
'contentFiles\any\any\JS\estraverse.js'
'contentFiles\any\any\JS\finalizeExports.js'
'contentFiles\any\any\JS\functionInputHandler.js'
'contentFiles\any\any\JS\index.js'
'contentFiles\any\any\JS\initExports.js'
'lib\netcoreapp2.2\ClearScript.dll'
'lib\netcoreapp2.2\ClearScriptV8-32.dll'
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
asp.net 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 >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
Closing as the nuget filename issue has been fixed in the latest release
Try this: