Skip to content

Commit

Permalink
suppress PKV006 for Net7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
JaynieBai committed Jul 11, 2023
1 parent cace149 commit 7a98402
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 8 deletions.
5 changes: 3 additions & 2 deletions src/Build/CompatibilitySuppressions.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- https://learn.microsoft.com/en-us/dotnet/fundamentals/package-validation/diagnostic-ids -->

<Suppressions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!-- Need to suppress due to AppCompat limitation https://github.com/dotnet/sdk/issues/32922 -->
<Suppression>
<DiagnosticId>CP0007</DiagnosticId>
<Target>T:Microsoft.Build.BackEnd.SdkResolution.SdkResolverException</Target>
Expand Down Expand Up @@ -40,4 +41,4 @@
<DiagnosticId>PKV006</DiagnosticId>
<Target>net7.0</Target>
</Suppression>
</Suppressions>
</Suppressions>
6 changes: 5 additions & 1 deletion src/Framework/CompatibilitySuppressions.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?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">
<!-- PKV004 for netstandard2.0-supporting TFs that we do not have runtime assemblies for.
<!-- PKV004 for netstandard2.0-supporting TFs that we do not have runtime assemblies for.
This is intentional, because you can only use MSBuild in the context of a .NET SDK
(on net7.0, as of MSBuild 17.4) or in the context of Visual Studio (net472), but we
have previously shipped netstandard2.0 packages, and if you want to support both
Expand Down Expand Up @@ -53,4 +53,8 @@
<DiagnosticId>PKV004</DiagnosticId>
<Target>Xamarin.XboxOne,Version=v0.0</Target>
</Suppression>
<Suppression>
<DiagnosticId>PKV006</DiagnosticId>
<Target>net7.0</Target>
</Suppression>
</Suppressions>
4 changes: 2 additions & 2 deletions src/StringTools/CompatibilitySuppressions.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- https://learn.microsoft.com/en-us/dotnet/fundamentals/package-validation/diagnostic-ids -->
<Suppressions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Suppression>
<!-- Dropped net35 for 17.5; see https://github.com/dotnet/msbuild/pull/8198 -->
<DiagnosticId>PKV006</DiagnosticId>
<Target>.NETFramework,Version=v3.5</Target>
</Suppression>
</Suppressions>
</Suppressions>
8 changes: 6 additions & 2 deletions src/Tasks/CompatibilitySuppressions.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?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>
<!-- For ease of logging the "not supported on Core" message, this task is a
<!-- For ease of logging the "not supported on Core" message, this task is a
TaskExtension on netstandard/netcore. Since the type is sealed there,
that shouldn't cause any implementation problems since no one can derive
from it and try to call TaskExtension.Log. -->
Expand All @@ -11,7 +11,7 @@
<Right>ref/net472/Microsoft.Build.Tasks.Core.dll</Right>
</Suppression>

<!-- PKV004 for netstandard2.0-supporting TFs that we do not have runtime assemblies for.
<!-- PKV004 for netstandard2.0-supporting TFs that we do not have runtime assemblies for.
This is intentional, because you can only use MSBuild in the context of a .NET SDK
(on net7.0, as of MSBuild 17.4) or in the context of Visual Studio (net472), but we
have previously shipped netstandard2.0 packages, and if you want to support both
Expand Down Expand Up @@ -64,4 +64,8 @@
<DiagnosticId>PKV004</DiagnosticId>
<Target>Xamarin.XboxOne,Version=v0.0</Target>
</Suppression>
<Suppression>
<DiagnosticId>PKV006</DiagnosticId>
<Target>net7.0</Target>
</Suppression>
</Suppressions>
6 changes: 5 additions & 1 deletion src/Utilities/CompatibilitySuppressions.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?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">
<!-- PKV004 for netstandard2.0-supporting TFs that we do not have runtime assemblies for.
<!-- PKV004 for netstandard2.0-supporting TFs that we do not have runtime assemblies for.
This is intentional, because you can only use MSBuild in the context of a .NET SDK
(on net7.0, as of MSBuild 17.4) or in the context of Visual Studio (net472), but we
have previously shipped netstandard2.0 packages, and if you want to support both
Expand Down Expand Up @@ -53,4 +53,8 @@
<DiagnosticId>PKV004</DiagnosticId>
<Target>Xamarin.XboxOne,Version=v0.0</Target>
</Suppression>
<Suppression>
<DiagnosticId>PKV006</DiagnosticId>
<Target>net7.0</Target>
</Suppression>
</Suppressions>

0 comments on commit 7a98402

Please sign in to comment.