diff --git a/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/Tasks/ManagedResourceParserTests.cs b/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/Tasks/ManagedResourceParserTests.cs index d4d5c6643d0..2b51dc21e7d 100644 --- a/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/Tasks/ManagedResourceParserTests.cs +++ b/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/Tasks/ManagedResourceParserTests.cs @@ -340,6 +340,10 @@ void CompareFilesIgnoreRuntimeInfoString (string file1, string file2) var runtimeVersionRegex = new Regex (@"//\s*Runtime Version:.*"); content1 = runtimeVersionRegex.Replace (content1, Environment.NewLine); content2 = runtimeVersionRegex.Replace (content2, Environment.NewLine); + var replaceText = "\t[global::System.CodeDom.Compiler.GeneratedCodeAttribute(\"Xamarin.Android.Build.Tasks\", \"1.0.0.0\")]"; + var assemblyVersionRegex = new Regex (@"(.*)GeneratedCodeAttribute(.{2})Xamarin.Android.Build.Tasks(.*)"); + content1 = assemblyVersionRegex.Replace (content1, replaceText); + content2 = assemblyVersionRegex.Replace (content2, replaceText); using (var s1 = new MemoryStream (Encoding.UTF8.GetBytes (content1))) using (var s2 = new MemoryStream (Encoding.UTF8.GetBytes (content2))) {