From a431ad8d454dbb5cec9f75a434eeb5031b510f68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Sim=C3=B5es?= Date: Mon, 31 Mar 2025 16:37:57 +0100 Subject: [PATCH] Remove `GC` class - Moved to mscorlib. --- nanoFramework.Runtime.Native/GC.cs | 42 ------------------- .../Properties/AssemblyInfo.cs | 8 +--- .../nanoFramework.Runtime.Native.nfproj | 4 +- 3 files changed, 3 insertions(+), 51 deletions(-) delete mode 100644 nanoFramework.Runtime.Native/GC.cs diff --git a/nanoFramework.Runtime.Native/GC.cs b/nanoFramework.Runtime.Native/GC.cs deleted file mode 100644 index 33c861c..0000000 --- a/nanoFramework.Runtime.Native/GC.cs +++ /dev/null @@ -1,42 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -using System.Runtime.CompilerServices; - -namespace nanoFramework.Runtime.Native -{ - /// - /// Provides a set of methods and properties for interacting with the garbage collector. - /// - public static class GC - { -#pragma warning disable S4200 // Native methods should be wrapped - - /// - /// Forces an immediate garbage collection of all generations. - /// - /// - /// to force heap compaction; otherwise, . - /// - /// - /// The amount of free memory, in bytes, after the garbage collection. - /// - [MethodImpl(MethodImplOptions.InternalCall)] - public static extern uint Run(bool compactHeap); - - /// - /// Enables or disables the output of garbage collection messages. - /// - /// - /// to enable the output of GC messages; otherwise, . - /// - /// - /// Enabling GC messages may not always result in output, depending on the target build options. - /// For example, RTM builds, which remove all non-essential features, may not output these messages. - /// - [MethodImpl(MethodImplOptions.InternalCall)] - public static extern void EnableGCMessages(bool enable); - -#pragma warning restore S4200 // Native methods should be wrapped - } -} diff --git a/nanoFramework.Runtime.Native/Properties/AssemblyInfo.cs b/nanoFramework.Runtime.Native/Properties/AssemblyInfo.cs index 245ba4d..8a9711a 100644 --- a/nanoFramework.Runtime.Native/Properties/AssemblyInfo.cs +++ b/nanoFramework.Runtime.Native/Properties/AssemblyInfo.cs @@ -5,7 +5,6 @@ // set of attributes. Change these attribute values to modify the information // associated with an assembly. using System.Reflection; -using System.Runtime.InteropServices; [assembly: AssemblyTitle("nanoFramework.Runtime.Native")] [assembly: AssemblyCompany("nanoFramework Contributors")] @@ -14,10 +13,5 @@ //////////////////////////////////////////////////////////////// // update this whenever the native assembly signature changes // -[assembly: AssemblyNativeVersion("100.0.10.0")] +[assembly: AssemblyNativeVersion("100.0.11.0")] //////////////////////////////////////////////////////////////// - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] diff --git a/nanoFramework.Runtime.Native/nanoFramework.Runtime.Native.nfproj b/nanoFramework.Runtime.Native/nanoFramework.Runtime.Native.nfproj index 90dec25..2fbf1c7 100644 --- a/nanoFramework.Runtime.Native/nanoFramework.Runtime.Native.nfproj +++ b/nanoFramework.Runtime.Native/nanoFramework.Runtime.Native.nfproj @@ -12,7 +12,8 @@ 4C4AA37C-19D9-4C41-ADD0-BA83A0E593DA Library 512 - + + nanoFramework.Runtime.Native v1.0 True @@ -44,7 +45,6 @@ -