Skip to content

Commit

Permalink
Miscellaneous refactors in source files (#6104) (#6120)
Browse files Browse the repository at this point in the history
Simplify `#ifdef` logic (across source code)
Normalize and Fix namespaces (in Test projects)

authored-by: Nirmal Guru <Nirmal4G@gmail.com>
  • Loading branch information
dotnet-maestro-bot committed Feb 8, 2021
1 parent 62f5140 commit bcaa609
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions src/Shared/FileUtilities.cs
Expand Up @@ -4,6 +4,8 @@
using System;
#if !CLR2COMPATIBILITY
using System.Collections.Concurrent;
#else
using Microsoft.Build.Shared.Concurrent;
#endif
using System.Collections.Generic;
using System.Diagnostics;
Expand Down Expand Up @@ -107,11 +109,8 @@ public static bool GetIsFileSystemCaseSensitive()

internal static readonly string DirectorySeparatorString = Path.DirectorySeparatorChar.ToString();

#if !CLR2COMPATIBILITY
private static readonly ConcurrentDictionary<string, bool> FileExistenceCache = new ConcurrentDictionary<string, bool>(StringComparer.OrdinalIgnoreCase);
#else
private static readonly Microsoft.Build.Shared.Concurrent.ConcurrentDictionary<string, bool> FileExistenceCache = new Microsoft.Build.Shared.Concurrent.ConcurrentDictionary<string, bool>(StringComparer.OrdinalIgnoreCase);
#endif

private static readonly IFileSystem DefaultFileSystem = FileSystems.Default;

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Tasks.UnitTests/GenerateBindingRedirects_Tests.cs
Expand Up @@ -13,7 +13,7 @@
using Xunit;
using Xunit.Abstractions;

namespace Microsoft.Build.Tasks.Unittest
namespace Microsoft.Build.Tasks.UnitTests
{
public class GenerateBindingRedirectsTests : IDisposable
{
Expand Down

0 comments on commit bcaa609

Please sign in to comment.