Skip to content

Commit 6418e84

Browse files
committed
Add comment explaining weird package referencing
1 parent e5a07d0 commit 6418e84

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Tools/Schema.NET.Tool/Schema.NET.Tool.csproj

+9
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@
1010
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="3.10.0" />
1111
</ItemGroup>
1212

13+
<!--
14+
Due to conflicts between Visual Studio/MSBuild and the .NET CLI (w.r.t transient dependencies),
15+
supporting the source generator is accomplished with different package sets.
16+
17+
The source generator fundamentally only needs System.Text.Json - the rest are transient dependency baggage.
18+
19+
Introduced via https://github.com/RehanSaeed/Schema.NET/pull/301 (see also https://github.com/RehanSaeed/Schema.NET/issues/265)
20+
.NET SDK issue with related transient dependency discussion https://github.com/dotnet/sdk/issues/17775
21+
-->
1322
<ItemGroup Condition="'$(BuildingInsideVisualStudio)' == 'true'">
1423
<PackageReference Include="System.Text.Json" Version="6.0.0-preview.5.21301.5" GeneratePathProperty="true" PrivateAssets="all" />
1524
<PackageReference Include="System.Text.Encodings.Web" Version="6.0.0-preview.5.21301.5" GeneratePathProperty="true" PrivateAssets="all" />

0 commit comments

Comments
 (0)