From 0bf81fd82adce4a8c133e3defdbf3ccbd00f4e58 Mon Sep 17 00:00:00 2001 From: Nate McMaster Date: Tue, 10 Oct 2017 09:59:42 -0700 Subject: [PATCH] Invoke dotnet-store as an MSBuild target, and update its restore sources --- build/RuntimeStore.targets | 44 +++++++++++++++---- .../templates/RS.Manifest/RS.Manifest.csproj | 16 ++++++- 2 files changed, 50 insertions(+), 10 deletions(-) diff --git a/build/RuntimeStore.targets b/build/RuntimeStore.targets index 81f949a2c3..528485da7c 100644 --- a/build/RuntimeStore.targets +++ b/build/RuntimeStore.targets @@ -1,6 +1,12 @@ + + 1.0.0 + $(VersionPrefix)-$(VersionSuffix) + $(VersionPrefix) + + <_DependencyBuildDirectory>$(RepositoryRoot).deps\build\ <_DependencyMirrorDirectory>$(RepositoryRoot).deps\mirror\ @@ -84,16 +90,38 @@ + + <_RuntimeStoreRestoreSources Include="$(_DependencyBuildDirectory)" Condition="Exists($(_DependencyBuildDirectory))" /> + <_RuntimeStoreRestoreSources Include="$(BuildDir)" /> + + + + + + <__ComposeStoreProps /> + <_ComposeStoreProps Condition="Exists($(_DependencyBuildDirectory))">$(_ComposeStoreProps);AspNetUniverseBuildOffline=true + <_ComposeStoreProps>$(_ComposeStoreProps);RuntimeIdentifier=$(RuntimeStoreRID) + <_ComposeStoreProps>$(_ComposeStoreProps);ComposeDir=$(_RuntimeStoreOutputDirectory) + <_ComposeStoreProps>$(_ComposeStoreProps);RuntimeFrameworkVersion=$(SharedFrameworkVersion) + <_ComposeStoreProps>$(_ComposeStoreProps);ComposeWorkingDir=$(_RuntimeStoreWorkDirectory) + <_ComposeStoreProps>$(_ComposeStoreProps);MicrosoftAspNetCoreAllPackageVersion=$(Version) + <_ComposeStoreProps>$(_ComposeStoreProps);DotNetRestoreSourcesPropsPath=$(GeneratedRestoreSourcesPropsPath) + + - + - + - + @@ -118,8 +146,8 @@ - $(ArtifactsDir)aspnetcore-store-$(VersionPrefix)-$(VersionSuffix)-$(RuntimeStoreRID).zip - $(ArtifactsDir)aspnetcore-symbols-$(VersionPrefix)-$(VersionSuffix)-$(RuntimeStoreRID).zip + $(ArtifactsDir)aspnetcore-store-$(Version)-$(RuntimeStoreRID).zip + $(ArtifactsDir)aspnetcore-symbols-$(Version)-$(RuntimeStoreRID).zip @@ -136,7 +164,7 @@ NewManifests="@(RuntimeStoreManifestFiles)" RuntimeStoreFiles="@(RuntimeStoreFiles)" RuntimeStoreSymbolFiles="@(RuntimeStoreSymbolFiles)" - ManifestDestination="$(ArtifactsDir)aspnetcore-store-$(VersionPrefix)-$(VersionSuffix)-$(RuntimeStoreRID).xml" + ManifestDestination="$(ArtifactsDir)aspnetcore-store-$(Version)-$(RuntimeStoreRID).xml" StoreDestination="$(_StoreZipDirectory)store\" SymbolsDestination="$(_SymbolsZipDirectory)"/> @@ -155,7 +183,7 @@ - aspnetcore-store-$(VersionPrefix)-$(VersionSuffix)-common.xml + aspnetcore-store-$(Version)-common.xml @@ -182,7 +210,7 @@ + ManifestDestination="$(_WorkRoot)\build\aspnetcore-store-$(Version).xml"/> diff --git a/build/tools/templates/RS.Manifest/RS.Manifest.csproj b/build/tools/templates/RS.Manifest/RS.Manifest.csproj index 0e9d1c5186..514fd38948 100644 --- a/build/tools/templates/RS.Manifest/RS.Manifest.csproj +++ b/build/tools/templates/RS.Manifest/RS.Manifest.csproj @@ -1,13 +1,25 @@ + netcoreapp2.0 + $(DotNetRestoreSources) + + $(RestoreSources); + https://dotnet.myget.org/F/aspnet-2-0-2-october2017-patch/api/v3/index.json; + https://dotnet.myget.org/F/aspnetcore-master/api/v3/index.json; + https://dotnet.myget.org/F/aspnetcore-tools/api/v3/index.json; + + + $(RestoreSources); + https://api.nuget.org/v3/index.json; + - + @@ -19,4 +31,4 @@ - \ No newline at end of file +