-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Remove duplicated interop structures in PlatformDetection and ones from src/common instead #27462
Comments
Hello, I'm removing these duplicates. Did for |
Right, if we use the same interop code in multiple places that isn't yet in the shared Common folder, we should put it there. |
@artkpv I sent you a collaborator link. If you accept, I can assign this issue to you. Note: being a collaborator auto subscribes to the repo, you may want to adjust that after accepting. |
Reporting the progress. Now I've stopped at getting |
If you push your changes I can take a look. EDIT: I see they are already pushed. I'll take a look later. |
@artkpv you are getting this error because |
@Anipik Yes, missed that. This is to reuse Update. Seems to relate to #16030 |
I dont see any difficulty\problem in combining SafeTokenHandle class from https://github.com/dotnet/corefx/blob/d2b05edb02129eb8aad4331feb7e5b920afbb4c5/src/System.Diagnostics.Process/src/Microsoft/Win32/SafeHandles/SafeTokenHandle.cs and https://github.com/dotnet/corefx/blob/a10890f4ffe0fadf090c922578ba0e606ebdd16c/src/System.Security.AccessControl/src/System/Security/SafeSecurityHandles.cs cc @danmosemsft |
@Anipik It is unfinished from #16030 times. After looking at it more, the same is here and there. Probably should be ticket for this. Below is the list of files with the same class as I see.
And 8 versions for So where what should we use? :) Probably we can use only |
@ViktorHofer I guess this issue can be closed. I'm going to make another issue for the above comment. |
Thanks a lot! |
A lot of interop structures are copied. We should instead just include these structure from the common location: dotnet/corefx#32433 (comment)
The text was updated successfully, but these errors were encountered: