You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
30 lines
796 B
C#
30 lines
796 B
C#
|
|
// Copyright (c) Microsoft. All rights reserved.
|
||
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||
|
|
|
||
|
|
namespace Microsoft.Build.Shared.FileSystem
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// Factory for <see cref="IFileSystem"/>
|
||
|
|
/// </summary>
|
||
|
|
internal static class FileSystems
|
||
|
|
{
|
||
|
|
public static IFileSystem Default = GetFileSystem();
|
||
|
|
|
||
|
|
private static IFileSystem GetFileSystem()
|
||
|
|
{
|
||
|
|
#if CLR2COMPATIBILITY
|
||
|
|
return MSBuildTaskHostFileSystem.Singleton();
|
||
|
|
#else
|
||
|
|
if (NativeMethodsShared.IsWindows)
|
||
|
|
{
|
||
|
|
return MSBuildOnWindowsFileSystem.Singleton();
|
||
|
|
}
|
||
|
|
else
|
||
|
|
{
|
||
|
|
return ManagedFileSystem.Singleton();
|
||
|
|
}
|
||
|
|
#endif
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|