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]
47 lines
2.0 KiB
C#
47 lines
2.0 KiB
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
|
|
namespace Microsoft.Build.Shared.FileSystem
|
|
{
|
|
|
|
/*
|
|
* This is a clone of Microsoft.Build.FileSystem.MSBuildFileSystemBase.
|
|
* MSBuildFileSystemBase is the public, reference interface. Changes should be made to MSBuildFileSystemBase and cloned in IFileSystem.
|
|
* Any new code should depend on MSBuildFileSystemBase instead of IFileSystem, if possible.
|
|
*
|
|
* MSBuild uses IFileSystem internally and adapts MSBuildFileSystemBase instances received from the outside to IFileSystem.
|
|
* Ideally there should be only one, public interface. However, such an interface would need to be put into the
|
|
* Microsoft.Build.Framework assembly, but that assembly cannot take new types because it breaks some old version of Nuget.exe.
|
|
* IFileSystem cannot be deleted for the same reason.
|
|
*/
|
|
internal interface IFileSystem
|
|
{
|
|
TextReader ReadFile(string path);
|
|
|
|
Stream GetFileStream(string path, FileMode mode, FileAccess access, FileShare share);
|
|
|
|
string ReadFileAllText(string path);
|
|
|
|
byte[] ReadFileAllBytes(string path);
|
|
|
|
IEnumerable<string> EnumerateFiles(string path, string searchPattern = "*", SearchOption searchOption = SearchOption.TopDirectoryOnly);
|
|
|
|
IEnumerable<string> EnumerateDirectories(string path, string searchPattern = "*", SearchOption searchOption = SearchOption.TopDirectoryOnly);
|
|
|
|
IEnumerable<string> EnumerateFileSystemEntries(string path, string searchPattern = "*", SearchOption searchOption = SearchOption.TopDirectoryOnly);
|
|
|
|
FileAttributes GetAttributes(string path);
|
|
|
|
public DateTime GetLastWriteTimeUtc(string path);
|
|
|
|
bool DirectoryExists(string path);
|
|
|
|
bool FileExists(string path);
|
|
|
|
bool FileOrDirectoryExists(string path);
|
|
}
|
|
} |