Skip to content

x64 libraries build error #34610

@gbalykov

Description

@gbalykov

If I try to build with subsets specified for libraries, lots of different errors show up:

./build.sh --clang9 --arch x64 --configuration Release --subsetcategory libraries --subset native-src
error MSB3245: Could not resolve this reference. Could not locate the assembly "System.Collections". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [/home/z/Dev/runtime/src/libraries/Microsoft.CSharp/src/Microsoft.CSharp.csproj]

error CS0246: The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?) [/home/z/Dev/runtime/src/libraries/Microsoft.Extensions.Caching.Abstractions/src/Microsoft.Extensions.Caching.Abstractions.csproj]

IDistributedCache.cs(74,72): error CS0246: The type or namespace name 'CancellationToken' could not be found (are you missing a using directive or an assembly reference?) [/home/z/Dev/runtime/src/libraries/Microsoft.Extensions.Caching.Abstractions/src/Microsoft.Extensions.Caching.Abstractions.csproj]

etc.

Build without subsets is fine:

./build.sh --clang9 --arch x64 --configuration Release --subsetcategory libraries

Seems that this is related to depprojs and #33553:

<DefaultLibrariesSubsets>depprojs-native-ref-src-pretest-packages</DefaultLibrariesSubsets>

cc @alpencolt @jkotas

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions