mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-22 19:10:41 -10:00
- References dotnet/corefx#2460. File.Move and FileInfo.MoveTo no longer always overwrite the destination file; added a non-concurrent validity check to MoveFile in the Unix implementation to serve as a temporary solution. - Resolves dotnet/corefx#2459. Reenabled Directory_CreateDirectory.DriveLetter_Unix as it's previous failures were not the fault of the method but of the system. - Added test checks to work around the issue in dotnet/corefx#2537 until a final decision is reached for the desktop. - Added Interop.Link to the Interop files for the (possible) implementation of File.Move - Consolidated all of the related files that did nothing but inherit from other classes (e.g. File_GetFiles_str and File_GetFiles_str_str were consolidated into File_GetFiles) - Removed the "partial" keyword from some test classes - Finished overhauling all test cases that don't directly require solutions to Build System issues before being re-added (e.g. those that require networked drives or altering the current directory) - Added some tests to increase code coverage slightly in some cases. - All classes and files have been renamed to match the standard set by FileStream: only include parameters in the test/class name if there are overloads - Modified the Unix behavior for distinguishing between a FileNotFoundException and a DirectoryNotFoundException to match that of Windows. - Removed some redundant error checks that never catch - DirectoryInfo.MoveTo(destPath) did not have checks for destinations with paths that are over MAXPATH. I added them to better match the behavior and error timing of Directory.Move(source, dest). Commit migrated from https://github.com/dotnet/corefx/commit/481d5c645763da79145af50d123db3f4041aa05e
163 lines
7.9 KiB
XML
163 lines
7.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
|
|
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
|
|
<PropertyGroup>
|
|
<Configuration Condition="'$(Configuration)' == ''">Debug</Configuration>
|
|
<Platform Condition="'$(Platform)' == ''">AnyCPU</Platform>
|
|
<ProjectGuid>{57E8F8D4-0766-4CC7-B3F9-B243B81DB6A5}</ProjectGuid>
|
|
<OutputType>Library</OutputType>
|
|
<AssemblyName>System.IO.FileSystem.Tests</AssemblyName>
|
|
<TestCategories>InnerLoop;OuterLoop</TestCategories>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
|
|
<DebugSymbols>true</DebugSymbols>
|
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
|
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<None Include="project.json" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\src\System.IO.FileSystem.csproj">
|
|
<Project>{879c23dc-d828-4dfb-8e92-abbc11b71035}</Project>
|
|
<Name>System.IO.FileSystem</Name>
|
|
<Private>True</Private>
|
|
</ProjectReference>
|
|
|
|
<!--
|
|
Until an updated packages is published, temporarily copy the locally built System.Runtime.Extensions library
|
|
but still reference the contract from the package for compiling.
|
|
Issue https://github.com/dotnet/corefx/issues/2519 is tracking the removal of this ProjectReference
|
|
-->
|
|
<ProjectReference Include="..\..\System.Runtime.Extensions\src\System.Runtime.Extensions.CoreCLR.csproj">
|
|
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
|
<OutputItemType>Content</OutputItemType>
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
<Targets>Build;DebugSymbolsProjectOutputGroup</Targets>
|
|
</ProjectReference>
|
|
</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\Flush.Sharing.cs" />
|
|
<Compile Include="FileStream\Flush_toDisk.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\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="UnseekableFileStream.cs" />
|
|
<Compile Include="FSAssert.cs" />
|
|
<Compile Include="FileSystemTest.cs" />
|
|
<!-- Ported -->
|
|
<Compile Include="PortedCommon\CommonUtilities.cs" />
|
|
<Compile Include="PortedCommon\DllImports.cs" />
|
|
<Compile Include="PortedCommon\EnumerableUtils.cs" />
|
|
<Compile Include="PortedCommon\IOInputs.cs" />
|
|
<Compile Include="PortedCommon\IOServices.cs" />
|
|
<Compile Include="PortedCommon\PathInfo.cs" />
|
|
<Compile Include="PortedCommon\ReparsePointUtilities.cs" />
|
|
<Compile Include="PortedCommon\TemporaryDirectory.cs" />
|
|
<Compile Include="PortedCommon\TemporaryFile.cs" />
|
|
<Compile Include="PortedCommon\TemporaryFileSystemItem.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_dir.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\GetCurrentDirectory.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="$(CommonPath)\Interop\Interop.PlatformDetection.cs">
|
|
<Link>Common\Interop\Interop.PlatformDetection.cs</Link>
|
|
</Compile>
|
|
</ItemGroup>
|
|
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
|
|
</Project>
|