microsoft/CsWin32

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

arsdragonfly opened this issue · 0 comments

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