From 3aa59d98bd9380fab4cae0ca9df5576c8e84d50f Mon Sep 17 00:00:00 2001 From: Matt Ellis Date: Fri, 12 May 2017 14:04:45 -0700 Subject: [PATCH] Remove CoreCLRRid property This property was only legitimately by the project which wants to restore `crossgen`. Since that now comes from Microsoft.NETCore.App (i.e. the shared framework) use SharedFrameworkRid instead. I also ensured that we passed UsePortableLinuxSharedFramework to dotnet restore when restoring the tool projects, so we can use the platform specific RID when non portable build. --- .../PackageWithFakeNativeDep/PackageWithFakeNativeDep.csproj | 1 - build/CrossGen.props | 4 ++-- build/Prepare.targets | 3 ++- build/Stage0.props | 3 --- build/test/TestPackageProjects.targets | 1 - dir.props | 2 +- tools/CrossGen.Dependencies/CrossGen.Dependencies.csproj | 2 +- 7 files changed, 6 insertions(+), 10 deletions(-) diff --git a/TestAssets/TestPackages/PackageWithFakeNativeDep/PackageWithFakeNativeDep.csproj b/TestAssets/TestPackages/PackageWithFakeNativeDep/PackageWithFakeNativeDep.csproj index 9929c7099..de9c330de 100644 --- a/TestAssets/TestPackages/PackageWithFakeNativeDep/PackageWithFakeNativeDep.csproj +++ b/TestAssets/TestPackages/PackageWithFakeNativeDep/PackageWithFakeNativeDep.csproj @@ -2,7 +2,6 @@ net45 PackageWithFakeNativeDep - win7-x64;win7-x86;osx.10.11-x64;ubuntu.14.04-x64;ubuntu.16.04-x64;centos.7-x64;rhel.7.2-x64;debian.8-x64;osx.10.10-x64;rhel.7-x64 diff --git a/build/CrossGen.props b/build/CrossGen.props index b4557d666..8d5dd78ec 100644 --- a/build/CrossGen.props +++ b/build/CrossGen.props @@ -1,8 +1,8 @@ - runtime.$(CoreCLRRid).microsoft.netcore.app + runtime.$(SharedFrameworkRid).microsoft.netcore.app $(NuGetPackagesDir)/$(RuntimeNETCoreAppPackageName)/$(CLI_SharedFrameworkVersion)/tools/crossgen$(ExeExtension) - $(NuGetPackagesDir)/$(RuntimeNETCoreAppPackageName)/$(CLI_SharedFrameworkVersion)/runtimes/$(CoreCLRRid)/native/$(DynamicLibPrefix)clrjit$(DynamicLibExtension) + $(NuGetPackagesDir)/$(RuntimeNETCoreAppPackageName)/$(CLI_SharedFrameworkVersion)/runtimes/$(SharedFrameworkRid)/native/$(DynamicLibPrefix)clrjit$(DynamicLibExtension) $(OutputDirectory)/shared/$(SharedFrameworkName)/$(SharedFrameworkVersion) diff --git a/build/Prepare.targets b/build/Prepare.targets index 074f4b758..214b1f78d 100644 --- a/build/Prepare.targets +++ b/build/Prepare.targets @@ -80,7 +80,8 @@ + ProjectPath=""%(RestoreToolsPackagesInput.FullPath)"" + AdditionalParameters="/p:UsePortableLinuxSharedFramework=$(UsePortableLinuxSharedFramework)" /> diff --git a/build/Stage0.props b/build/Stage0.props index b337b34b3..e5a6a0b50 100644 --- a/build/Stage0.props +++ b/build/Stage0.props @@ -5,8 +5,5 @@ $(Stage0Directory)/dotnet$(ExeExtension) False True - win-$(Architecture) - osx-x64 - linux-x64 diff --git a/build/test/TestPackageProjects.targets b/build/test/TestPackageProjects.targets index 610d03937..fea46690c 100644 --- a/build/test/TestPackageProjects.targets +++ b/build/test/TestPackageProjects.targets @@ -59,7 +59,6 @@ 1.0.0 True - /p:RuntimeIdentifier=$(CoreCLRRid) dotnet-dependency-context-test diff --git a/dir.props b/dir.props index 2bf0fe048..a7e587dfb 100644 --- a/dir.props +++ b/dir.props @@ -34,9 +34,9 @@ - + diff --git a/tools/CrossGen.Dependencies/CrossGen.Dependencies.csproj b/tools/CrossGen.Dependencies/CrossGen.Dependencies.csproj index 5fd067694..e29aa4cdb 100644 --- a/tools/CrossGen.Dependencies/CrossGen.Dependencies.csproj +++ b/tools/CrossGen.Dependencies/CrossGen.Dependencies.csproj @@ -3,7 +3,7 @@ netcoreapp2.0 - $(CoreCLRRid) + $(SharedFrameworkRid)