From bd84d18212055718ed113a806d688e8213a318f9 Mon Sep 17 00:00:00 2001 From: routersys Date: Wed, 24 Jun 2026 13:56:14 +0900 Subject: [PATCH] =?UTF-8?q?.NET=2010=20SDK=20=E3=81=A7=E3=81=AE=E3=83=93?= =?UTF-8?q?=E3=83=AB=E3=83=89=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .editorconfig | 11 +++++++++++ build/Directory.Build.props | 7 ++++++- src/ComputeSharp.Win32.D2D1/.editorconfig | 5 ++++- src/ComputeSharp.Win32.D3D12/.editorconfig | 5 ++++- 4 files changed, 25 insertions(+), 3 deletions(-) diff --git a/.editorconfig b/.editorconfig index cdf31601..5a17d095 100644 --- a/.editorconfig +++ b/.editorconfig @@ -265,3 +265,14 @@ dotnet_naming_rule.parameters_must_be_camel_case.style dotnet_naming_rule.interface_types_must_be_prefixed_with_i.severity = warning dotnet_naming_rule.interface_types_must_be_prefixed_with_i.symbols = interface_types dotnet_naming_rule.interface_types_must_be_prefixed_with_i.style = prefix_interface_interface_with_i + +# .NET 10 SDK で新規追加・厳格化された解析規則のうち、上流由来コードや正しいコードを誤検知するものを対象限定で無効化する。 +# EnforceCodeStyleInBuild と TreatWarningsAsErrors の組み合わせにより、これらが新しい SDK でビルドを破壊するため、 +# 個別に severity を指定して .NET 10 SDK でも決定論的にビルドできるようにする(規則全体の停止ではない)。 +# +# IDE0380: TerraFX 由来の Win32 バインディング(unsafe partial struct 等)を上流と一致させて保守しているため、'unsafe' 修飾子を上流どおり残す。 +# IDE0370: ソースジェネレータ基盤などで意図的に残している抑制演算子を誤検知する。 +# RS1012: RegisterCompilationStartAction 内で RegisterSymbolAction を登録する標準的で正しいアナライザー実装に対し新しいアナライザー SDK が発火する。コード自体は正しいため変更しない。 +dotnet_diagnostic.IDE0370.severity = none +dotnet_diagnostic.IDE0380.severity = none +dotnet_diagnostic.RS1012.severity = none diff --git a/build/Directory.Build.props b/build/Directory.Build.props index ec049f9b..898f5312 100644 --- a/build/Directory.Build.props +++ b/build/Directory.Build.props @@ -1,7 +1,12 @@ true - preview + + 13.0 enable true diff --git a/src/ComputeSharp.Win32.D2D1/.editorconfig b/src/ComputeSharp.Win32.D2D1/.editorconfig index e87be3e4..a04efa9a 100644 --- a/src/ComputeSharp.Win32.D2D1/.editorconfig +++ b/src/ComputeSharp.Win32.D2D1/.editorconfig @@ -40,4 +40,7 @@ dotnet_diagnostic.IDE0090.severity = none dotnet_diagnostic.IDE0160.severity = none dotnet_diagnostic.IDE0180.severity = none dotnet_diagnostic.IDE0290.severity = none -dotnet_diagnostic.IDE1006.severity = none \ No newline at end of file +dotnet_diagnostic.IDE1006.severity = none +# .NET 10 SDK で新規追加された規則。上流(TerraFX)由来のバインディングを一致させて保守するため抑制する。 +dotnet_diagnostic.IDE0370.severity = none +dotnet_diagnostic.IDE0380.severity = none \ No newline at end of file diff --git a/src/ComputeSharp.Win32.D3D12/.editorconfig b/src/ComputeSharp.Win32.D3D12/.editorconfig index e87be3e4..a04efa9a 100644 --- a/src/ComputeSharp.Win32.D3D12/.editorconfig +++ b/src/ComputeSharp.Win32.D3D12/.editorconfig @@ -40,4 +40,7 @@ dotnet_diagnostic.IDE0090.severity = none dotnet_diagnostic.IDE0160.severity = none dotnet_diagnostic.IDE0180.severity = none dotnet_diagnostic.IDE0290.severity = none -dotnet_diagnostic.IDE1006.severity = none \ No newline at end of file +dotnet_diagnostic.IDE1006.severity = none +# .NET 10 SDK で新規追加された規則。上流(TerraFX)由来のバインディングを一致させて保守するため抑制する。 +dotnet_diagnostic.IDE0370.severity = none +dotnet_diagnostic.IDE0380.severity = none \ No newline at end of file