Skip to content

Generator 'SourceGenerator' failed to generate source. #915

@L00pZBreak3r

Description

@L00pZBreak3r

Actual behavior

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 'ArgumentException' with message 'An item with the same key has already been added.'

Expected behavior

Successful compilation.

Repro steps

  1. NativeMethods.txt content:
CLSCTX
CoCreateInstance
CoTaskMemFree
ISpellChecker
ISpellCheckerFactory
S_FALSE
S_OK
SpellCheckerFactory
  1. NativeMethods.json content (if present):
{
  "$schema": "..\\..\\src\\Microsoft.Windows.CsWin32\\settings.schema.json"
}
  1. Any of your own code that should be shared?

Context

  • CsWin32 version: 0.2.206-beta
  • Win32Metadata version (if explicitly set by project): 49.0.21-preview
  • Target Framework: netstandard2.0
  • LangVersion (if explicitly set by project): [e.g. 9]

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions