Skip to content

Commit

Permalink
Suppress CP1002 temporarily via NoWarn
Browse files Browse the repository at this point in the history
The NoWarn can be removed when dotnet/sdk#46059 got merged and consumed with a new .NET SDK.
  • Loading branch information
ViktorHofer authored Jan 16, 2025
1 parent fc7d7fc commit cd5121c
Show file tree
Hide file tree
Showing 15 changed files with 16 additions and 75 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<PackageTags>cache;distributedcache;sqlserver</PackageTags>
<ExcludeFromSourceOnlyBuild>true</ExcludeFromSourceOnlyBuild>
<NoWarn>$(NoWarn);PKG0001</NoWarn>
<!-- Temporarily suppress APICompat CP1002 which warns on .NET Framework as it can't find load internal assemblies: SMDiagnostics.dll and System.ServiceModel.Internals.dll -->
<NoWarn>$(NoWarn);PKG0001;CP1002</NoWarn>
<IsPackable>true</IsPackable>
<IsShipping>true</IsShipping>
</PropertyGroup>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
<Nullable>annotations</Nullable>
<Nullable Condition="'$(TargetFramework)' == '$(DefaultNetCoreTargetFramework)'">enable</Nullable>
<IsTrimmable>true</IsTrimmable>
<!-- Temporarily suppress APICompat CP1002 which warns on .NET Framework as it can't find load internal assemblies: SMDiagnostics.dll and System.ServiceModel.Internals.dll -->
<NoWarn>$(NoWarn);CP1002</NoWarn>
</PropertyGroup>

<ItemGroup>
Expand Down
11 changes: 0 additions & 11 deletions src/DataProtection/Extensions/src/CompatibilitySuppressions.xml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<PackageTags>aspnetcore;dataprotection</PackageTags>
<IsTrimmable>true</IsTrimmable>
<!-- Temporarily suppress APICompat CP1002 which warns on .NET Framework as it can't find load internal assemblies: SMDiagnostics.dll and System.ServiceModel.Internals.dll -->
<NoWarn>$(NoWarn);CP1002</NoWarn>
</PropertyGroup>

<ItemGroup>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<PackageTags>aspnetcore;dataprotection;redis</PackageTags>
<IsTrimmable>true</IsTrimmable>
<!-- Temporarily suppress APICompat CP1002 which warns on .NET Framework as it can't find load internal assemblies: SMDiagnostics.dll and System.ServiceModel.Internals.dll -->
<NoWarn>$(NoWarn);CP1002</NoWarn>
</PropertyGroup>

<ItemGroup>
Expand Down
11 changes: 0 additions & 11 deletions src/Features/JsonPatch/src/CompatibilitySuppressions.xml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<PackageTags>aspnetcore;json;jsonpatch</PackageTags>
<Nullable>disable</Nullable>
<!-- Temporarily suppress APICompat CP1002 which warns on .NET Framework as it can't find load internal assemblies: SMDiagnostics.dll and System.ServiceModel.Internals.dll -->
<NoWarn>$(NoWarn);CP1002</NoWarn>
</PropertyGroup>

<ItemGroup>
Expand Down
8 changes: 0 additions & 8 deletions src/FileProviders/Embedded/src/CompatibilitySuppressions.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Suppressions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Suppression>
<DiagnosticId>CP1002</DiagnosticId>
<Target>SMDiagnostics.dll</Target>
</Suppression>
<Suppression>
<DiagnosticId>CP1002</DiagnosticId>
<Target>System.ServiceModel.Internals.dll</Target>
</Suppression>
<Suppression>
<DiagnosticId>CP1003</DiagnosticId>
<Target>lib/net7.0/Microsoft.Extensions.FileProviders.Embedded.dll</Target>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
<NoPackageAnalysis>true</NoPackageAnalysis>
<Nullable>enable</Nullable>
<IsTrimmable>true</IsTrimmable>
<!-- Temporarily suppress APICompat CP1002 which warns on .NET Framework as it can't find load internal assemblies: SMDiagnostics.dll and System.ServiceModel.Internals.dll -->
<NoWarn>$(NoWarn);CP1002</NoWarn>
</PropertyGroup>

<ItemGroup>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
<RootNamespace>Microsoft.AspNetCore.SignalR</RootNamespace>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Nullable>enable</Nullable>
<!-- Temporarily suppress APICompat CP1002 which warns on .NET Framework as it can't find load internal assemblies: SMDiagnostics.dll and System.ServiceModel.Internals.dll -->
<NoWarn>$(NoWarn);CP1002</NoWarn>
</PropertyGroup>

<ItemGroup>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
<RootNamespace>Microsoft.AspNetCore.SignalR</RootNamespace>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Nullable>enable</Nullable>
<!-- Temporarily suppress APICompat CP1002 which warns on .NET Framework as it can't find load internal assemblies: SMDiagnostics.dll and System.ServiceModel.Internals.dll -->
<NoWarn>$(NoWarn);CP1002</NoWarn>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit cd5121c

Please sign in to comment.