mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-24 16:43:13 -10:00
Move S.IO.FileAccess to corelib. (dotnet/corefx#12206)
* Move S.IO.FileAccess to corelib. This enum is used by UnmanagedMemoryStream which is required for ResourceManager.GetStream() Fixes dotnet/corefx#12169 * Fix Dependencies * Delete FileAccess.cs * Bump Versions * Fix test configurations * Update dependencies * Fix dependencies * Add back netcore50 test TFM * Update dependency versions * Make netcoreapp1.1 the default test tfm * Update dependencies * Update based on feedback from @ericstj * Remove unneeded changes in tests * Change test TFM to net46 * Reorder items and change netcore50aot to netcore50 * Remove a left behind aot * Remove netcoreapp1.1 from test project.json * Fix dependencies * Retarget to ns1.7 * Update package index * Test on netstandard1.3 Commit migrated from https://github.com/dotnet/corefx/commit/8a0f80edcb83272e7fecc08e9dddf8bb70f8cef3
This commit is contained in:
1 parent
674bb7a0f8
commit
9cce8a51d1
12 files changed
+36
-69
No files matched your search
@@ -2,6 +2,6 @@
|
||||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="..\dir.props" />
|
||||
<PropertyGroup>
|
||||
<AssemblyVersion>4.0.3.0</AssemblyVersion>
|
||||
<AssemblyVersion>4.1.0.0</AssemblyVersion>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
+2
-2
@@ -3,7 +3,7 @@
|
||||
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\ref\System.IO.FileSystem.Primitives.csproj">
|
||||
<SupportedFramework>net46;netcore50;netcoreapp1.0;$(AllXamarinFrameworks)</SupportedFramework>
|
||||
<SupportedFramework>net463;netcoreapp1.1;$(AllXamarinFrameworks)</SupportedFramework>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\src\System.IO.FileSystem.Primitives.builds" />
|
||||
</ItemGroup>
|
||||
@@ -16,4 +16,4 @@
|
||||
<InboxOnTargetFramework Include="xamarinwatchos10" />
|
||||
</ItemGroup>
|
||||
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
|
||||
</Project>
|
||||
</Project>
|
||||
+2
-2
@@ -3,7 +3,7 @@
|
||||
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
|
||||
<PropertyGroup>
|
||||
<OutputType>Library</OutputType>
|
||||
<NuGetTargetMoniker>.NETStandard,Version=v1.3</NuGetTargetMoniker>
|
||||
<NuGetTargetMoniker>.NETStandard,Version=v1.7</NuGetTargetMoniker>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="System.IO.FileSystem.Primitives.cs" />
|
||||
@@ -12,4 +12,4 @@
|
||||
<None Include="project.json" />
|
||||
</ItemGroup>
|
||||
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
|
||||
</Project>
|
||||
</Project>
|
||||
@@ -1,12 +1,8 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"System.Runtime": "4.0.0"
|
||||
"System.Runtime": "4.1.0"
|
||||
},
|
||||
"frameworks": {
|
||||
"netstandard1.3": {
|
||||
"imports": [
|
||||
"dotnet5.4"
|
||||
]
|
||||
}
|
||||
"netstandard1.7": {}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
<ItemGroup>
|
||||
<Project Include="System.IO.FileSystem.Primitives.csproj" />
|
||||
<Project Include="System.IO.FileSystem.Primitives.csproj">
|
||||
<TargetGroup>net46</TargetGroup>
|
||||
<TargetGroup>net463</TargetGroup>
|
||||
</Project>
|
||||
</ItemGroup>
|
||||
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.traversal.targets))\dir.traversal.targets" />
|
||||
|
||||
+12
-10
@@ -4,24 +4,26 @@
|
||||
<PropertyGroup>
|
||||
<ProjectGuid>{6C05678E-394C-4CFF-B453-A18E28C8F2C3}</ProjectGuid>
|
||||
<AssemblyName>System.IO.FileSystem.Primitives</AssemblyName>
|
||||
<IsPartialFacadeAssembly Condition="'$(TargetGroup)' == 'net46'">true</IsPartialFacadeAssembly>
|
||||
<NuGetTargetMoniker Condition="'$(TargetGroup)' == ''">.NETStandard,Version=v1.3</NuGetTargetMoniker>
|
||||
<IsPartialFacadeAssembly>true</IsPartialFacadeAssembly>
|
||||
<NuGetTargetMoniker Condition="'$(TargetGroup)' == ''">.NETStandard,Version=v1.7</NuGetTargetMoniker>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'net46_Debug|AnyCPU'" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'net46_Release|AnyCPU'" />
|
||||
<ItemGroup Condition="'$(TargetGroup)' != 'net46'">
|
||||
<Compile Include="System\IO\FileAccess.cs" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netstandard1.7_Debug|AnyCPU'" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netstandard1.7_Release|AnyCPU'" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'net463_Debug|AnyCPU'" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'net463_Release|AnyCPU'" />
|
||||
<ItemGroup Condition="'$(TargetGroup)' != 'net463'">
|
||||
<Compile Include="System\IO\FileAttributes.cs" />
|
||||
<Compile Include="System\IO\FileMode.cs" />
|
||||
<Compile Include="System\IO\FileShare.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition="'$(TargetGroup)' == 'net46'">
|
||||
<ItemGroup Condition="'$(TargetGroup)' == ''">
|
||||
<TargetingPackReference Include="System.Private.CoreLib" />
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition="'$(TargetGroup)' == 'net463'">
|
||||
<TargetingPackReference Include="mscorlib" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="project.json" />
|
||||
</ItemGroup>
|
||||
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
|
||||
</Project>
|
||||
</Project>
|
||||
@@ -1,35 +0,0 @@
|
||||
// Licensed to the .NET Foundation under one or more agreements.
|
||||
// The .NET Foundation licenses this file to you under the MIT license.
|
||||
// See the LICENSE file in the project root for more information.
|
||||
|
||||
using System;
|
||||
|
||||
namespace System.IO
|
||||
{
|
||||
/// <devdoc>
|
||||
/// Defines constants for read, write, or read/write
|
||||
/// access to a file.
|
||||
/// </devdoc>
|
||||
[Flags]
|
||||
public enum FileAccess
|
||||
{
|
||||
/// <devdoc>
|
||||
/// Specifies read access to the file. Data can be read from the file and
|
||||
/// the file pointer can be moved. Combine with WRITE for read-write access.
|
||||
/// </devdoc>
|
||||
Read = 1,
|
||||
|
||||
/// <devdoc>
|
||||
/// Specifies write access to the file. Data can be written to the file and
|
||||
/// the file pointer can be moved. Combine with READ for read-write access.
|
||||
/// </devdoc>
|
||||
Write = 2,
|
||||
|
||||
/// <devdoc>
|
||||
/// Specifies read and write access to the file. Data can be written to the
|
||||
/// file and the file pointer can be moved. Data can also be read from the
|
||||
/// file.
|
||||
/// </devdoc>
|
||||
ReadWrite = 3
|
||||
}
|
||||
}
|
||||
@@ -1,14 +1,11 @@
|
||||
{
|
||||
"frameworks": {
|
||||
"netstandard1.3": {
|
||||
"netstandard1.7": {
|
||||
"dependencies": {
|
||||
"System.Runtime": "4.0.20"
|
||||
},
|
||||
"imports": [
|
||||
"dotnet5.4"
|
||||
]
|
||||
"Microsoft.TargetingPack.Private.CoreCLR": "1.2.0-beta-24605-01"
|
||||
}
|
||||
},
|
||||
"net46": {
|
||||
"net463": {
|
||||
"dependencies": {
|
||||
"Microsoft.TargetingPack.NETFramework.v4.6": "1.0.1"
|
||||
}
|
||||
|
||||
+6
-1
@@ -4,7 +4,12 @@
|
||||
<ItemGroup>
|
||||
<Project Include="System.IO.FileSystem.Primitives.Tests.csproj"/>
|
||||
<Project Include="System.IO.FileSystem.Primitives.Tests.csproj">
|
||||
<TestTFMs>netcore50;net46</TestTFMs>
|
||||
<TestTFMs>net463</TestTFMs>
|
||||
<OSGroup>Windows_NT</OSGroup>
|
||||
</Project>
|
||||
<Project Include="System.IO.FileSystem.Primitives.Tests.csproj">
|
||||
<TargetGroup>netstandard1.3</TargetGroup>
|
||||
<TestTFMs>net46;netcore50</TestTFMs>
|
||||
<OSGroup>Windows_NT</OSGroup>
|
||||
</Project>
|
||||
</ItemGroup>
|
||||
|
||||
+2
-2
@@ -7,7 +7,7 @@
|
||||
<ProjectGuid>{2EF7EFA5-F171-4CAB-8A29-32833949FD87}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AssemblyName>System.IO.FileSystem.Primitives.Tests</AssemblyName>
|
||||
<NugetTargetMoniker>.NETStandard,Version=v1.3</NugetTargetMoniker>
|
||||
<NugetTargetMoniker Condition="'$(TargetGroup)' == ''">.NETStandard,Version=v1.7</NugetTargetMoniker>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
@@ -35,4 +35,4 @@
|
||||
<Compile Include="FileShareTests.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
|
||||
</Project>
|
||||
</Project>
|
||||
@@ -13,11 +13,13 @@
|
||||
"Microsoft.DotNet.BuildTools.TestSuite": "1.0.0-prerelease-00830-02"
|
||||
},
|
||||
"frameworks": {
|
||||
"netstandard1.3": {}
|
||||
"netstandard1.3": {},
|
||||
"netstandard1.7": {}
|
||||
},
|
||||
"supports": {
|
||||
"coreFx.Test.netcore50": {},
|
||||
"coreFx.Test.netcoreapp1.0": {},
|
||||
"coreFx.Test.netcoreapp1.1": {},
|
||||
"coreFx.Test.net46": {},
|
||||
"coreFx.Test.net461": {},
|
||||
"coreFx.Test.net462": {},
|
||||
|
||||
Reference in new issue
Block a user