Repository navigation
Add ICloneable back to System.Runtime contract - #9970
Conversation
We've got a bunch of types outside of mscorlib that implement this interface in desktop, and the lack of it is causing issues, e.g. https://github.com/dotnet/corefx/issues/9884. This commit adds the interface to the contract; when we subsequently update the packages, then we can start implementing this in types outside of System.Runtime (since System.Runtime is mostly a facade on System.Private.Corelib, the types it "contains" already implement the interface).
Meaning, waiting on moving to master? LGTM |
Yup. (Or alternatively enabling building, publishing, consuming packages for the dev/api branch.) Any time we update a contract that then needs to be consumed by the rest of the repo, it's basically:
Probably some other steps/nuances I'm missing that @ericstj can correct me on :) |
|
While enabling System.Runtime to build against System.Private.CoreLib I've noticed the IClonable interface doesn't exist there. It is however in the mscorlib reference assembly we are currently using. I'm investigating further understand why it is missing in System.Private.CoreLib but was in mscorlib and also has a type-forward to System.Private.CoreLib in the mscorlib facade. |
|
Hmm, it looks like it's missing in the model.xml in coreclr... I guess it's getting stripped out by the rewriter? |
|
Yeah I think I've figured out what is wrong and there are a few things missing. The mscorlib facade generation seems to be using the pre-bclrewritten version of System.Private.CoreLib. I'm going to fix that and any missing types. |
|
Great. Thanks, Wes! I opened a PR to add ICloneable to model.xml, but feel free to close it if it gets in your way / is subsumed by whatever you do. |
|
I'm glad you figured that out @weshaggard I was banging my head against it. |
Add ICloneable back to System.Runtime contract Commit migrated from dotnet/corefx@eaaf700
We've got a bunch of types outside of mscorlib that implement this interface in desktop, and the lack of it is causing issues, e.g. https://github.com/dotnet/corefx/issues/9884. This commit adds the interface to the contract; when we subsequently update the packages, then we can start implementing this in types outside of System.Runtime (since System.Runtime is mostly a facade on System.Private.Corelib, the types it "contains" already implement the interface).
cc: @danmosemsft, @ericstj