提交 5f914e37 编写于 作者: S Swaroop Sridhar 提交者: GitHub

HostModel: Bundler: Use invariant culture when normalizing file extension (dotnet/core-setup#8551)

The Bundler excludes PDB files by default. When looking for PDB files,
the extension is normalized by using ToLower().
This change fixes the issue to use invariant culture instead.

Commit migrated from https://github.com/dotnet/core-setup/commit/f0fc0c8ef513051e7b7d8d58b375f0d87fa543f9
上级 23453584
......@@ -92,7 +92,7 @@ bool ShouldEmbed(string fileRelativePath)
return false;
}
if (Path.GetExtension(fileRelativePath).ToLower().Equals(".pdb"))
if (Path.GetExtension(fileRelativePath).ToLowerInvariant().Equals(".pdb"))
{
return EmbedPDBs;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册