From 4f31e3db6690b5f67710bcc75eb10f718940e5a2 Mon Sep 17 00:00:00 2001 From: Nick Guerrera Date: Thu, 2 Nov 2017 10:07:11 -0700 Subject: [PATCH] Improve symbols zip archive We were publishing a -debug zip with sdk code and symbols, but it was captured before publishing was finished and had incorrect code content. Trying to use it would blow up due to incorrect runtimeconfig.json. Replace it with a -symbols zip that contains only symbols and that can be overlayed over the main zip. This is just like the -langpack zip that has satellite assemblies. Also add an option to leave the PDBs in the same directory/packages as code: /p:SeparateSymbolsArchive=false. Setting this on local builds facilitates debugging and profiling by removing the need to adjust symbol paths or copy PDBs around. --- build/Branding.props | 4 ++-- build/package/Layout.targets | 20 ++++++++++---------- src/redist/redist.csproj | 27 ++++++++++----------------- 3 files changed, 22 insertions(+), 29 deletions(-) diff --git a/build/Branding.props b/build/Branding.props index 9a66fdc2d..7b126782e 100644 --- a/build/Branding.props +++ b/build/Branding.props @@ -21,14 +21,14 @@ $(HostOSName)-$(Architecture) dotnet-sdk-internal - dotnet-sdk-debug + dotnet-sdk-symbols dotnet-sdk $(ArtifactNameCombinedHostHostFxrFrameworkSdk)-langpack $(ArtifactNameSdk)-$(SdkVersion)-$(ProductMonikerRid) dotnet-standard-support-vs2015-$(SdkVersion)-$(ProductMonikerRid) - $(ArtifactNameSdkDebug)-$(SdkVersion)-$(ProductMonikerRid) + $(ArtifactNameSdkSymbols)-$(SdkVersion)-$(ProductMonikerRid) $(ArtifactNameCombinedHostHostFxrFrameworkSdk)-$(SdkVersion)-$(ProductMonikerRid) $(ArtifactNameSdkLanguagePack)-$(SdkVersion)-$(ProductMonikerRid) $(ArtifactNameCombinedHostHostFxrFrameworkSdk)-$(SdkVersion)-$(HostMonikerRid) diff --git a/build/package/Layout.targets b/build/package/Layout.targets index 8d37a5b36..e59186202 100644 --- a/build/package/Layout.targets +++ b/build/package/Layout.targets @@ -1,7 +1,7 @@ - $(LayoutDirectory)/$(ArtifactNameSdkDebug) + $(LayoutDirectory)/$(ArtifactNameSdkSymbols) $(LayoutDirectory)/$(ArtifactNameCombinedHostHostFxrFrameworkSdk) $(LayoutDirectory)/$(ArtifactNameSdkLanguagePack) *.resources.dll @@ -12,7 +12,7 @@ - + @@ -30,9 +30,9 @@ - + Path1="$(SymbolsDirectory)/" + Path2="%(SdkSymbolsLayoutInput.Identity)" > + $(ArtifactNameSdk) - - @(SdkDebugLayoutInput) - @(SdkDebugRelativeOutputFiles -> '$(SdkDebugLayoutOutputDirectory)/%(Identity)') - $(ArtifactNameWithVersionSdkDebug) - $(ArtifactNameSdkDebug) + + @(SdkSymbolsLayoutInput) + @(SdkSymbolsRelativeOutputFiles -> '$(SdkSymbolsLayoutOutputDirectory)/%(Identity)') + $(ArtifactNameWithVersionSdkSymbols) + $(ArtifactNameSdkSymbols) diff --git a/src/redist/redist.csproj b/src/redist/redist.csproj index 37dbadb3a..fab6164c5 100644 --- a/src/redist/redist.csproj +++ b/src/redist/redist.csproj @@ -101,7 +101,8 @@ + $(PublishDir)/%(BundledToolProjects.Identity).dll; + $(PublishDir)/%(BundledToolProjects.Identity).pdb" /> + AfterTargets="GenerateCliRuntimeConfigurationFiles"> @@ -255,24 +256,16 @@ - + - <_AllSdkFiles Include="$(PublishDir)/**/*" /> + + - - - - - - - - - - +