Skip to content

VSTHRD001 error - unable to load system.memory #1608

Closed

Description

@poasungoh

Bug description

When perform release mode build using Visual Studio 2022
Encounter errors

AD0001	Analyzer 'Microsoft.VisualStudio.Threading.Analyzers.CSharpVSTHRD001UseSwitchToMainThreadAsyncAnalyzer' threw an exception of type 'System.IO.FileNotFoundException' with message 'Could not load file or assembly 'System.Memory, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.'

Expected behavior

Expected System.Memory.dll are bundle into the Microsoft.VisualStudio.Threading.Analyzers 18.7.23

Actual behavior

Error when build in release mode in Visual Studio 2022

  • Version used:
  • Microsoft.VisualStudio.Threading.Analyzers 18.7.23

Additional context

Add any other context about the problem here.

Activity

  1. merlinschumacher commented on Jul 2, 2026

    @merlinschumacher

    My colleague sees this on Vs 2022 as well. I'm on VS 2026 and don't see it.

  2. added a commit that references this issue on Jul 8, 2026
    d0e8b43
  3. added a commit that references this issue on Jul 8, 2026
    410f74a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions