Skip to content

Commit 9285414

Browse files
authored
Remove Console class (#126)
1 parent 702b485 commit 9285414

File tree

5 files changed

+9
-35
lines changed

5 files changed

+9
-35
lines changed

nanoFramework.CoreLibrary/Friends.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@
99
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("nanoFramework.ResourceManager, PublicKey=00240000048000009400000006020000002400005253413100040000010001001120aa3e809b3da4f65e1b1f65c0a3a1bf6335c39860ca41acb3c48de278c6b63c5df38239ec1f2e32d58cb897c8c174a5f8e78a9c0b6087d3aef373d7d0f3d9be67700fc2a5a38de1fb71b5b6f6046d841ff35abee2e0b0840a6291a312be184eb311baff5fef0ff6895b9a5f2253aed32fb06b819134f6bb9d531488a87ea2")]
1010
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("nanoFramework.System.Collections, PublicKey=00240000048000009400000006020000002400005253413100040000010001001120aa3e809b3da4f65e1b1f65c0a3a1bf6335c39860ca41acb3c48de278c6b63c5df38239ec1f2e32d58cb897c8c174a5f8e78a9c0b6087d3aef373d7d0f3d9be67700fc2a5a38de1fb71b5b6f6046d841ff35abee2e0b0840a6291a312be184eb311baff5fef0ff6895b9a5f2253aed32fb06b819134f6bb9d531488a87ea2")]
1111
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("nanoFramework.System.Text, PublicKey=00240000048000009400000006020000002400005253413100040000010001001120aa3e809b3da4f65e1b1f65c0a3a1bf6335c39860ca41acb3c48de278c6b63c5df38239ec1f2e32d58cb897c8c174a5f8e78a9c0b6087d3aef373d7d0f3d9be67700fc2a5a38de1fb71b5b6f6046d841ff35abee2e0b0840a6291a312be184eb311baff5fef0ff6895b9a5f2253aed32fb06b819134f6bb9d531488a87ea2")]
12+
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("nanoFramework.UnitTestLauncher, PublicKey=00240000048000009400000006020000002400005253413100040000010001001120aa3e809b3da4f65e1b1f65c0a3a1bf6335c39860ca41acb3c48de278c6b63c5df38239ec1f2e32d58cb897c8c174a5f8e78a9c0b6087d3aef373d7d0f3d9be67700fc2a5a38de1fb71b5b6f6046d841ff35abee2e0b0840a6291a312be184eb311baff5fef0ff6895b9a5f2253aed32fb06b819134f6bb9d531488a87ea2")]

nanoFramework.CoreLibrary/System/AssemblyInfo.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@
66

77
using System;
88
using System.Reflection;
9-
using System.Runtime.CompilerServices;
109

1110
[assembly: CLSCompliant(true)]
1211
[assembly: AssemblyTitle("mscorlib")]
13-
[assembly: AssemblyCompany("nanoFramework Contributors")]
14-
[assembly: AssemblyProduct("nanoFramework mscorlib")]
12+
[assembly: AssemblyCompany(".NET nanoFramework Contributors")]
13+
[assembly: AssemblyProduct(".NET nanoFramework mscorlib")]
1514
[assembly: AssemblyCopyright("Copyright (c) .NET Foundation and Contributors")]
1615

17-
[assembly: AssemblyNativeVersion("100.5.0.5")]
16+
[assembly: AssemblyNativeVersion("100.5.0.6")]
Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,14 @@
11
//
22
// Copyright (c) .NET Foundation and Contributors
3-
// Portions Copyright (c) Microsoft Corporation. All rights reserved.
43
// See LICENSE file in the project root for full license information.
54
//
65

76
namespace System
87
{
9-
using Runtime.CompilerServices;
10-
11-
/// <summary>
12-
/// Represents the standard input, output, and error streams for console applications. This class cannot be inherited.
13-
/// </summary>
14-
[Serializable]
15-
public static class Console
8+
internal static class Console
169
{
17-
[MethodImpl(MethodImplOptions.InternalCall)]
18-
extern static private void OutNative(string text, bool addLineFeed);
19-
20-
/// <summary>
21-
/// Writes the specified string value to the standard output stream.
22-
/// </summary>
23-
/// <param name="value">The value to write.</param>
24-
[Obsolete("This method is going to be removed in a future version. Call Debug.Write instead.")]
25-
public static void Write(string value)
26-
{
27-
OutNative(value, false);
28-
}
10+
internal static void Write(string value) => Diagnostics.Debug.WriteLineNative(value, false);
2911

30-
/// <summary>
31-
/// Writes the specified string value, followed by the current line terminator, to the standard output stream.
32-
/// </summary>
33-
/// <param name="value">The value to write.</param>
34-
[Obsolete("This method is going to be removed in a future version. Call Debug.Write instead.")]
35-
public static void WriteLine(string value)
36-
{
37-
OutNative(value, true);
38-
}
12+
internal static void WriteLine(string value) => Diagnostics.Debug.WriteLineNative(value, true);
3913
}
4014
}

nanoFramework.CoreLibrary/System/Diagnostics/Debug.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,6 @@ static public void Assert(bool condition, string message, string detailedMessage
7878

7979

8080
[MethodImpl(MethodImplOptions.InternalCall)]
81-
extern static private void WriteLineNative(string text, bool addLineFeed);
81+
static extern internal void WriteLineNative(string text, bool addLineFeed);
8282
}
8383
}

version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
3-
"version": "1.10.1-preview.{height}",
3+
"version": "1.10.2-preview.{height}",
44
"assemblyVersion": {
55
"precision": "revision"
66
},

0 commit comments

Comments
 (0)