From 23289fac698fc4a02f298b33ff6352fea3c7eb12 Mon Sep 17 00:00:00 2001 From: arenekosreal <17194552+arenekosreal@users.noreply.github.com> Date: Mon, 2 Feb 2026 21:47:46 +0800 Subject: [PATCH] Remove ExtensionAttribute from LinqBridge.cs Removed the ExtensionAttribute definition from the namespace System.Runtime.CompilerServices. This causes `CS1685` warning when building on dotnet 10.0. This attribute should exist in `netstandard2.1` and `net4.5` target frameworks according to [documentation](https://learn.microsoft.com/en-us/dotnet/api/system.runtime.compilerservices.extensionattribute?view=net-10.0#applies-to). Only mono platform may missing this before net4.0, but that target framework is not in our list now. --- PathLib/Utils/LinqBridge.cs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/PathLib/Utils/LinqBridge.cs b/PathLib/Utils/LinqBridge.cs index c4b4d3e..4bc42d9 100644 --- a/PathLib/Utils/LinqBridge.cs +++ b/PathLib/Utils/LinqBridge.cs @@ -35,13 +35,6 @@ #pragma warning disable 1591 -namespace System.Runtime.CompilerServices -{ - [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class - | AttributeTargets.Method)] - public sealed class ExtensionAttribute : Attribute { } -} - namespace PathLib.Utils { ///