Skip to content

Conversation

@reflectronic
Copy link
Contributor

There is nothing Windows-specific or CoreCLR specific about these functions, so I moved them to the shared partition and removed the SupportedOSPlatformAttribute.

Testing these on non-Windows platforms is hard, because you can't get an IUnknown-like object from the operating system or from the runtime. It would be easier if ComWrappers was enabled on all platforms (#36582). If desired, the use of Marshal.GetIUnknownForObject can be replaced with something like a custom struct.

@ghost
Copy link

ghost commented Apr 10, 2021

Note regarding the new-api-needs-documentation label:

This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change.

}
}

[Fact]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to have test coverage for the success cases on Unix as well, but I understand that it is not easy to add it at the moment. It should be easier to add once we have ComWrappers for Unix. I think it is ok to merge this with the missing test coverage and open an issue to add it later.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jkotas jkotas merged commit 3cbbade into dotnet:main Apr 11, 2021
@ghost ghost locked as resolved and limited conversation to collaborators May 11, 2021
@karelz karelz added this to the 6.0.0 milestone May 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants