Skip to content

adding microsoft.powershell.diagnostics.dll to build - #1111

Merged
sergei (vors) merged 8 commits into
masterfrom
cchen/diagnostics
Jun 15, 2016
Merged

sergei (vors) merged 8 commits into
masterfrom
cchen/diagnostics

Conversation

@chunqingchen

Copy link
Copy Markdown
Contributor

adding microsoft.powershell.diagnostics.dll to build
this part of #1031

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The resource file is missing here.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was 1 txt file with resources, but we didn't find is it used somewhere or not. We can add it later (better to avoid add stuff that we don't use).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably document this in the commit and known issues.

@daxian-dbw Dongbo Wang (daxian-dbw) Jun 15, 2016 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sergei (@vors) The txt file resource is used in the dll. In SD, .resources file is generated out of the txt file and gets built in the dll. In the dll, the resource is used by

_resourceMgr = new ResourceManager("GetEventResources", typeof(GetWinEventCommand).GetTypeInfo().Assembly);

and places like

_resourceMgr.GetString("LogInfoUnavailable"),

So if we don't get the resource file built in the dll in PowerShell, it would fail at run time.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, another case of #763

@andyleejordan

Copy link
Copy Markdown
Member

Chunqing Chen (@chunqingchen) Could you update the PR title? This isn't very specific:

braUpdate unavailable cmdlets

But this follows the guidelines:

Add Microsoft.PowerShell.Commands.Diagnostics

Which, by the way, is awesome 😄

The commits 1ff26b40997676aea326e2041c7d9f294e9772df, bdae84ec428ee583cf1957f18042e8aa4edd3015, and 195e4587f5c1f8f3c6102f251c9370fef72e5de6 don't seem to have the correct email, and the others' committer doesn't have a recognized email either. Not sure what's up with this, did you set git config --global user.email?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where did this go? This is necessary for the resource bindings, and needs to be included for both frameworks.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are non currently

@chunqingchen Chunqing Chen (chunqingchen) changed the title braUpdate unavailable cmdlets adding microsoft.powershell.diagnostics.dll to build Jun 15, 2016
@vors
sergei (vors) merged commit 42cca87 into master Jun 15, 2016
@vors
sergei (vors) deleted the cchen/diagnostics branch June 15, 2016 23:09
@andyleejordan

Copy link
Copy Markdown
Member

sergei (@vors) this was not ready to be merged.

Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
adding microsoft.powershell.diagnostics.dll to build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants