mirror of
https://github.com/2dust/v2rayN.git
synced 2026-05-30 01:34:08 +00:00
Removes the repository-level NoWarn suppression from Directory.Build.props and addresses the warnings that surface on top of the .NET 10 migration in #9179, keeping Debug, Release, and cross-platform publishes warning-free without suppressing warnings globally. Changes: - Removes <NoWarn>CA1031;CS1591;NU1507;CA1416;IDE0058;IDE0053;IDE0200</NoWarn> from Directory.Build.props. - Annotates Windows-only APIs with [SupportedOSPlatform] and [SupportedOSPlatformGuard] so CA1416 accepts that the Windows surface is gated behind Utils.IsWindows() / Utils.IsNonWindows(). - Splits Utils.SetUnixFileMode into a cross-platform wrapper and a private [UnsupportedOSPlatform("windows")] implementation so File.SetUnixFileMode never reaches the analyzer on Windows builds. - Adds a parameterless constructor to MessageBoxDialog so Avalonia's runtime XAML loader (AVLN3001) can instantiate the dialog. - Moves the WPF high-DPI configuration from app.manifest to <ApplicationHighDpiMode>PerMonitorV2</ApplicationHighDpiMode> in v2rayN.csproj, fixing WFO0003. - Adds global using System.Runtime.Versioning; to ServiceLib and v2rayN.Desktop so the platform attributes are usable project-wide.
41 lines
1.4 KiB
C#
41 lines
1.4 KiB
C#
global using System.Collections.Concurrent;
|
|
global using System.Diagnostics;
|
|
global using System.Net;
|
|
global using System.Net.NetworkInformation;
|
|
global using System.Net.Sockets;
|
|
global using System.Reactive;
|
|
global using System.Reactive.Disposables;
|
|
global using System.Reactive.Linq;
|
|
global using System.Reflection;
|
|
global using System.Runtime.InteropServices;
|
|
global using System.Runtime.Versioning;
|
|
global using System.Security.Cryptography;
|
|
global using System.Text;
|
|
global using System.Text.Encodings.Web;
|
|
global using System.Text.Json;
|
|
global using System.Text.Json.Nodes;
|
|
global using System.Text.Json.Serialization;
|
|
global using System.Text.RegularExpressions;
|
|
global using DynamicData;
|
|
global using DynamicData.Binding;
|
|
global using ReactiveUI;
|
|
global using ReactiveUI.Fody.Helpers;
|
|
global using ServiceLib.Base;
|
|
global using ServiceLib.Common;
|
|
global using ServiceLib.Enums;
|
|
global using ServiceLib.Events;
|
|
global using ServiceLib.Handler;
|
|
global using ServiceLib.Handler.Builder;
|
|
global using ServiceLib.Handler.Fmt;
|
|
global using ServiceLib.Handler.SysProxy;
|
|
global using ServiceLib.Helper;
|
|
global using ServiceLib.Manager;
|
|
global using ServiceLib.Models.CoreConfigs;
|
|
global using ServiceLib.Models.Configs;
|
|
global using ServiceLib.Models.Dto;
|
|
global using ServiceLib.Models.Entities;
|
|
global using ServiceLib.Resx;
|
|
global using ServiceLib.Services;
|
|
global using ServiceLib.Services.CoreConfig;
|
|
global using ServiceLib.Services.Statistics;
|
|
global using SQLite;
|