- 
                Notifications
    You must be signed in to change notification settings 
- Fork 114
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Actual behavior
Under vs 2022 - have a sln/csproj and the source generator is working correctly.
Open same sln with 2019 - then get following error
1>CSC : warning CS8785: Generator 'SourceGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'FileNotFoundException' with message 'Could not load file or assembly 'System.Collections.Immutable, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.'
Repro steps
- NativeMethods.txtcontent:
SCardEstablishContext
SCardReleaseContext
SCardListReaderGroups
SCardListReaders
SCardGetStatusChange
- NativeMethods.jsoncontent (if present):
{
  "$schema": "https://aka.ms/CsWin32.schema.json",
  "emitSingleFile": true,
  "public": true
}Context
- CsWin32 version: 0.2.206-beta
- Target Framework: .net framework 4.8
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
