-
Notifications
You must be signed in to change notification settings - Fork 225
Fixes interoperability issue for System.Private.Uri #8833
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
cc @jaredpar as FYI |
|
This shouldn't be necessary. Generally adding a reference to System.Private.Uri is hiding a deeper issue in our dependencies. Typically a |
jaredpar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Want to understand what is driving this. Suspect this is masking a different problem
|
This PR is driving interoperability issues. I was also concerned this fix would be masking a larger issue but added the PR to get at least a little progress. This remove dependency to System.Private.Uri 4.3.0 but not the proper fix I wanted. For example on Which confirms your thoughts about it being relevant to a netstandard 1.X reference (here seems 1.6.1) |
|
@maryamariyan and I caught up offline to dig into this. In this case I think we have to add the System.Private.Uri reference. This is getting pulled in via Microsoft.VisualStudio.Telemetry. That does not have a .NET Core TFM so we use the Short term need to move forward with this. Longer term think we need to work with MS.VS.Telemetry to get a .NET Core TFM added where we can avoid this problem. |
@jaredpar the dependency of the VS telemetry package to |
That is my general inclination but I've found a few cases where using @AArnott for visibility. Not sure the best place to file a suggestion / bug on MS.VS.Telemetry package. |
|
I don't see System.Private.Uri in the project.assets.json file for MS.VS.Telemetry as it is. Are you sure it is to blame for bringing in this dependency? As for adding a net6.0 target, that'll be up to the telemetry team. I see value to doing so, especially around nullable ref annotations if they wanted to turn those on. What I don't understand is what's so bad about this System.Private.Uri reference in the first place. If you don't really need it given your TFM, such things usually compile away, don't they? |
Summary of the changes
This is a follow up PR to #8806
The rslz project picks up the older version of System.Private.Uri. Using this fix to adds direct reference to System.Private.Uri.
This makes sure the restore steps would no longer pick up the older version (4.3.0) of System.Private.Uri.