-
Notifications
You must be signed in to change notification settings - Fork 118
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
Add support for .NET 5 (and later) #31
Comments
Thanks for filing this issue and providing the info. I've been super busy with life recently so I haven't had the time to give DeviceId as much love as it deserves - particularly when chasing the moving target that is netcore/net5.0/crossplat/etc. I've pushed some code which I believe will address this issue. It'll remove the dependency on the PlatformAbstractions package, and replace WMI with MMI. Would you mind having a look and letting me know if this would solve your issue? Thanks |
I know the feeling ... still DeviceId is a pretty useful library :) Your latest changes are looking good. I built the project and used it in a net5.0 console app. It seems the net5.0 issue got resolved. Thanks a lot! Please allow me to include some comments for a follow up:
Regards |
Thanks for the review, I really appreciate it.
I'll be releasing v5.3.0 later today. Thanks again for the feedback and assistance. |
Unfortunately when using this on .NET 5.0, I am running into the following issue:
After publishing |
Hi Daniel. I can't reproduce this issue on my PC - everything seems to work fine with .NET 5 on v5.3.0 of DeviceId. Are you able to put together a small example project that demonstrates that issue? What platform/runtime are you using? Cheers |
@DanielMcAssey: |
Hi there, EDIT: A @profix898 I will give that a go. The only issue is, I think we would need to distribute multiple versions of the same app For reference: PowerShell/MMI#45 |
Thanks Daniel. Not sure what to do about this one (at least until PowerShell/MMI#45 is resolved)... |
DeviceId targets .NETStandard 2.0, so in principle it should work on net5.0. Unfortunately, the project uses the obsolete platform abstraction package, which is not available for net5.0 (except for an old preview version). For that reason, it would be great to have a net5.0 target. Once #25 is merged, the net5.0 version would be identical to the netStandard version, except for the deprecated dependency.
See https://docs.microsoft.com/en-us/dotnet/core/compatibility/core-libraries/5.0/platformabstractions-package-removed for details.
The text was updated successfully, but these errors were encountered: