Skip to content

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

Closed

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

Activity

  1. ghost added
    untriagedNew issue has not been triaged by the area owner
    on Nov 25, 2021
  2. ghost locked as resolved and limited conversation to collaborators on Dec 29, 2021
  3. removed
    untriagedNew issue has not been triaged by the area owner
    on Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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