Skip to content

Build warnings: "Could not resolve reference..." #114390

Open
@BruceForstall

Description

@BruceForstall

I build dotnet/runtime on Windows using:

build.cmd clr+libs -arch x64 -c Release

and see all these warnings (I don't recall seeing them before):

  Could not resolve reference 'System.Private.Uri.dll' directly or transitively referenced by 'C:\gh\runtime2\artifacts\bin\System.Diagnostics.TraceSource\ref\Release\net10.0\System.Diagnostics.TraceSource.dll' in any of the provided search directories.
  Could not resolve reference 'System.Private.Uri.dll' directly or transitively referenced by 'C:\gh\runtime2\artifacts\obj\System.Diagnostics.TraceSource\Release\net10.0\System.Diagnostics.TraceSource.dll' in any of the provided search directories.
  Could not resolve reference 'System.Memory.dll' directly or transitively referenced by 'C:\gh\runtime2\artifacts\obj\System.Diagnostics.TraceSource\Release\net10.0\System.Diagnostics.TraceSource.dll' in any of the provided search directories.
  Could not resolve reference 'System.ComponentModel.dll' directly or transitively referenced by 'C:\gh\runtime2\artifacts\obj\System.Diagnostics.TraceSource\Release\net10.0\System.Diagnostics.TraceSource.dll' in any of the provided search directories.
  Could not resolve reference 'System.ObjectModel.dll' directly or transitively referenced by 'C:\gh\runtime2\artifacts\obj\System.Diagnostics.TraceSource\Release\net10.0\System.Diagnostics.TraceSource.dll' in any of the provided search directories.
  Could not resolve reference 'System.Private.Uri.dll' directly or transitively referenced by 'C:\gh\runtime2\artifacts\bin\System.Diagnostics.StackTrace\ref\Release\net10.0\System.Diagnostics.StackTrace.dll' in any of the provided search directories.
  Could not resolve reference 'System.Private.Uri.dll' directly or transitively referenced by 'C:\gh\runtime2\artifacts\obj\System.Diagnostics.StackTrace\Release\net10.0\System.Diagnostics.StackTrace.dll' in any of the provided search directories.
  Could not resolve reference 'System.Runtime.InteropServices.dll' directly or transitively referenced by 'C:\gh\runtime2\artifacts\obj\System.Diagnostics.StackTrace\Release\net10.0\System.Diagnostics.StackTrace.dll' in any of the provided search directories.
  Could not resolve reference 'System.Memory.dll' directly or transitively referenced by 'C:\gh\runtime2\artifacts\obj\System.Diagnostics.StackTrace\Release\net10.0\System.Diagnostics.StackTrace.dll' in any of the provided search directories.
  Could not resolve reference 'System.Runtime.InteropServices.dll' directly or transitively referenced by 'C:\gh\runtime2\artifacts\obj\System.Diagnostics.StackTrace\Release\net10.0\System.Diagnostics.StackTrace.dll' in any of the provided search directories.
  Could not resolve reference 'System.Linq.dll' directly or transitively referenced by 'C:\gh\runtime2\artifacts\obj\System.Diagnostics.StackTrace\Release\net10.0\System.Diagnostics.StackTrace.dll' in any of the provided search directories.
  Could not resolve reference 'System.Collections.dll' directly or transitively referenced by 'C:\gh\runtime2\artifacts\obj\System.Diagnostics.StackTrace\Release\net10.0\System.Diagnostics.StackTrace.dll' in any of the provided search directories.
  Could not resolve reference 'System.Memory.dll' directly or transitively referenced by 'C:\gh\runtime2\artifacts\obj\System.Diagnostics.StackTrace\Release\net10.0\System.Diagnostics.StackTrace.dll' in any of the provided search directories.
  Could not resolve reference 'System.Threading.dll' directly or transitively referenced by 'C:\gh\runtime2\artifacts\obj\System.Diagnostics.StackTrace\Release\net10.0\System.Diagnostics.StackTrace.dll' in any of the provided search directories.
  Could not resolve reference 'System.Collections.dll' directly or transitively referenced by 'C:\gh\runtime2\artifacts\obj\System.Diagnostics.StackTrace\Release\net10.0\System.Diagnostics.StackTrace.dll' in any of the provided search directories.
  Could not resolve reference 'System.IO.Compression.dll' directly or transitively referenced by 'C:\gh\runtime2\artifacts\obj\System.Diagnostics.StackTrace\Release\net10.0\System.Diagnostics.StackTrace.dll' in any of the provided search directories.
  Could not resolve reference 'System.Threading.dll' directly or transitively referenced by 'C:\gh\runtime2\artifacts\obj\System.Diagnostics.StackTrace\Release\net10.0\System.Diagnostics.StackTrace.dll' in any of the provided search directories.
  Could not resolve reference 'System.IO.MemoryMappedFiles.dll' directly or transitively referenced by 'C:\gh\runtime2\artifacts\obj\System.Diagnostics.StackTrace\Release\net10.0\System.Diagnostics.StackTrace.dll' in any of the provided search directories.
  Could not resolve reference 'System.Text.Encoding.Extensions.dll' directly or transitively referenced by 'C:\gh\runtime2\artifacts\obj\System.Diagnostics.StackTrace\Release\net10.0\System.Diagnostics.StackTrace.dll' in any of the provided search directories.
  Could not resolve reference 'System.Private.Uri.dll' directly or transitively referenced by 'C:\gh\runtime2\artifacts\bin\System.Reflection.Emit\ref\Release\net10.0\System.Reflection.Emit.dll' in any of the provided search directories.
  Could not resolve reference 'System.Private.Uri.dll' directly or transitively referenced by 'C:\gh\runtime2\artifacts\obj\System.Reflection.Emit\Release\net10.0\System.Reflection.Emit.dll' in any of the provided search directories.
  Could not resolve reference 'System.Runtime.InteropServices.dll' directly or transitively referenced by 'C:\gh\runtime2\artifacts\obj\System.Reflection.Emit\Release\net10.0\System.Reflection.Emit.dll' in any of the provided search directories.
  Could not resolve reference 'System.Memory.dll' directly or transitively referenced by 'C:\gh\runtime2\artifacts\obj\System.Reflection.Emit\Release\net10.0\System.Reflection.Emit.dll' in any of the provided search directories.
  Could not resolve reference 'System.Runtime.InteropServices.dll' directly or transitively referenced by 'C:\gh\runtime2\artifacts\obj\System.Reflection.Emit\Release\net10.0\System.Reflection.Emit.dll' in any of the provided search directories.
  Could not resolve reference 'System.Linq.dll' directly or transitively referenced by 'C:\gh\runtime2\artifacts\obj\System.Reflection.Emit\Release\net10.0\System.Reflection.Emit.dll' in any of the provided search directories.
  Could not resolve reference 'System.Collections.dll' directly or transitively referenced by 'C:\gh\runtime2\artifacts\obj\System.Reflection.Emit\Release\net10.0\System.Reflection.Emit.dll' in any of the provided search directories.
  Could not resolve reference 'System.Memory.dll' directly or transitively referenced by 'C:\gh\runtime2\artifacts\obj\System.Reflection.Emit\Release\net10.0\System.Reflection.Emit.dll' in any of the provided search directories.
  Could not resolve reference 'System.Threading.dll' directly or transitively referenced by 'C:\gh\runtime2\artifacts\obj\System.Reflection.Emit\Release\net10.0\System.Reflection.Emit.dll' in any of the provided search directories.
  Could not resolve reference 'System.Collections.dll' directly or transitively referenced by 'C:\gh\runtime2\artifacts\obj\System.Reflection.Emit\Release\net10.0\System.Reflection.Emit.dll' in any of the provided search directories.
  Could not resolve reference 'System.IO.Compression.dll' directly or transitively referenced by 'C:\gh\runtime2\artifacts\obj\System.Reflection.Emit\Release\net10.0\System.Reflection.Emit.dll' in any of the provided search directories.
  Could not resolve reference 'System.Threading.dll' directly or transitively referenced by 'C:\gh\runtime2\artifacts\obj\System.Reflection.Emit\Release\net10.0\System.Reflection.Emit.dll' in any of the provided search directories.
  Could not resolve reference 'System.IO.MemoryMappedFiles.dll' directly or transitively referenced by 'C:\gh\runtime2\artifacts\obj\System.Reflection.Emit\Release\net10.0\System.Reflection.Emit.dll' in any of the provided search directories.
  Could not resolve reference 'System.Text.Encoding.Extensions.dll' directly or transitively referenced by 'C:\gh\runtime2\artifacts\obj\System.Reflection.Emit\Release\net10.0\System.Reflection.Emit.dll' in any of the provided search directories.

It doesn't fail the build and is not listed as a build warning in the final summary:

Build succeeded.
    0 Warning(s)
    0 Error(s)

@ViktorHofer Same as #113083, dotnet/sdk#46236?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions