Skip to content

Commit 246ef45

Browse files
committed
REvert change
1 parent 2f0f5a4 commit 246ef45

1 file changed

Lines changed: 1 addition & 19 deletions

File tree

src/TestUtils/src/Microsoft.Maui.IntegrationTests/Utilities/BuildWarningsUtilities.cs

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -121,25 +121,7 @@ public static void AssertWarnings(this List<WarningsPerFile> actualWarnings, Lis
121121
#region Expected warning messages
122122

123123
// IMPORTANT: Always store expected File information as a relative path to the repo ROOT
124-
private static readonly List<WarningsPerFile> expectedNativeAOTWarnings = new()
125-
{
126-
// Example of expected warning
127-
new WarningsPerFile
128-
{
129-
File = "src\\Controls\\samples\\Controls.Sample\\Maui.Controls.Sample.csproj",
130-
WarningsPerCode = new List<WarningsPerCode>
131-
{
132-
new WarningsPerCode
133-
{
134-
Code = "IL6001",
135-
Messages = new List<string>
136-
{
137-
"ILLink : error IL6001: Assembly 'Xamarin.GooglePlayServices.Tasks' contains reference to obsolete attribute 'Android.Runtime.PreserveAttribute'. Members with this attribute may be trimmed. Please use System.Diagnostics.CodeAnalysis.DynamicDependencyAttribute instead.",
138-
}
139-
}
140-
}
141-
}
142-
};
124+
private static readonly List<WarningsPerFile> expectedNativeAOTWarnings = new();
143125

144126
// Windows-specific expected warnings (if any)
145127
// These might be different from iOS/Mac warnings due to platform-specific implementations

0 commit comments

Comments
 (0)