Skip to content

System.Runtime.CompilerServices.Unsafe.dll is missing building runtime/libs with VS2022 #62064

@CarlVerret

Description

@CarlVerret

Description

I'm having a issue building libraries / tests after builing runtime as specified in the contribution workflow doc :
build.cmd clr+libs -rc Release
Got an error message complaining about
\System.Runtime.CompilerServices.Unsafe\ref\net462-Debug\System.Runtime.CompilerServices.Unsafe.dll'
could not be found System.Text.RegularExpressions.Tests (net7.0)

Does the same for every lib project I try to compile.

Reproduction Steps

  1. build.cmd clr+libs -rc Release
  2. build.cmd -vs System.Text.RegularExpressions (or any other lib)
  3. build test project with VS

Expected behavior

No error message when building test project

Actual behavior

Error, build fails complaining about net462-Debug\System.Runtime.CompilerServices.Unsafe.dll

Regression?

No response

Known Workarounds

Compiling with pushd ..\src & dotnet build & popd & dotnet build /t:test works.
Starts to work if I remove $(NetFrameworkMinimum) in $(NetCoreAppMinimum);

Configuration

Windows 10
VS2022 x64

Other information

No response

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