-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add reference assembly for System.Private.CoreLib.dll (#75311)
We now compile against the reference assembly in all places where we were compiling against the mono/coreclr System.Private.CoreLib.dll implementation assembly before. The new reference assembly consumes sources from the existing contracts to avoid checking in a generated version of SPC.dll (this would add ~20k lines of .cs which is mostly duplicated with System.Runtime.cs) Since a few contracts have only partially moved types to SPC we wrap contract types with `#if !BUILDING_CORELIB_REFERENCE` so we can hide them when compiling the SPC reference assembly.
- Loading branch information
1 parent
bc65e68
commit 7e31494
Showing
17 changed files
with
378 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
src/libraries/System.Diagnostics.Debug/tests/System.Diagnostics.Debug.Tests.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
src/libraries/System.Private.CoreLib/ref/System.Private.CoreLib.ExtraApis.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
// NOTE: Types/members which are not publicly exposed in System.Runtime.dll but still used internally by libraries. | ||
// Manually maintained, keep in sync with System.Private.CoreLib.ExtraApis.txt | ||
|
||
namespace System.Runtime.Serialization | ||
{ | ||
public readonly partial struct DeserializationToken : System.IDisposable | ||
{ | ||
#pragma warning disable CS0414 | ||
private readonly object _dummy = null; | ||
private readonly int _dummyPrimitive = 0; | ||
#pragma warning restore CS0414 | ||
internal DeserializationToken(object tracker) { } | ||
public void Dispose() { } | ||
} | ||
public sealed partial class SerializationInfo | ||
{ | ||
public static System.Runtime.Serialization.DeserializationToken StartDeserialization() { throw null; } | ||
} | ||
} | ||
namespace System.Diagnostics | ||
{ | ||
public partial class DebugProvider | ||
{ | ||
public DebugProvider() { } | ||
[System.Diagnostics.CodeAnalysis.DoesNotReturnAttribute] | ||
public virtual void Fail(string? message, string? detailMessage) { throw null; } | ||
public static void FailCore(string stackTrace, string? message, string? detailMessage, string errorSource) { } | ||
public virtual void OnIndentLevelChanged(int indentLevel) { } | ||
public virtual void OnIndentSizeChanged(int indentSize) { } | ||
public virtual void Write(string? message) { } | ||
public static void WriteCore(string message) { } | ||
public virtual void WriteLine(string? message) { } | ||
} | ||
public static partial class Debug | ||
{ | ||
public static System.Diagnostics.DebugProvider SetProvider(System.Diagnostics.DebugProvider provider) { throw null; } | ||
} | ||
} |
Oops, something went wrong.