From 233497d79189c84e0fc38a25952d2a6d3f476078 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Wed, 9 Jun 2021 19:22:29 +0200 Subject: [PATCH] [dotnet] Create binlogs when creating NuGets. (#11874) Makes diagnostics easier when something goes wrong. --- dotnet/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotnet/Makefile b/dotnet/Makefile index e4346b6b700b..16fe67d47469 100644 --- a/dotnet/Makefile +++ b/dotnet/Makefile @@ -143,7 +143,7 @@ define CreateNuGetTemplate nupkgs/$(1)$(4).$(2)+$(NUGET_BUILD_METADATA).nupkg: $(TEMPLATED_FILES) $(WORKLOAD_TARGETS) $(3) package/$(1)/package.csproj $(wildcard package/*.csproj) $(wildcard $(DOTNET_DESTDIR)/$(1)/* $(DOTNET_DESTDIR)/$(1)/*/* $(DOTNET_DESTDIR)/$(1)/*/*/* $(DOTNET_DESTDIR)/$(1)/*/*/*/*) global.json @# Delete any versions of the nuget we're building $$(Q) rm -f nupkgs/$(1).*.nupkg - $$(Q_PACK) $(DOTNET6) pack package/$(1)/package.csproj -p:VersionBand=$(DOTNET6_VERSION_BAND) --output "$$(dir $$@)" $(DOTNET_PACK_VERBOSITY) + $$(Q_PACK) $(DOTNET6) pack package/$(1)/package.csproj -p:VersionBand=$(DOTNET6_VERSION_BAND) --output "$$(dir $$@)" $(DOTNET_PACK_VERBOSITY) "/bl:$$@.binlog" @# Nuget pack doesn't add the metadata to the filename, but we want that, so rename nuget to contain the full name $$(Q) mv "nupkgs/$(1)$(4).$(2).nupkg" "$$@" @# Clean the local feed @@ -156,7 +156,7 @@ define CreateWindowsNuGetTemplate nupkgs/$(1).$(2)+$(NUGET_BUILD_METADATA).nupkg: $(3) $(WORKLOAD_TARGETS) package/$(1)/package.csproj $(wildcard package/*.csproj) $(wildcard $(DOTNET_DESTDIR)/$(1)/* $(DOTNET_DESTDIR)/$(1)/*/* $(DOTNET_DESTDIR)/$(1)/*/*/* $(DOTNET_DESTDIR)/$(1)/*/*/*/*) global.json @# Delete any versions of the nuget we're building $$(Q) rm -f nupkgs/$(1).*.nupkg - $$(Q_PACK) $(DOTNET6) pack package/$(1)/package.csproj --output "$$(dir $$@)" $(DOTNET_PACK_VERBOSITY) + $$(Q_PACK) $(DOTNET6) pack package/$(1)/package.csproj --output "$$(dir $$@)" $(DOTNET_PACK_VERBOSITY) "/bl:$$@.binlog" @# Nuget pack doesn't add the metadata to the filename, but we want that, so rename nuget to contain the full name $$(Q) mv "nupkgs/$(1).$(2).nupkg" "$$@" @# Clean the local feed