Fix the swr file logic
It was supposed to be && and not || to avoid copying those files
This commit is contained in:
parent
6171509864
commit
a4ec49fae3
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ namespace Microsoft.DotNet.Cli.Build
|
|||
{
|
||||
string sourceFolder = Path.Combine(MSBuildExtensionsLayoutDirectory, relativeSourcePath);
|
||||
var files = Directory.GetFiles(sourceFolder)
|
||||
.Where(f => !Path.GetExtension(f).Equals(".pdb", StringComparison.OrdinalIgnoreCase) || !Path.GetExtension(f).Equals(".swr", StringComparison.OrdinalIgnoreCase))
|
||||
.Where(f => !Path.GetExtension(f).Equals(".pdb", StringComparison.OrdinalIgnoreCase) && !Path.GetExtension(f).Equals(".swr", StringComparison.OrdinalIgnoreCase))
|
||||
.ToList();
|
||||
if (files.Any(f => !Path.GetFileName(f).Equals("_._")))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue