Why does dotnet test fails with MSB3026 warnings and eventually errors?
Asked by richardb621:

Using image: mcr.microsoft.com/dotnet/core/sdk:3.1

/usr/share/dotnet/sdk/3.1.402/Microsoft.Common.CurrentVersion.targets(4364,5): warning MSB3026: Could not copy "/root/.nuget/packages/microsoft.testplatform.objectmodel/16.7.1/lib/netstandard2.0/pt-BR/Microsoft.TestPlatform.CoreUtilities.resources.dll" to "bin/Debug/netcoreapp3.1/pt-BR/Microsoft.TestPlatform.CoreUtilities.resources.dll". Beginning retry 1 in 1000ms. Could not find a part of the path '/opt/atlassian/pipelines/agent/build/TCOapi.Tests/bin/Debug/netcoreapp3.1/pt-BR/Microsoft.TestPlatform.CoreUtilities.resources.dll'. [/opt/atlassian/pipelines/agent/build/TCOapi.Tests/TCOapi.Tests.csproj]/usr/share/dotnet/sdk/3.1.402/Microsoft.Common.CurrentVersion.targets(4364,5): warning MSB3026: Could not copy "/root/.nuget/packages/microsoft.testplatform.objectmodel/16.7.1/lib/netstandard2.0/pt-BR/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll" to "bin/Debug/netcoreapp3.1/pt-BR/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll". Beginning retry 1 in 1000ms. Could not find a part of the path '/opt/atlassian/pipelines/agent/build/TCOapi.Tests/bin/Debug/netcoreapp3.1/pt-BR/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll'. [/opt/atlassian/pipelines/agent/build/TCOapi.Tests/TCOapi.Tests.csproj]

/usr/share/dotnet/sdk/3.1.402/Microsoft.Common.CurrentVersion.targets(4364,5): error MSB3027: Could not copy "/root/.nuget/packages/microsoft.testplatform.objectmodel/16.7.1/lib/netstandard2.0/pt-BR/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll" to "bin/Debug/netcoreapp3.1/pt-BR/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll". Exceeded retry count of 10. Failed. [/opt/atlassian/pipelines/agent/build/TCOapi.Tests/TCOapi.Tests.csproj]/usr/share/dotnet/sdk/3.1.402/Microsoft.Common.CurrentVersion.targets(4364,5): error MSB3021: Unable to copy file "/root/.nuget/packages/microsoft.testplatform.objectmodel/16.7.1/lib/netstandard2.0/pt-BR/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll" to "bin/Debug/netcoreapp3.1/pt-BR/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll". Could not find a part of the path '/opt/atlassian/pipelines/agent/build/TCOapi.Tests/bin/Debug/netcoreapp3.1/pt-BR/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll'. [/opt/atlassian/pipelines/agent/build/TCOapi.Tests/TCOapi.Tests.csproj]/usr/share/dotnet/sdk/3.1.402/Microsoft.Common.CurrentVersion.targets(4364,5): error MSB3027: Could not copy "/root/.nuget/packages/microsoft.testplatform.testhost/16.7.1/lib/netcoreapp2.1/pt-BR/Microsoft.TestPlatform.CrossPlatEngine.resources.dll" to "bin/Debug/netcoreapp3.1/pt-BR/Microsoft.TestPlatform.CrossPlatEngine.resources.dll". Exceeded retry count of 10. Failed. [/opt/atlassian/pipelines/agent/build/TCOapi.Tests/TCOapi.Tests.csproj]/usr/share/dotnet/sdk/3.1.402/Microsoft.Common.CurrentVersion.targets(4364,5): error MSB3021: Unable to copy file "/root/.nuget/packages/microsoft.testplatform.testhost/16.7.1/lib/netcoreapp2.1/pt-BR/Microsoft.TestPlatform.CrossPlatEngine.resources.dll" to "bin/Debug/netcoreapp3.1/pt-BR/Microsoft.TestPlatform.CrossPlatEngine.resources.dll". Could not find a part of the path '/opt/atlassian/pipelines/agent/build/TCOapi.Tests/bin/Debug/netcoreapp3.1/pt-BR/Microsoft.TestPlatform.CrossPlatEngine.resources.dll'. [/opt/atlassian/pipelines/agent/build/TCOapi.Tests/TCOapi.Tests.csproj]


Answers:
author: richardb621
body: Why is it reporting pt-BR resource files? That is Portuguese.

What's that got to do with anything?


Tags: bitbucket-pipelines