-
Notifications
You must be signed in to change notification settings - Fork 17
Feature Request: MMI NuGet Portable Windows RIDs #45
Comments
Right reference https://github.com/dotnet/corefx/issues/26601 |
Any update on this? This would help us a lot. Our use case is very similar to @theimowski , we do have .NET core 3.1 application which is distributed to all major OS and we would like to use Powershell.SDK but because of the missing portable RIDs in MMI it is not currently possible. |
I got permission to and transferred the issue to the correct repo. @adityapatwardhan would still be the right person. |
I've just noticed that MMI 2.0.0 has a different nupkg structure:
vs
Does it mean that MMI 2.0 supports now portable RIDs? I.e. can I publish the app to |
Win-* would not support linux... I'll have to let @adityapatwardhan speak for the rest of windows. We compile with win7-x64 for all windows environments. |
Yup that's clear What's the rationale for using We have customers still running Windows 6.0 (Server 2008), and while I'm aware that net core doesn't support that OS, I know that net core can run on that OS - would using |
@theimowski It comes from a bug in .NET really.. It chooses a non-generic windows API set when we publish fro win-x64. |
Oh that's interesting - do you have some link / reference that describes that bug? Is that documented anywhere? |
TBH, the issue may be fixed. The issue was way back in our initial release and we just have not found any reason to change it. We should try changing it as Win7 is no longer supported by .NET or PowerShell |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@ShadowXVII I'm actively working on store compatibility. PowerShell/PowerShell#12582 |
Sorry for coming late to this discussion. The reason we have so many RIDs is that the binaries are different for each OS. Though the code in mi.dll is same, the dependencies are different per OS. That was the reason for creating so many RID folder and not just using win-x64 and win-x86 |
@adityapatwardhan are the differences between the binaries documented somewhere? |
|
We accept Microsoft’s promotion and use .NET 6 Or shouldn't be a standalone release, but should use runtime to solve this kind of problem? |
After updating my App to .NET8 I get now warnings: |
Summary of the new feature/enhancement
I've posted the original question here but I'm not sure if that repo gets enough attention from PowerShell team.
Proposed technical implementation details (optional)
My use case is I have a .NET Core console application which is distributed to all major OS. For windows we want to query WMI. As far as I managed to find out, Microsoft suggest to migrate from
System.Management
dll toMicrosoft.Management.Infrastructure
- details in https://github.com/dotnet/corefx/issues/31447I'm happy to move drop System.Management in favour of MMI but my issue is that MMI currently ships with non-portable RIDs:
while we use the portable RIDs: win-x64 and win-x86 for the Self contained app.
So the request would be to publish MMI as a package with portable RIDs for windows
The text was updated successfully, but these errors were encountered: