diff --git a/src/NuGetizer.Tasks/NuGetizer.Inference.targets b/src/NuGetizer.Tasks/NuGetizer.Inference.targets
index 4ed92788..3c85598a 100644
--- a/src/NuGetizer.Tasks/NuGetizer.Inference.targets
+++ b/src/NuGetizer.Tasks/NuGetizer.Inference.targets
@@ -39,6 +39,9 @@ Copyright (c) .NET Foundation. All rights reserved.
<_OutputFullPath Condition="$([System.IO.Path]::IsPathRooted($(OutputPath)))">$(OutputPath)
<_OutputFullPath Condition="'$(_OutputFullPath)' == ''">$(MSBuildProjectDirectory.TrimEnd('\'))\$(OutputPath)
+
+
+ true
diff --git a/src/NuGetizer.Tests/InlineProjectTests.cs b/src/NuGetizer.Tests/InlineProjectTests.cs
index 175fb11f..a6b51c3f 100644
--- a/src/NuGetizer.Tests/InlineProjectTests.cs
+++ b/src/NuGetizer.Tests/InlineProjectTests.cs
@@ -774,5 +774,31 @@ public void when_packing_dependencies_then_can_include_exclude_assets()
ExcludeAssets = "build"
}));
}
+
+ [Fact]
+ public void when_private_assets_then_packs_transitively()
+ {
+ var result = Builder.BuildProject(
+ """
+
+
+ net6.0
+ true
+
+
+
+
+
+
+ """, output: output);
+
+ result.AssertSuccess(output);
+
+ Assert.Contains(result.Items, item => item.Matches(new
+ {
+ NuGetPackageId = "Microsoft.Extensions.Configuration.Abstractions",
+ PackFolder = "Lib",
+ }));
+ }
}
}