Skip to content

Commit 233497d

Browse files
authored
[dotnet] Create binlogs when creating NuGets. (#11874)
Makes diagnostics easier when something goes wrong.
1 parent cdae3c7 commit 233497d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dotnet/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ define CreateNuGetTemplate
143143
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
144144
@# Delete any versions of the nuget we're building
145145
$$(Q) rm -f nupkgs/$(1).*.nupkg
146-
$$(Q_PACK) $(DOTNET6) pack package/$(1)/package.csproj -p:VersionBand=$(DOTNET6_VERSION_BAND) --output "$$(dir $$@)" $(DOTNET_PACK_VERBOSITY)
146+
$$(Q_PACK) $(DOTNET6) pack package/$(1)/package.csproj -p:VersionBand=$(DOTNET6_VERSION_BAND) --output "$$(dir $$@)" $(DOTNET_PACK_VERBOSITY) "/bl:$$@.binlog"
147147
@# Nuget pack doesn't add the metadata to the filename, but we want that, so rename nuget to contain the full name
148148
$$(Q) mv "nupkgs/$(1)$(4).$(2).nupkg" "$$@"
149149
@# Clean the local feed
@@ -156,7 +156,7 @@ define CreateWindowsNuGetTemplate
156156
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
157157
@# Delete any versions of the nuget we're building
158158
$$(Q) rm -f nupkgs/$(1).*.nupkg
159-
$$(Q_PACK) $(DOTNET6) pack package/$(1)/package.csproj --output "$$(dir $$@)" $(DOTNET_PACK_VERBOSITY)
159+
$$(Q_PACK) $(DOTNET6) pack package/$(1)/package.csproj --output "$$(dir $$@)" $(DOTNET_PACK_VERBOSITY) "/bl:$$@.binlog"
160160
@# Nuget pack doesn't add the metadata to the filename, but we want that, so rename nuget to contain the full name
161161
$$(Q) mv "nupkgs/$(1).$(2).nupkg" "$$@"
162162
@# Clean the local feed

0 commit comments

Comments
 (0)