You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Add a layer of caching to avoid running msbuild as much as possible. #jira UE-109181 #rb ben.marsh #ROBOMERGE-SOURCE: CL 17102399 in //UE5/Main/... #ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v853-17066230) [CL 17102408 by jonathan adamczewski in ue5-release-engine-test branch]
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
|
|
}
|
|
}
|
|
}
|