Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit e7f53c5

Browse files
Paulo Janottidanmoseley
authored andcommitted
WMI: PNSE requesting .NET Fx update if native dll too old (#26137)
* WMI: PNSE requesting .NET Fx update if native dll too old Fixes #26081 * @jkotas review feedback
1 parent f6dd4b3 commit e7f53c5

File tree

3 files changed

+132
-313
lines changed

3 files changed

+132
-313
lines changed

src/System.Management/src/Resources/Strings.resx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,4 +287,10 @@
287287
<data name="PlatformNotSupported_FullFrameworkRequired" xml:space="preserve">
288288
<value>Could not find an installation of .NET Framework v4.0.30319. System.Management requires native modules from the .NET Framework to operate.</value>
289289
</data>
290+
<data name="LoadLibraryFailed" xml:space="preserve">
291+
<value>Failed to load required native library '{0}'.</value>
292+
</data>
293+
<data name="PlatformNotSupported_FrameworkUpdatedRequired" xml:space="preserve">
294+
<value>The native library '{0}' does not have all required functions. Please, update the .NET Framework.</value>
295+
</data>
290296
</root>

src/System.Management/src/System.Management.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
<Compile Include="System\Management\InteropClasses\WMIInterop.cs" />
6161
</ItemGroup>
6262
<ItemGroup>
63+
<Reference Include="Microsoft.Win32.Primitives" />
6364
<Reference Include="Microsoft.Win32.Registry" />
6465
<Reference Include="System.CodeDom" />
6566
<Reference Include="System.Security.Permissions" />

0 commit comments

Comments
 (0)