Skip to content

Commit ec2393e

Browse files
rvuistinepsnm
authored andcommitted
Remove CA1416 config and refactor <NoWarn> in projects
- Removed CA1416 platform compatibility warning from .editorconfig and all .csproj files, reverting to default handling. - Refactored .csproj files to simplify and consolidate <NoWarn> properties, eliminating redundant conditions and only suppressing specified warnings (excluding CA1416).
1 parent b56d61c commit ec2393e

3 files changed

Lines changed: 3 additions & 22 deletions

File tree

src/.editorconfig

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/ElectronNET.API/ElectronNET.API.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<Nullable>disable</Nullable>
1414
<Description>$(DescriptionFirstPart) This package contains the API to access the "native" electron API.</Description>
1515
<RootNamespace>ElectronNET</RootNamespace>
16-
<NoWarn>1701;1702;4014;CS4014;CA1416;CS1591</NoWarn>
16+
<NoWarn>1701;1702;4014;CS4014;CS1591</NoWarn>
1717
</PropertyGroup>
1818
<ItemGroup>
1919
<None Remove="ElectronNET.API.csproj.DotSettings" />

src/ElectronNET.AspNet/ElectronNET.AspNet.csproj

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,8 @@
1818
<Nullable>disable</Nullable>
1919
<RootNamespace>ElectronNET</RootNamespace>
2020
</PropertyGroup>
21-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net6.0|AnyCPU'">
22-
<NoWarn>1701;1702;4014;CS4014;CA1416;CS1591</NoWarn>
23-
</PropertyGroup>
24-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0|AnyCPU'">
25-
<NoWarn>1701;1702;4014;CS4014;CA1416;CS1591</NoWarn>
26-
</PropertyGroup>
27-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net10.0|AnyCPU'">
28-
<NoWarn>1701;1702;4014;CS4014;CA1416;CS1591</NoWarn>
29-
</PropertyGroup>
30-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net6.0|AnyCPU'">
31-
<NoWarn>1701;1702;4014;CS4014;CA1416;CS1591</NoWarn>
32-
</PropertyGroup>
33-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0|AnyCPU'">
34-
<NoWarn>1701;1702;4014;CS4014;CA1416;CS1591</NoWarn>
35-
</PropertyGroup>
36-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net10.0|AnyCPU'">
37-
<NoWarn>1701;1702;4014;CS4014;CA1416;CS1591</NoWarn>
21+
<PropertyGroup>
22+
<NoWarn>1701;1702;4014;CS4014;CS1591</NoWarn>
3823
</PropertyGroup>
3924
<ItemGroup>
4025
<FrameworkReference Include="Microsoft.AspNetCore.App" />

0 commit comments

Comments
 (0)