dotnet / dotnet/roslyn-tools

error MSB4062: The "Microsoft.DotNet.Arcade.Sdk.CheckRequiredDotNetVersion"

Open
#407 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
109
Forks
85
Avg merge
2d 16h
Merged PRs (30d)
1

Description

Hi all,
Has anyone encountered this problem?
Environment:
Windows 7, Visual Studio 2017 version 15.8.1.
Workloads: .Net desktop development, .Net core cross-platformdevelopment
Individual components: All .Net framworks targeting pack from 4 to 4.6.1 including 4.6.1 SDK
The full error i'm getting when trying to build is for every project in the solution:
error MSB4062: The "Microsoft.DotNet.Arcade.Sdk.CheckRequiredDotNetVersion" task could not be loaded from the assembly ..\.nuget\packages\roslyntools.buildtasks\1.0.0-beta3.18525.2\tools\net472\RoslynTools.BuildTasks.dll. Could not load file or assembly 'file:///C:\Users\Administrator\.nuget\packages\roslyntools.buildtasks\1.0.0-beta3.18525.2\tools\net472\RoslynTools.BuildTasks.dll' or one of its dependencies. The system cannot find the file specified.

the thing is that "RoslynTools.BuildTasks.dll" does exist on my computer, but in a different directory from where it searches for.

suggestions anyone?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the build on Windows 7 with Visual Studio 2017 15.8.1 and inspect the NuGet package path for roslyntools.buildtasks 1.0.0-beta3.18525.2, especially tools/net472/RoslynTools.BuildTasks.dll. Compare the resolved assembly location with the path used by Microsoft.DotNet.Arcade.Sdk.CheckRequiredDotNetVersion; done means every project loads the task successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
build-system, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.