Skip to content

Conversation

@markekraus
Copy link
Contributor

@markekraus markekraus commented Jan 10, 2018

PR Summary

Document breaking changes in the Web Cmdlets due to switching .NET APIs and lack of IE interop.

WIP until I verify .spelling.

Reference ##5620

PR Checklist

Note: Please mark anything not applicable to this PR NA.

@markekraus markekraus changed the title WIP: Update BREAKINGCHANGES.md to Include Web Cmdlets Breaking Changes Update BREAKINGCHANGES.md to Include Web Cmdlets Breaking Changes Jan 11, 2018

### Changes to Web Cmdlets

The underlying .NET API of the Web Cmdlets has been changed to `System.Net.Http.HttpClient`. This change provides many benefits.
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

I think the end of the first sentence should be:
due to differences between .Net and CoreFx.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe - .Net Framework and .Net Core.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But that change actually doesn't have anything to do with .NET Core and .NET Framework? Unless I'm mistaken, WebRequest still exists in .NET Core. The decision to move to HttpClient appeared to be more about performance, code simplification, and it being a better fit for these cmdlets and nothing about any particular .NET Core limitations.

As for semantic line breaks.. after reading that document I have no clue what I need to do there. Sentences on separate lines?

Copy link
Member

Choose a reason for hiding this comment

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

@markekraus when the webcmdlets were initially ported, only dotnetcore 1.x was available and only HttpClient was available. This has changed with dotnetcore 2.0 and we didn't go back and revert the code change (remember we only moved to dotnetcore 2.0 for RC1). Maybe it doesn't matter to bring up history since it's no longer applicable.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, good to know. What should I say here then?

Copy link
Collaborator

Choose a reason for hiding this comment

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

remember we only moved to dotnetcore 2.0 for RC1

Move to the official .NET Core 2.0 #4603 - august 2017.
Move powershell to .NET Core 2.0 (preview) #3556 - april 2017.

Copy link
Member

Choose a reason for hiding this comment

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

Sorry, meant beta

Copy link
Member

Choose a reason for hiding this comment

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

@markekraus upon reflection, let's just leave it the way you wrote it except add a line break :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed.

@iSazonov iSazonov self-assigned this Jan 11, 2018
@iSazonov iSazonov merged commit 3e9a530 into PowerShell:master Jan 13, 2018
@markekraus markekraus deleted the DocumentWebCmdletsBreakingChanges branch January 19, 2018 18:57
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.

3 participants