提交 92d362c3 编写于 作者: J Jason Malinowski 提交者: GitHub

Merge pull request #17718 from jasonmalinowski/repoutil-tweaks

RepoUtil tweaks
......@@ -104,7 +104,7 @@ private bool VerifyGeneratedFiles(TextWriter writer, RepoData repoData)
var fileName = new FileName(_generateDirectory, data.RelativeFilePath);
var actualContent = File.ReadAllText(fileName.FullPath, GenerateUtil.Encoding);
var expectedContent = GenerateUtil.GenerateMSBuildContent(packages);
if (actualContent != expectedContent)
if (actualContent.Trim() != expectedContent.Trim())
{
writer.WriteLine($"{fileName.RelativePath} does not have the expected contents");
allGood = false;
......@@ -112,7 +112,7 @@ private bool VerifyGeneratedFiles(TextWriter writer, RepoData repoData)
if (!allGood)
{
writer.WriteLine($@"Generated contents out of date. Run ""RepoUtil.change"" to correct");
writer.WriteLine($@"Generated contents out of date. Run ""RepoUtil change"" to correct");
return false;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册