-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Use ComHost generation code from HostModel. #3884
Use ComHost generation code from HostModel. #3884
Conversation
The reason why I didn't want to take System.Text.Json in a fast approaching release in a nuthsell:
|
This is going to come down to the age old issue of binding redirects being needed on framework vs. msbuild tasks which can't provide them, I think. There's a ref to version 4.0.1.0 but I think we have 4.0.1.1. MSBuild itself actually depends on this, but does not have a binding redirect for it. |
@ericstj I don't suppose we can ask for System.Text.Json out of master to have a ref graph with at most one version per assembly, like we managed to arrange for MetadataLoadContext. I think at this point, with this targeting 5.0, I'd prefer to look for a more sustainable solution. |
@ericstj any chance you can help out with Nick's question? |
Sorry I missed this. Could be possible, depends on what we need to target. I'll file an issue. |
Actually, If I install the latest System.Text.Json it references System.Memory 4.0.1.1 so we may have already fixed this. Can you double check @nguerrera? |
…ky/sdk into use-hostmodel-comhost
It looks like Microsoft.NET.HostModel is still compiling against an older System.Text.Json. The subscriptions in dotnet/runtime haven't been updated, and as a result the reference is out of date. I'll open an issue on dotnet/runtime about it. |
@ericstj I just built System.Text.Json locally and I don't see it referencing System.Memory 4.0.1.1, I only see it referencing 4.0.1.0. Where are you seeing the updated version reference? |
I looked at the last shipping package.
Indeed if I look at the state of dotnet/runtime I confirm what you're seeing. Something regressed this post 3.x. I'll see what's going on. |
I just tested this PR with a HostModel built against System.Text.Json 4.7.0 and it worked, so I'm going to go with that for now while we try to figure out what regressed post 3.x. |
I found the regression and put up a PR to fix it. |
@jkoritzinsky @ericstj What's the status of this? |
It’s blocked on dotnet/runtime#2115 which is blocked on dotnet/runtime#1918 |
…ices.Unsafe version.
Finally, this PR is green! @nguerrera @wli3 any other feedback? I'll merge this in by EOD if I don't hear anything. |
Yay! |
Now that the ComHost generation code exists in
Microsoft.NET.HostModel
, change the sdk to use that implementation instead of the one in the SDK itself.cc: @nguerrera