Skip to content

Commit 040f0d6

Browse files
Set $(IsTestProject)
This disables the `BannedApisAnalyzer` in these projects. Test projects are fine to use "banned" APIs.
1 parent dfbfab1 commit 040f0d6

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/Controls/tests/DeviceTests/Controls.DeviceTests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<RootNamespace>Microsoft.Maui.DeviceTests</RootNamespace>
88
<AssemblyName>Microsoft.Maui.Controls.DeviceTests</AssemblyName>
99
<NoWarn>$(NoWarn),CA1416</NoWarn>
10+
<IsTestProject>true</IsTestProject>
1011
<ExcludeMicrosoftNetTestSdk>true</ExcludeMicrosoftNetTestSdk>
1112
<!-- Disable multi-RID builds to workaround a parallel build issue -->
1213
<RuntimeIdentifier Condition="$(TargetFramework.Contains('-maccatalyst'))">maccatalyst-x64</RuntimeIdentifier>

src/Core/tests/DeviceTests/Core.DeviceTests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<RootNamespace>Microsoft.Maui.DeviceTests</RootNamespace>
88
<AssemblyName>Microsoft.Maui.Core.DeviceTests</AssemblyName>
99
<NoWarn>$(NoWarn),CA1416</NoWarn>
10+
<IsTestProject>true</IsTestProject>
1011
<!-- Disable multi-RID builds to workaround a parallel build issue -->
1112
<RuntimeIdentifier Condition="$(TargetFramework.Contains('-maccatalyst'))">maccatalyst-x64</RuntimeIdentifier>
1213
<RuntimeIdentifier Condition="$(TargetFramework.Contains('-maccatalyst')) and '$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture)' == 'arm64'">maccatalyst-arm64</RuntimeIdentifier>

0 commit comments

Comments
 (0)