Skip to content

Commit

Permalink
Bring back System.IO.Pipes.AccessControl package and make it availabl…
Browse files Browse the repository at this point in the history
…e in .NET 5.0 (#38177)

* Bring back System.IO.Pipes.AccessControl package and make it available in .NET 5.0.

* address suggestions

* fix test error

* Microsoft.Windows.Compatibility.pkgproj
  • Loading branch information
carlossanlop committed Jun 23, 2020
1 parent 92153e9 commit 80a7935
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<Project DefaultTargets="Build">
<Import Project="$([MSBuild]::GetPathOfFileAbove(Directory.Build.props))" />
<ItemGroup>
<ProjectReference Include="..\src\System.IO.Pipes.AccessControl.csproj">
<SupportedFramework>$(NetCoreAppCurrent)</SupportedFramework>
</ProjectReference>
<HarvestIncludePaths Include="lib/net46;runtimes/win/lib/net46" />
<HarvestIncludePaths Include="lib/net461;runtimes/win/lib/net461" />
<HarvestIncludePaths Include="lib/netstandard1.3" />
<HarvestIncludePaths Include="lib/netstandard2.0" />
<HarvestIncludePaths Include="runtimes/win/lib/netcoreapp2.1" />
</ItemGroup>
<Import Project="$([MSBuild]::GetPathOfFileAbove(Directory.Build.targets))" />
</Project>
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<!-- We are no longer shipping this assembly and it is only used in desktop facades.
The reference assembly version needs to be frozen so that our desktop compat facades point to the version from the package. -->
<AssemblyVersion>4.0.3.0</AssemblyVersion>
<TargetFrameworks>netstandard2.0</TargetFrameworks>
<Nullable>enable</Nullable>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyName>System.IO.Pipes.AccessControl</AssemblyName>
<IncludeDefaultReferences>false</IncludeDefaultReferences>
<IsPartialFacadeAssembly Condition="'$(TargetsWindows)' == 'true'">true</IsPartialFacadeAssembly>
<OmitResources Condition="'$(TargetsWindows)' == 'true'">true</OmitResources>
<GeneratePlatformNotSupportedAssemblyMessage Condition="'$(TargetsWindows)' != 'true'">SR.PlatformNotSupported_AccessControl</GeneratePlatformNotSupportedAssemblyMessage>
<TargetFrameworks>$(NetCoreAppCurrent)-Windows_NT;$(NetCoreAppCurrent)-Unix</TargetFrameworks>
<TargetFrameworks>$(NetCoreAppCurrent)-Windows_NT;netcoreapp2.1;$(NetCoreAppCurrent)</TargetFrameworks>
<Nullable>enable</Nullable>
</PropertyGroup>
<PropertyGroup>
<IncludeDefaultReferences Condition="'$(TargetFramework)' == '$(NetCoreAppCurrent)'">false</IncludeDefaultReferences>
<AssemblyVersion Condition="'$(TargetFramework)' == 'netcoreapp2.1'">4.0.3.0</AssemblyVersion>
</PropertyGroup>
<ItemGroup>
<Reference Include="System.Runtime" />
</ItemGroup>
<ItemGroup Condition="'$(TargetsWindows)' == 'true'">
<ProjectReference Include="..\..\System.IO.Pipes\src\System.IO.Pipes.csproj" />
<ProjectReference Include="..\..\System.Security.AccessControl\src\System.Security.AccessControl.csproj" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp2.1'">
<Reference Include="System.Resources.ResourceManager" />
</ItemGroup>
<ItemGroup Condition="'$(TargetsWindows)' != 'true'">
<Reference Include="System.IO.Pipes" />
<Reference Include="System.Security.AccessControl" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<PrereleaseLibraryPackage Include="System.DirectoryServices.Protocols" />
<PrereleaseLibraryPackage Include="System.IO.FileSystem.AccessControl" />
<PrereleaseLibraryPackage Include="System.IO.Packaging" />
<PrereleaseLibraryPackage Include="System.IO.Pipes.AccessControl" />
<PrereleaseLibraryPackage Include="System.IO.Ports" />
<PrereleaseLibraryPackage Include="System.Management" />
<PrereleaseLibraryPackage Include="System.Runtime.Caching" />
Expand All @@ -49,9 +50,6 @@
<NS21PrereleaseLibraryPackage Include="System.Reflection.Context" />

<!-- Packages we don't build in master anymore -->
<LibraryPackage Include="System.IO.Pipes.AccessControl">
<Version>4.5.1</Version>
</LibraryPackage>
<LibraryPackage Include="System.Data.DataSetExtensions">
<Version>4.5.0</Version>
</LibraryPackage>
Expand Down
11 changes: 6 additions & 5 deletions src/libraries/pkg/baseline/packageIndex.json
Original file line number Diff line number Diff line change
Expand Up @@ -3382,12 +3382,13 @@
"4.5.0",
"4.5.1"
],
"BaselineVersion": "4.5.1",
"BaselineVersion": "5.0.0",
"InboxOn": {},
"AssemblyVersionInPackageVersion": {
"4.0.1.0": "4.3.0",
"4.0.2.0": "4.4.0",
"4.0.3.0": "4.5.0"
"4.0.3.0": "4.5.0",
"5.0.0.0": "5.0.0"
}
},
"System.IO.Ports": {
Expand Down Expand Up @@ -7254,8 +7255,8 @@
}
},
"ModulesToPackages": {
"sni.dll": "runtime.native.System.Data.SqlClient.sni",
"libSystem.IO.Ports.Native": "runtime.native.System.IO.Ports"
"libSystem.IO.Ports.Native": "runtime.native.System.IO.Ports",
"sni.dll": "runtime.native.System.Data.SqlClient.sni"
},
"MetaPackages": {
"NETStandard.Library": [
Expand Down Expand Up @@ -7304,4 +7305,4 @@
"System.Xml.XDocument"
]
}
}
}

0 comments on commit 80a7935

Please sign in to comment.