Skip to content

CollectMetadataPaths should report an error when there is no metadata instead of returning an empty array #1260

Open
@arsdragonfly

Description

Actual behavior

CsWin32 emits "Method, type or constant "xxx" not found error when metadata isn't found at all.

Expected behavior

CsWin32 should clearly state an error that the metadata cannot be found.

Repro steps

Irrelevant, but here's how I painstakingly WinDbg'd csc only to find out that the property isn't passed down to the compiler. Still need to figure out how that happened in my environment but that'll be an issue with my environment's setup.
image

Context

  • CsWin32 version: 0.3.106
  • Win32Metadata version: 60.0.34-preview
  • Target Framework: net472
  • LangVersion : 7.3

Metadata

Assignees

No one assigned

    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