Remove unwanted String.Split methods from Reference assembly#7212
Conversation
|
@weshaggard these overloads Jose removing are not existing in Xamarin, but do you think we need to have them in Net Standard 2.0? |
|
@joperezr LGTM if Wes don't want to include these into .net standard 2.0. thanks. |
|
Windows_NT arm Cross failures are not related to my change, It looks like every PR is hitting that now. @jkotas is this a known issue? |
Sure, with my last PR I added them to the ref project, but I didn't add them to model.xml so they are being removed from System.Private.CoreLib via BclRewriter. This caused that assemblies in corefx side like System.Runtime.Extensions who are also referencing the coreclr targetting pack to think that these methods exist at compile time, but they don't exist at runtime. One class in particular, Two ways to fix this, either add these methods to the implementation by adding them to model.xml, or remove them from the ref assembly given that they are not part of the set we want to add now. I thought the latter, hence this PR. I could also add them to model.xml if you want me to instead. |
These are already in model.xml. But none of these should be exposed from any reference assembly yet. As an aside, |
|
So, I believe the correct fix is to update this PR to remove the four new |
|
FYI, |
|
LGTM. @justinvp this mscorlib ref is only for corefx consumption and should match what is in S.P.CoreLib so it is fine for the new APIs to be in here. |
Oh, I see. In that case, could we start calling the new |
|
@justinvp We can only do that for things that are directly building against .NET Core/CoreCLR here. There is a lot of shared code in corefx that builds for other targets as well so it isn't something we can move to holistically just yet. |
|
@weshaggard Got it. Thanks! 😄 |
When merging #7142 I added some Split overloads to string that we really didn't wanted to so this change is removing them. We caught this because I only added them to the reference assembly and didn't add them to model.xml, so these methods were not found at runtime. This is the reason why tests in dotnet/corefx#11706 are failing.
cc: @tarekgh