Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Commit

Permalink
Fix up packaging build
Browse files Browse the repository at this point in the history
Fix up some configuration issues with uap packaging. The CoreFX.Private.TestUtilities packaging needs updated build tools which can map between uwp6.0 and netstandard2.0.

#ifdef out Thread.GetCurrentProcessorId until we get a new System.Private.CoreLib.
  • Loading branch information
nattress committed Mar 1, 2018
1 parent 1c35e7d commit 01311ca
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
<ItemGroup>
<ProjectReference Include="..\..\src\CoreFx.Private.TestUtilities\ref\CoreFx.Private.TestUtilities.csproj">
<SupportedFramework>netcoreapp2.0;net461;$(AllXamarinFrameworks)</SupportedFramework>
<SupportedFramework>netcoreapp2.0;net461;$(AllXamarinFrameworks);$(UAPvNextTFM)</SupportedFramework>
</ProjectReference>
<ProjectReference Include="..\..\src\CoreFx.Private.TestUtilities\src\CoreFx.Private.TestUtilities.csproj"/>
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ShouldWriteSigningRequired>false</ShouldWriteSigningRequired>
<AllowReferenceFromRuntime>true</AllowReferenceFromRuntime>
<RuntimeProjectFile>$(ProjectDir)\external\test-runtime\XUnit.Runtime.depproj</RuntimeProjectFile>
<PackageTargetFramework>netstandard2.0</PackageTargetFramework>
<PackageTargetFramework>netstandard2.0;$(UAPvNextTFM)</PackageTargetFramework>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netstandard-Debug|AnyCPU'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netstandard-Release|AnyCPU'" />
Expand Down
9 changes: 6 additions & 3 deletions src/System.IO.Pipes.AccessControl/src/Configurations.props
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<BuildConfigurations>
<PackageConfigurations>
netfx-Windows_NT;
netcoreapp-Windows_NT;
uap-Windows_NT;
netstandard-Windows_NT;
netstandard;
</PackageConfigurations>
<BuildConfigurations>
$(PackageConfigurations);
uap-Windows_NT;
</BuildConfigurations>
</PropertyGroup>
</Project>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<OutputType>Library</OutputType>
<IsPartialFacadeAssembly>true</IsPartialFacadeAssembly>
<ProjectGuid>{06197EED-FF48-43F3-976D-463839D43E8C}</ProjectGuid>
<DefineConstants Condition="'$(TargetGroup)' == 'uapaot'">$(DefineConstants);uapaot</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netcoreapp-Unix-Debug|AnyCPU'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netcoreapp-Unix-Release|AnyCPU'" />
Expand Down
8 changes: 8 additions & 0 deletions src/System.Threading.Thread/src/System/Threading/Thread.cs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,15 @@ public void SetCompressedStack(CompressedStack stack)
throw new InvalidOperationException(SR.Thread_GetSetCompressedStack_NotSupported);
}

#if uapaot
//
// Todo: Remove when we update System.Private.CoreLib for uapaot
// https://github.com/dotnet/corefx/issues/27619
//
public static int GetCurrentProcessorId() => 0;
#else
public static int GetCurrentProcessorId() => RuntimeThread.GetCurrentProcessorId();
#endif
public static AppDomain GetDomain() => AppDomain.CurrentDomain;
public static int GetDomainID() => GetDomain().Id;
public override int GetHashCode() => ManagedThreadId;
Expand Down

0 comments on commit 01311ca

Please sign in to comment.