Microsoft.Management.Infrastructure.dll is delay-signed or test-signed
See original GitHub issueI am trying to use the Microsoft.Management.Infrastructure.dll as a reference in a c# project. I have downloaded the package from nuget (https://www.nuget.org/packages/Microsoft.Management.Infrastructure/) which gives me version 1.0.0.0 . I have the reference included in the build as “Copy Local: True”, and it is properly copied to my /bin/ directory.
Everything works in my development environment without issue. However, when I move the compiled output to another machine, I receive an error:
System.IO.FileLoadException: Could not load file or assembly
'Microsoft.Management.Infrastructure, Version=`1.0.0.0. Culture=neutral,
PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Strong name validation failed
I checked the signing with sn.exe and it shows the following:
`.\Microsoft.Management.Infrastructure.dll is a delay-signed or test-signed assembly`
I see that new preview versions are available on the nuget page, but I have a lot of code that relies on the methods in this .dll, and this code is targeting production, so I am very hesitant to include non-release code.
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (5 by maintainers)
@SteveL-MSFT The error indicates that this was targeting the full framework. We typically don’t strong name sign assemblies when we are intending the binary for .NET Core.
For more information see https://github.com/dotnet/runtime/issues/24803
As workaround you could use mmi.dll from PowerShell distrib.