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.

Build fails on ARM64 Linux, likely because of issue with workload SDK resolver

See original GitHub issue

Refer to comments starting here: https://github.com/dotnet/sdk/issues/17461#issuecomment-927246402

From @vova-lantsov-dev

I got this issue in a docker container running a clean installation of .NET SDKs. Here is some info: Docker: 20.x (latest) Base image: balenalib’s aarch64 (arm64v8) debian bullseye .NET sdk installed in docker container: 3.1, 5, 6-rc.1 Installation instructions: here Logs: here (login as guest) Project: here (running using Nuke build automation system) Server instance: Raspberry Pi 4 Model B (8 GB RAM) How to reproduce on my server? here, then setup using internal database and add a build configuration with versioning settings: enabled pointing to my repo, TeamCity should fetch the configuration from VCS automatically

Contact me if you need more info about my case

Snip of build log:

[17:29:24]W: [Step 2/2] The SDK ‘Microsoft.NET.SDK.WorkloadAutoImportPropsLocator’ specified could not be found. /usr/share/dotnet/sdk/6.0.100-rc.2.21505.57/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.ImportWorkloads.props StackTrace: at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject(String errorSubCategoryResourceName, IElementLocation elementLocation, String resourceName, Object[] args) at Microsoft.Build.Evaluation.Evaluator4.ExpandAndLoadImportsFromUnescapedImportExpressionConditioned(String directoryOfImportingFile, ProjectImportElement importElement, List1& projects, SdkResult& sdkResult, Boolean throwOnFileNotExistsError) at Microsoft.Build.Evaluation.Evaluator4.ExpandAndLoadImports(String directoryOfImportingFile, ProjectImportElement importElement, SdkResult& sdkResult) at Microsoft.Build.Evaluation.Evaluator4.EvaluateImportElement(String directoryOfImportingFile, ProjectImportElement importElement) at Microsoft.Build.Evaluation.Evaluator4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport) at Microsoft.Build.Evaluation.Evaluator4.EvaluateImportElement(String directoryOfImportingFile, ProjectImportElement importElement) at Microsoft.Build.Evaluation.Evaluator4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport) at Microsoft.Build.Evaluation.Evaluator4.EvaluateImportElement(String directoryOfImportingFile, ProjectImportElement importElement) at Microsoft.Build.Evaluation.Evaluator4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport) at Microsoft.Build.Evaluation.Evaluator4.EvaluateImportElement(String directoryOfImportingFile, ProjectImportElement importElement) at Microsoft.Build.Evaluation.Evaluator4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport) at Microsoft.Build.Evaluation.Evaluator4.Evaluate() at Microsoft.Build.Evaluation.Evaluator4.Evaluate(IEvaluatorData4 data, ProjectRootElement root, ProjectLoadSettings loadSettings, Int32 maxNodeCount, PropertyDictionary1 environmentProperties, ILoggingService loggingService, IItemFactory2 itemFactory, IToolsetProvider toolsetProvider, ProjectRootElementCacheBase projectRootElementCache, BuildEventContext buildEventContext, ISdkResolverService sdkResolverService, Int32 submissionId, EvaluationContext evaluationContext, Boolean interactive) at Microsoft.Build.Evaluation.Project.ProjectImpl.Reevaluate(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext) at Microsoft.Build.Evaluation.Project.ProjectImpl.ReevaluateIfNecessary(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext) at Microsoft.Build.Evaluation.Project.ProjectImpl.ReevaluateIfNecessary(ILoggingService loggingServiceForEvaluation, EvaluationContext evaluationContext) at Microsoft.Build.Evaluation.Project.ProjectImpl.ReevaluateIfNecessary(EvaluationContext evaluationContext) at Microsoft.Build.Evaluation.Project.ProjectImpl.Initialize(IDictionary2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext) at Microsoft.Build.Evaluation.Project..ctor(ProjectRootElement xml, IDictionary2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext) at Microsoft.Build.Evaluation.Project.FromProjectRootElement(ProjectRootElement rootElement, ProjectOptions options) at Nuke.Common.ProjectModel.ProjectModelTasks.ParseProject(String projectFile, String configuration, String targetFramework) at Nuke.Common.Execution.Telemetry.CheckAwareness()

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
marcpopMSFTcommented, Oct 25, 2021

Sounds like you were able to find a solution for this so I’m closing out this issue. Glad you were able to get unblocked.

1reaction
vova-lantsov-devcommented, Oct 22, 2021

This issue is confirmed to be Nuke-related And this is how I fixed it: https://github.com/vlrpi/build/commit/47429683d383a981036ae0e6f2247e71cc14d45f

Read more comments on GitHub >

github_iconTop Results From Across the Web

Arm64 support for Windows SDK - Developer Community
Fixed In: Visual Studio 2022 version 17.4Visual StudioXAMLarm64.. This issue is read only, because it has been in the Completed – Release state...
Read more >
WARNING: The requested image's platform (linux/amd64) ...
This warning message indicates that there is a platform mismatch between the requested image and the host platform. The requested image was likely...
Read more >
How to generate Android APK file from Linux ARM64 with ...
I'd like to cross compile from a Linux ARM64 (Raspberry Pi OS ARM64) ... error : The NuGetSdkResolver did not resolve this SDK...
Read more >
Install the .NET SDK or the .NET Runtime on Ubuntu
I want to create a .NET app​​ Use the same package sources for the SDK as you use for the runtime. For example,...
Read more >
important: Security update for the Linux Kernel
The previous fix using CPU Microcode has been complemented by building the Linux Kernel with return trampolines aka "retpolines".
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