From: Mitchell Hwang Date: Thu, 16 Apr 2020 12:49:20 +0000 (-0400) Subject: Creating a runtime pack artifacts directory in the libraries build (#34662) X-Git-Tag: submit/tizen/20210909.063632~8548 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c991d9bc35b38016d8a48e745f842b648678fb9a;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Creating a runtime pack artifacts directory in the libraries build (#34662) This change populates a runtime pack directory structure in artifcats/bin. This is so that we can support running libraries tests for iOS and Android. --- diff --git a/src/libraries/Directory.Build.props b/src/libraries/Directory.Build.props index 51e21fa..c9a2cf7 100644 --- a/src/libraries/Directory.Build.props +++ b/src/libraries/Directory.Build.props @@ -271,12 +271,16 @@ $(ArtifactsBinDir)pkg\$(NetCoreAppCurrent)\ref $(ArtifactsBinDir)pkg\$(NetCoreAppCurrent)\lib - + $(ArtifactsBinDir)pkg\aspnetcoreapp\ref $(ArtifactsBinDir)pkg\aspnetcoreapp\lib $([MSBuild]::NormalizeDirectory('$(ArtifactsBinDir)', 'testhost', '$(BuildSettings)')) + $([MSBuild]::NormalizeDirectory('$(ArtifactsBinDir)', 'lib-runtime-packs')) + $([MSBuild]::NormalizeDirectory('$(NETCoreAppRuntimePackPath)', 'runtimes', '$(PackageRID)', 'lib', '$(NETCoreAppFramework)')) + $([MSBuild]::NormalizeDirectory('$(NETCoreAppRuntimePackPath)', 'runtimes', '$(PackageRID)', 'native')) + runtimes/$(PackageRID) $(ArtifactsObjDir)version.txt @@ -304,9 +308,11 @@ - true + true true + true + $([MSBuild]::NormalizeDirectory('$(TestHostRootPath)', 'shared', 'Microsoft.NETCore.App', '$(ProductVersion)')) $(NETCoreAppTestSharedFrameworkPath) diff --git a/src/libraries/Directory.Build.targets b/src/libraries/Directory.Build.targets index 57a36f3..16af4c2 100644 --- a/src/libraries/Directory.Build.targets +++ b/src/libraries/Directory.Build.targets @@ -92,6 +92,17 @@ $(TestHostRootPath) + + + + $(NETCoreAppRuntimePackLibPath) + + + + $(NETCoreAppRuntimePackNativePath) + NativeBinPlaceItem + + $(NetStandard20RefPath) diff --git a/src/libraries/Native/native-binplace.proj b/src/libraries/Native/native-binplace.proj index 2631ea7..91f4208 100644 --- a/src/libraries/Native/native-binplace.proj +++ b/src/libraries/Native/native-binplace.proj @@ -11,16 +11,18 @@ - - - - - - - - - - + + + + + + + + + + + + diff --git a/src/libraries/pretest.proj b/src/libraries/pretest.proj index 74931a9..b3a7f36 100644 --- a/src/libraries/pretest.proj +++ b/src/libraries/pretest.proj @@ -1,7 +1,10 @@ + BuildAllProjects=true + $(TargetFrameworkIdentifier) + Microsoft.NETCore.App @@ -58,4 +61,38 @@ RuntimeGraphFiles="$(RuntimeIdGraphDefinitionFile)" TargetRuntimeIdentifier="$(PackageRID)" /> + + + + + RuntimeList.xml + $(NETCoreAppRuntimePackPath)/data/$(FrameworkListFilename) + + + + <_runtimePackLibFiles Include="$(NETCoreAppRuntimePackLibPath)*.*"> + $(RuntimePackTargetFrameworkPath)/lib/$(NETCoreAppFramework) + true + + <_runtimePackNativeFiles Include="$(NETCoreAppRuntimePackNativePath)*.*"> + $(RuntimePackTargetFrameworkPath)/native + true + + + + + + + + + + + + diff --git a/src/libraries/restore/runtime/runtime.depproj b/src/libraries/restore/runtime/runtime.depproj index 0546f2f..3179312 100644 --- a/src/libraries/restore/runtime/runtime.depproj +++ b/src/libraries/restore/runtime/runtime.depproj @@ -17,16 +17,14 @@ - + - - @@ -44,9 +42,6 @@ Condition="'$(BinPlaceTestSharedFramework)' == 'true'" AfterTargets="AfterResolveReferences"> - $([System.IO.File]::ReadAllText('$(RepoRoot)global.json')) - $([System.Text.RegularExpressions.Regex]::Match($(GlobalJsonContent), '(%3F<="dotnet": ").*(%3F=")')) - hostfxr libhostfxr @@ -73,6 +68,20 @@ + + + + + cross/ + + + include/%(RecursiveDir) + + + + - +