mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-24 04:11:14 -10:00
* Fast file enumeration for Windows Implements an optimized, low allocation replacement for file enumeration on Windows. In preliminary tests this improves performance at least two fold, particularly for recursive searches. Removes aggressive filter validation. Copies and cleans up filename matching code from FileSystemWatcher. Add length setter for ValueStringBuilder. Remove Unix .. check for enumerable. Commit migrated from https://github.com/dotnet/corefx/commit/eb0d4388c339288a589bdd7f5e0c9fcd61da4362
185 lines
9.5 KiB
XML
185 lines
9.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
|
|
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
|
|
<PropertyGroup>
|
|
<ProjectGuid>{F0D49126-6A1C-42D5-9428-4374C868BAF8}</ProjectGuid>
|
|
<TestCategories>InnerLoop;OuterLoop</TestCategories>
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netcoreapp-Unix-Debug|AnyCPU'" />
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netcoreapp-Unix-Release|AnyCPU'" />
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netcoreapp-Windows_NT-Debug|AnyCPU'" />
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netcoreapp-Windows_NT-Release|AnyCPU'" />
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netstandard-Unix-Debug|AnyCPU'" />
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netstandard-Unix-Release|AnyCPU'" />
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netstandard-Windows_NT-Debug|AnyCPU'" />
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netstandard-Windows_NT-Release|AnyCPU'" />
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'uap-Windows_NT-Debug|AnyCPU'" />
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'uap-Windows_NT-Release|AnyCPU'" />
|
|
<ItemGroup>
|
|
<Compile Include="Base\BaseGetSetAttributes.cs" />
|
|
<Compile Include="Base\BaseGetSetTimes.cs" />
|
|
<Compile Include="Base\FileGetSetAttributes.cs" />
|
|
<Compile Include="Base\InfoGetSetAttributes.cs" />
|
|
<Compile Include="Base\InfoGetSetTimes.cs" />
|
|
<Compile Include="Base\AllGetSetAttributes.cs" />
|
|
<Compile Include="Base\StaticGetSetTimes.cs" />
|
|
<Compile Include="Directory\EnumerableTests.cs" />
|
|
<Compile Include="FileInfo\GetSetAttributesCommon.cs" />
|
|
<Compile Include="FileInfo\IsReadOnly.cs" />
|
|
<Compile Include="FileInfo\Replace.cs" />
|
|
<Compile Include="FileStream\Handle.cs" />
|
|
<Compile Include="Directory\GetLogicalDrives.cs" />
|
|
<Compile Include="FileStream\EndRead.cs" />
|
|
<Compile Include="FileStream\EndWrite.cs" />
|
|
<Compile Include="FileStream\LockUnlock.cs" />
|
|
<Compile Include="FileSystemTest.cs" />
|
|
<Compile Include="File\EncryptDecrypt.cs" />
|
|
<Compile Include="File\GetSetAttributesCommon.cs" />
|
|
<Compile Include="File\Replace.cs" />
|
|
<Compile Include="$(CommonTestPath)\System\Runtime\Serialization\Formatters\BinaryFormatterHelpers.cs">
|
|
<Link>Common\System\Runtime\Serialization\Formatters\BinaryFormatterHelpers.cs</Link>
|
|
</Compile>
|
|
</ItemGroup>
|
|
<ItemGroup Condition="'$(TargetsUnix)' == 'true'">
|
|
<Compile Include="FileSystemTest.Unix.cs" />
|
|
</ItemGroup>
|
|
<ItemGroup Condition="'$(TargetsWindows)' == 'true'">
|
|
<Compile Include="FileSystemTest.Windows.cs" />
|
|
</ItemGroup>
|
|
<ItemGroup Condition="'$(TargetGroup)' == 'netcoreapp'">
|
|
<Compile Include="File\AppendAsync.cs" />
|
|
<Compile Include="File\ReadWriteAllLinesAsync.cs" />
|
|
<Compile Include="File\ReadWriteAllBytesAsync.cs" />
|
|
<Compile Include="File\ReadWriteAllTextAsync.cs" />
|
|
<Compile Include="FileStream\ReadWriteSpan.netcoreapp.cs" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<!-- Rewritten -->
|
|
<Compile Include="DirectoryInfo\GetSetAttributes.cs" />
|
|
<Compile Include="DirectoryInfo\Create.cs" />
|
|
<Compile Include="DirectoryInfo\CreateSubdirectory.cs" />
|
|
<Compile Include="DirectoryInfo\Delete.cs" />
|
|
<Compile Include="DirectoryInfo\Exists.cs" />
|
|
<Compile Include="DirectoryInfo\Root.cs" />
|
|
<Compile Include="Directory\EnumerableAPIs.cs" />
|
|
<Compile Include="Directory\GetFileSystemEntries_str_str_so.cs" />
|
|
<Compile Include="Directory\GetParent.cs" />
|
|
<Compile Include="FileInfo\GetSetAttributes.cs" />
|
|
<Compile Include="FileInfo\Length.cs" />
|
|
<Compile Include="FileInfo\Open.cs" />
|
|
<Compile Include="FileStream\FlushAsync.cs" />
|
|
<Compile Include="FileStream\Pipes.cs" />
|
|
<Compile Include="FileStream\SafeFileHandle.cs" />
|
|
<Compile Include="FileStream\IsAsync.cs" />
|
|
<Compile Include="FileStream\CanTimeout.cs" />
|
|
<Compile Include="FileStream\CanSeek.cs" />
|
|
<Compile Include="FileStream\Name.cs" />
|
|
<Compile Include="FileStream\CanWrite.cs" />
|
|
<Compile Include="FileStream\CanRead.cs" />
|
|
<Compile Include="FileStream\CopyToAsync.cs" />
|
|
<Compile Include="FileStream\Buffering_regression.cs" />
|
|
<Compile Include="FileStream\Flush.cs" />
|
|
<Compile Include="FileStream\Dispose.cs" />
|
|
<Compile Include="FileStream\WriteAsync.cs" />
|
|
<Compile Include="FileStream\Write.cs" />
|
|
<Compile Include="FileStream\ToString.cs" />
|
|
<Compile Include="FileStream\WriteByte.cs" />
|
|
<Compile Include="FileStream\ReadAsync.cs" />
|
|
<Compile Include="FileStream\Read.cs" />
|
|
<Compile Include="FileStream\ReadByte.cs" />
|
|
<Compile Include="FileStream\SetLength.cs" />
|
|
<Compile Include="FileStream\Length.cs" />
|
|
<Compile Include="FileStream\Position.cs" />
|
|
<Compile Include="FileStream\Seek.cs" />
|
|
<Compile Include="FileStream\ctor_sfh_fa_buffer_async.cs" />
|
|
<Compile Include="FileStream\ctor_sfh_fa_buffer.cs" />
|
|
<Compile Include="FileStream\ctor_sfh_fa.cs" />
|
|
<Compile Include="FileStream\ctor_str_fm_fa_fs.write.cs" />
|
|
<Compile Include="FileStream\ctor_str_fm_fa_fs.read.cs" />
|
|
<Compile Include="FileStream\ctor_str_fm_fa_fs.delete.cs" />
|
|
<Compile Include="FileStream\ctor_str_fm_fa_fs_buffer_fo.cs" />
|
|
<Compile Include="FileStream\ctor_str_fm_fa_fs_buffer_async.cs" />
|
|
<Compile Include="FileStream\ctor_str_fm_fa_fs_buffer.cs" />
|
|
<Compile Include="FileStream\ctor_str_fm_fa_fs.cs" />
|
|
<Compile Include="FileStream\ctor_str_fm_fa.cs" />
|
|
<Compile Include="FileStream\ctor_str_fm.cs" />
|
|
<Compile Include="File\Append.cs" />
|
|
<Compile Include="File\Create.cs" />
|
|
<Compile Include="File\Delete.cs" />
|
|
<Compile Include="File\GetSetAttributes.cs" />
|
|
<Compile Include="File\Move.cs" />
|
|
<Compile Include="File\ReadWriteAllText.cs" />
|
|
<Compile Include="File\ReadWriteAllLines.cs" />
|
|
<Compile Include="TestData.cs" />
|
|
<Compile Include="UnseekableFileStream.cs" />
|
|
<Compile Include="FSAssert.cs" />
|
|
<!-- Ported -->
|
|
<Compile Include="PortedCommon\CommonUtilities.cs" />
|
|
<Compile Include="PortedCommon\DllImports.cs" />
|
|
<Compile Include="PortedCommon\IOInputs.cs" />
|
|
<Compile Include="PortedCommon\IOServices.cs" />
|
|
<Compile Include="PortedCommon\PathInfo.cs" />
|
|
<Compile Include="PortedCommon\ReparsePointUtilities.cs" />
|
|
<Compile Include="DirectoryInfo\EnumerableAPIs.cs" />
|
|
<Compile Include="DirectoryInfo\GetDirectories.cs" />
|
|
<Compile Include="DirectoryInfo\GetFiles.cs" />
|
|
<Compile Include="DirectoryInfo\GetFileSystemInfos.cs" />
|
|
<Compile Include="DirectoryInfo\Refresh.cs" />
|
|
<Compile Include="DirectoryInfo\ToString.cs" />
|
|
<Compile Include="DirectoryInfo\Name.cs" />
|
|
<Compile Include="DirectoryInfo\Parent.cs" />
|
|
<Compile Include="DirectoryInfo\GetSetTimes.cs" />
|
|
<Compile Include="DirectoryInfo\MoveTo.cs" />
|
|
<Compile Include="Directory\GetFileSystemEntries_str.cs" />
|
|
<Compile Include="Directory\GetFileSystemEntries_str_str.cs" />
|
|
<Compile Include="Directory\GetSetTimes.cs" />
|
|
<Compile Include="Directory\Move.cs" />
|
|
<Compile Include="Directory\ReparsePoints_MountVolume.cs" />
|
|
<Compile Include="Directory\SetCurrentDirectory.cs" />
|
|
<Compile Include="Directory\CreateDirectory.cs" />
|
|
<Compile Include="Directory\Delete_MountVolume.cs" />
|
|
<Compile Include="Directory\Delete.cs" />
|
|
<Compile Include="Directory\Exists.cs" />
|
|
<Compile Include="Directory\GetDirectories.cs" />
|
|
<Compile Include="Directory\GetDirectoryRoot.cs" />
|
|
<Compile Include="Directory\GetFiles.cs" />
|
|
<Compile Include="File\ReadWriteAllBytes.cs" />
|
|
<Compile Include="File\ChangeExtension.cs" />
|
|
<Compile Include="File\Copy.cs" />
|
|
<Compile Include="File\Exists.cs" />
|
|
<Compile Include="File\GetSetTimes.cs" />
|
|
<Compile Include="File\Open.cs" />
|
|
<Compile Include="FileInfo\Create.cs" />
|
|
<Compile Include="FileInfo\Delete.cs" />
|
|
<Compile Include="FileInfo\Exists.cs" />
|
|
<Compile Include="FileInfo\Extension.cs" />
|
|
<Compile Include="FileInfo\Directory.cs" />
|
|
<Compile Include="FileInfo\Name.cs" />
|
|
<Compile Include="FileInfo\GetSetTimes.cs" />
|
|
<Compile Include="FileInfo\MoveTo.cs" />
|
|
<Compile Include="FileInfo\Refresh.cs" />
|
|
<Compile Include="FileInfo\ToString.cs" />
|
|
<Compile Include="FileInfo\AppendText.cs" />
|
|
<Compile Include="FileInfo\CopyTo.cs" />
|
|
<!-- Helpers -->
|
|
<Compile Include="$(CommonTestPath)\System\IO\TempFile.cs">
|
|
<Link>Common\System\IO\TempFile.cs</Link>
|
|
</Compile>
|
|
<Compile Include="$(CommonTestPath)\System\IO\PathFeatures.cs">
|
|
<Link>Common\System\IO\PathFeatures.cs</Link>
|
|
</Compile>
|
|
<ProjectReference Include="$(CommonTestPath)\System\Diagnostics\RemoteExecutorConsoleApp\RemoteExecutorConsoleApp.csproj">
|
|
<Project>{69e46a6f-9966-45a5-8945-2559fe337827}</Project>
|
|
<Name>RemoteExecutorConsoleApp</Name>
|
|
</ProjectReference>
|
|
</ItemGroup>
|
|
<ItemGroup Condition="'$(TargetGroup)' == 'uapaot' or '$(TargetGroup)' == 'uap'">
|
|
<Reference Include="mscorlib" />
|
|
<Reference Include="Windows" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<EmbeddedResource Include="Resources\$(AssemblyName).rd.xml" />
|
|
</ItemGroup>
|
|
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
|
|
</Project> |