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

moving PackUriHelper methods to S.IO.Packaging - #36493

Merged
stevenbrix merged 8 commits into
masterfrom
dev/stevenbrix/missingPackUriHelperMethods
Apr 2, 2019
Merged

stevenbrix merged 8 commits into
masterfrom
dev/stevenbrix/missingPackUriHelperMethods

Conversation

@stevenbrix

@stevenbrix stevenbrix commented Mar 29, 2019 •

Copy link
Copy Markdown
Contributor

The below methods are available in the PackUriHelper class exposed by WindowsBase. Now that this type is being removed and replaced (entirely) by the one here in S.IO.Packaging, we want to move some more functionality into this assembly.

Fixes #36459

@stevenbrix
stevenbrix requested review from ericstj and rmkerr March 29, 2019 21:50
@stevenbrix

Copy link
Copy Markdown
Contributor Author

@ericstj it looks like some tests are building against netstandard1.3 and S.IO.Packaging is getting compiled as part of that? There are a few Uri API's as part of this PR that were added in netstandard2.0, so the build fails. What is the right course of action here?

@ericstj

ericstj commented Mar 30, 2019

Copy link
Copy Markdown
Member

These aren’t tests but a build of the lib itself. We will need to ifdef/partial class. Maybe it’s easiest to just add new api only for ns2.0 and later?

@stephentoub stephentoub left a comment

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.

Thanks.

Comment thread src/System.IO.Packaging/tests/Tests.cs Resolved
Comment thread src/System.IO.Packaging/tests/Tests.cs Resolved
Comment thread src/System.IO.Packaging/tests/Tests.cs Resolved
Comment thread src/System.IO.Packaging/tests/Tests.cs Resolved
@ericstj

ericstj commented Apr 1, 2019

Copy link
Copy Markdown
Member

We can't remove the netstandard1.3 config. Instead can you put all your new code in a new file that is a partial class? I can help with this if you like.

@stevenbrix

Copy link
Copy Markdown
Contributor Author

We can't remove the netstandard1.3 config. Instead can you put all your new code in a new file that is a partial class? I can help with this if you like.

thanks eric, i'll let you know if i need any help with this

@karelz karelz added this to the 3.0 milestone Apr 1, 2019

@ericstj ericstj left a comment

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.

LGTM. Thanks for doing this!

@stevenbrix
stevenbrix merged commit b07788d into master Apr 2, 2019
@stevenbrix
stevenbrix deleted the dev/stevenbrix/missingPackUriHelperMethods branch April 2, 2019 00:08
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
* moving PackUriHelper methods to S.IO.Packaging

* moving registration of pack uri scheme to static constructor

* don't build system.io.packaging for netstandard1.3

APIs we use on Uri only exist in netstandard2

* responding to PR feedback and remove netstandard1.3 config

* adding back netstandard1.3 config

* remove system.linq reference

* fix exception message

* fixing whitespace and comment


Commit migrated from dotnet/corefx@b07788d
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants