Skip to content

Resources are missing from Microsoft.Management.Infrastructure nuget package #1204

Closed

Description

Steps to reproduce

get-pnpdevice | Select-Object -First 1 | Get-PnpDeviceProperty
or
Get-PhysicalDisk | Select-Object -First 1 | Get-StorageAdvancedProperty
or

[10.123.172.187]: PS C:\Users\LocalAdmin\Documents>  $serviceTypes = @{
                 'Kernel Driver'=1;
                 'File System Driver'=2;
                 'Adapter'=4;
                 'Recognizer Driver'=8;
                 'Own Process'=16;
                 'Share Process'=32;
                 'Interactive Process'=256
             }
 $original = Get-CimInstance Win32_Service -filter "Name='wuauserv'"
 $res = $original | Invoke-CimMethod -methodname Change -Arguments @{ServiceType=$serviceTypes["Own Process"]}

Expected behavior

It should work

Actual behavior

... Could not find any resources
appropriate for the specified culture or the neutral culture.  Make sure
"Microsoft.Management.Infrastructure.Strings.resources" was correctly embedded or linked into assembly
"Microsoft.Management.Infrastructure" at compile time, or that all the satellite assemblies required are loadable
and fully signed.
    + CategoryInfo          : NotSpecified: (Win32_PnPEntity:String) [Get-PnpDeviceProperty], CimJobException
    + FullyQualifiedErrorId : CimJob_MissingManifestResourceException,Get-PnpDeviceProperty

Environment data

v0.5.0

> $PSVersionTable

Name                           Value
----                           -----
PSEdition                      Core
PSRemotingProtocolVersion      2.3
BuildVersion                   3.0.0.0
PSVersion                      5.1.10032.0
CLRVersion
WSManStackVersion              3.0
SerializationVersion           1.1.0.1
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
$ dotnet --info
.NET Command Line Tools (1.0.0-preview2-003121)

Product Information:
 Version:            1.0.0-preview2-003121
 Commit SHA-1 hash:  1e9d529bc5

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.14371
 OS Platform: Windows
 RID:         win10-x64

$ git rev-parse HEAD; git status

Activity

  1. vors commented on Jun 25, 2016

    @vors
    Collaborator

    Travis Plunk (@TravisEz13) I noticed that you don't populate "Environment data", i.e. your recent bugs it says v0.4.0 (which is really old vesion).
    My original thinking was: ever put version of the product, if issue found in the released version or put second section info (info about git tree and dotnet --info).

    Do we need more clear documentation in the template for this section?
    How we can improve the template?

  2. andyleejordan commented on Jun 25, 2016

    @andyleejordan
    Member

    I think prepopulating with a version is the problem. We should explicitly ask for PSVersionTable and dotnet --info, and if it's not filled in, then at least we don't have misleading information.

  3. TravisEz13 commented on Jun 27, 2016

    @TravisEz13
    MemberAuthor

    sergei (@vors) Andy Jordan (@andschwa) populating this for every issue is very time-consuming. I've updated the template with most of the info

  4. added
    Issue-Bug
    WG-Maintainers-Build
    on Jun 27, 2016
  5. added this to the Aug17 milestone on Jun 27, 2016
  6. TravisEz13 commented on Jun 29, 2016

    @TravisEz13
    MemberAuthor

    sergei (@vors) This was solved by this change in the installation manifest (skipping Microsoft.Management.Infrastructure.dll and Microsoft.Management.Infrastructure.Native.dll). I don't think this is a build issue. Unless you want to keep it open for the nuGet issue you were talking about.

  7. vors commented on Jun 29, 2016

    @vors
    Collaborator

    I will keep it open, I think we don't add resources in nuget packages at the moment and we should.
    Or better replace nuget packages by reference-only packages.

  8. modified the milestones: Aug17, v0.7.0 on Jul 1, 2016
  9. changed the title [-]resources error in master SD[/-] [+]Resources are missing from Microsoft.Management.Infrastructure nuget package[/+] on Jul 5, 2016
  10. 3 remaining items

  11. vors commented on Jul 14, 2016

    @vors
    Collaborator

    Fixed in #1367

  12. daxian-dbw commented on Jul 15, 2016

    @daxian-dbw
    Member

    #1367 covers cimcmdlet, wsman.management and wsman.runtime, but not MMI.

  13. vors commented on Jul 15, 2016

    @vors
    Collaborator

    My bad, too many assemblies, I messed up. :)

  14. modified the milestones: 6.0.0-alpha.8, on Jul 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Issue-BugResolution-FixedWG-Maintainers-Build

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions