Skip to content

build fails with "Invalid restore input. Duplicate frameworks found: 'net6.0-windows7.0, net6.0, net6.0'" #44708

@jkotas

Description

@jkotas

Repro

Run build without any arguments from the root of the repo according to the
https://github.com/dotnet/runtime/blob/master/docs/workflow/README.md#concepts

Actual result

  installer.tasks -> D:\runtime\artifacts\bin\installer.tasks\Debug\net461\installer.tasks.dll
  installer.tasks -> D:\runtime\artifacts\bin\installer.tasks\Debug\netstandard2.0\installer.tasks.dll
  Determining projects to restore...
D:\runtime\.dotnet\sdk\5.0.100-rc.2.20479.15\NuGet.RestoreEx.targets(19,5): error : Invalid restore input. Duplicate frameworks found: 'net6.0-windows7.0, net6.0, net6.0'. Input files: D:\runtime\src\libraries\Microsoft.Win32.Primitives\src\Microsoft.Win32.Primitives.csproj. [D:\runtime\Build.proj]
D:\runtime\.dotnet\sdk\5.0.100-rc.2.20479.15\NuGet.RestoreEx.targets(19,5): error :    at NuGet.Commands.SpecValidationUtility.ValidateFrameworks(PackageSpec spec, IEnumerable`1 files) [D:\runtime\Build.proj]

Expected result

Builds successful. This is regression introduced in recent week or so.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions