From 0e67bc83c83d45a289e2602f8b11742d1ef26d3c Mon Sep 17 00:00:00 2001 From: = Date: Tue, 30 Jan 2018 16:22:57 -0800 Subject: [PATCH] Build RID specific .All and .App symbols packages --- build/Publish.targets | 7 -- build/SharedFx.props | 1 + build/SharedFx.targets | 94 +++++++++++++++++-- build/repo.props | 4 - .../SharedFrameworkSymbols.nuspec | 21 +++++ 5 files changed, 107 insertions(+), 20 deletions(-) create mode 100644 build/tools/templates/SharedFxSymbols/SharedFrameworkSymbols.nuspec diff --git a/build/Publish.targets b/build/Publish.targets index b463c90532..a8f065fdc5 100644 --- a/build/Publish.targets +++ b/build/Publish.targets @@ -64,17 +64,10 @@ nuGetPackagesArchive-$(PackageVersion).lzma aspnetcore-runtime-$(PackageVersion) aspnetcore-runtime-latest - aspnetcore-runtime-symbols-$(PackageVersion) aspnetcore-runtime-internal-$(PackageVersion) - - - $(BlobBasePath)$(SymbolsArchiveBaseFileName)-%(RuntimeSymbolsArchive.Identity)%(RuntimeSymbolsArchive.FileExt) - ShipInstaller=dotnetcli - - $(BlobBasePath)$(PackageArchiveFileName) diff --git a/build/SharedFx.props b/build/SharedFx.props index 2f35fd7778..4a3267e20d 100644 --- a/build/SharedFx.props +++ b/build/SharedFx.props @@ -11,6 +11,7 @@ <_DebToolDir>$(MSBuildThisFileDirectory)tools\dotnet-deb-tool-consumer\ <_SharedFxSourceDir>$(RepositoryRoot).deps\Signed\SharedFx\ <_InstallerSourceDir>$(RepositoryRoot).deps\Installers\ + <_SymbolsSourceDir>$(RepositoryRoot).deps\Symbols\ <_DockerRootDir>/opt/code/ <_InstallersOutputDir>$(ArtifactsDir)installers\ diff --git a/build/SharedFx.targets b/build/SharedFx.targets index 3c1502a019..589cc66b4d 100644 --- a/build/SharedFx.targets +++ b/build/SharedFx.targets @@ -284,9 +284,18 @@ + + %(RootDir)%(Directory)%(Filename).pdb + + + %(RootDir)%(Directory)%(Filename).pdb + + <_AssembliesToCrossgen Include="$(SharedFxIntermediateOutputPath)**\*.dll" /> + + @@ -303,6 +312,14 @@ + + + + + + + + - + + + runtime.$(SharedFxRID).$(SymbolsNuspecIdSuffix) + + - - + <_SymbolFiles Include="$(SymbolsWorkDir)**\*.pdb;$(SymbolsWorkDir)**\*.map" /> + + %(RecursiveDir)%(Filename)%(Extension) + - - + + + + + PackageFiles="@(SymbolFiles)" + BasePath="$(SymbolsWorkDir)" /> + + + + + $(_WorkRoot)Symbols\Microsoft.AspNetCore.App\ + $(_WorkRoot)Symbols\Microsoft.AspNetCore.All\ + + + + + + + + + + + + + + + + + SymbolsWorkDir=$(AppSharedFxSymbolsDirectory) + $(AppSymbolsArguments);SymbolsNuspecIdSuffix=Microsoft.AspNetCore.App.symbols + $(AppSymbolsArguments);Description=Symbol packages for Microsoft.AspNetCore.App shared framework + SymbolsWorkDir=$(AllSharedFxSymbolsDirectory) + $(AllSymbolsArguments);SymbolsNuspecIdSuffix=Microsoft.AspNetCore.All.symbols + $(AllSymbolsArguments);Description=Symbol packages for Microsoft.AspNetCore.All shared framework + + + + + diff --git a/build/repo.props b/build/repo.props index d7ece91600..4a773a8f0a 100644 --- a/build/repo.props +++ b/build/repo.props @@ -25,10 +25,6 @@ - - - - diff --git a/build/tools/templates/SharedFxSymbols/SharedFrameworkSymbols.nuspec b/build/tools/templates/SharedFxSymbols/SharedFrameworkSymbols.nuspec new file mode 100644 index 0000000000..fed64a5849 --- /dev/null +++ b/build/tools/templates/SharedFxSymbols/SharedFrameworkSymbols.nuspec @@ -0,0 +1,21 @@ + + + + $ID$ + $VERSION$ + $DESCRIPTION$ + Microsoft + Microsoft + Copyright © Microsoft Corporation + https://raw.githubusercontent.com/aspnet/Home/2.0.0/LICENSE.txt + https://go.microsoft.com/fwlink/?LinkID=288859 + https://asp.net + true + true + aspnetcore + + + + + +