-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CS8785 when adding a locally built copy of Windows.Win32.winmd #1176
Comments
Looks like I can cheat and use |
Updating the win32metadata projection is typically done with a PackageReference, which will then override the one brought in by the cswin32 dependency. But if you really want to bring in your locally built one directly, you can add a PackageReference to the public win32metadata package with |
Thanks @AArnott. Feel free to close if this is out of scope. |
I think I'll improve the error reporting for this case. |
Actual behavior
After adding a reference to a custom projection metadata winmd, the source generator fails with the following warning:
Expected behavior
No warning / source generation to function
Repro steps
Context
LangVersion
(if explicitly set by project): N/AThe text was updated successfully, but these errors were encountered: