Closed ramjke closed 1 year ago
Can you please attach a full repro? Your repro instructions don't include mention of two projects, but I can't imagine this failure without two projects being involved. In addition, the steps you do include look correct (e.g. you set public: true
) in the json file, so the APIs should be public, making me wonder if the error you see is coming from a different project that doesn't set that value. So a full repro is necessary to investigate this.
Closing due to no response.
I'm seeing it with one project.
@gavin-williams if you can share a repro, I'm willing to take a look. But if you see my earlier reply, I'm pretty sure it'll fall into that case which can be solved.
Actual behavior
The build is successful, but Visual Studio 17 shows an error: 'PInvoke' is inaccessible due to its protection level.
Expected behavior
There should be no error.
Repro steps
NativeMethods.txt
content:NativeMethods.json
content (if present):Any of your own code that should be shared?
Context
LangVersion
(if explicitly set by project): 10