Skip to content

Types are not generated when referenced project already defines them, even though they are inaccessible #43

@TIPConsulting

Description

@TIPConsulting

VS is throwing an error during compilation because of a backend file that I cannot see. Here are the details that I can see

CS0122: 'BOOL' is inaccessible due to its protection level

File: PInvoke.User32.cs, Line 36

The method endpoint is generated properly, Pinvoke.LockWorkStation() is available and no errors appear in my app code. "LockWorkStation" is the only method in my NativeMethods.txt

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