Skip to content

Commit

Permalink
Embed project.assets.json in binlog
Browse files Browse the repository at this point in the history
We're thinking of adding a way to embed arbitrary files in the binlog.
See dotnet/msbuild#6339

project.assets.json is commonly requested to be embedded. This would fix dotnet/msbuild#3529

Binlog size does increase from 3.5 MB -> 5 MB, so we'll need to think perhaps about making it off by default.
  • Loading branch information
KirillOsenkov committed Apr 11, 2021
1 parent 5ef4aaf commit 44c864a
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -60,6 +60,11 @@ Copyright (c) .NET Foundation. All rights reserved.
<_NugetTargetMonikerAndRID Condition="'$(RuntimeIdentifier)' != ''">$(NuGetTargetMoniker)/$(RuntimeIdentifier)</_NugetTargetMonikerAndRID>
</PropertyGroup>

<!-- Embed all project.assets.json files into the binary log when building with /bl -->
<ItemGroup>
<EmbedInBinlog Include="$(ProjectAssetsFile)" Condition="Exists('$(ProjectAssetsFile)') AND $(EmbedProjectAssetsFile) != false" />
</ItemGroup>

<!--
*************************************
2. EXTERNAL PROPERTIES and ITEMS
Expand Down

0 comments on commit 44c864a

Please sign in to comment.