Skip to content

Commit

Permalink
Fix Resource.designer.cs diff tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dellis1972 committed Jul 27, 2021
1 parent 6762a19 commit ab39e5b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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))) {
Expand Down

0 comments on commit ab39e5b

Please sign in to comment.