-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Description
Any library that references System.Text.Json is getting the Json Source Generator project in their .sln file:
Lines 54 to 55 in ef85762
| Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "System.Text.Json.SourceGeneration", "..\System.Text.Json\gen\System.Text.Json.SourceGeneration.csproj", "{160C3D6B-D90A-40B1-A695-81DB79EB24C4}" | |
| EndProject |
runtime/src/libraries/Microsoft.Extensions.DependencyModel/Microsoft.Extensions.DependencyModel.sln
Lines 24 to 25 in ef85762
| Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "System.Text.Json.SourceGeneration", "..\System.Text.Json\gen\System.Text.Json.SourceGeneration.csproj", "{6699E51A-8DC5-4DBA-A06B-B4A04144E4FA}" | |
| EndProject |
runtime/src/libraries/System.Net.Http.Json/System.Net.Http.Json.sln
Lines 28 to 29 in ef85762
| Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "System.Text.Json.SourceGeneration", "..\System.Text.Json\gen\System.Text.Json.SourceGeneration.csproj", "{D120D5A7-69D9-44A2-B7F7-EE0E48CC0238}" | |
| EndProject |
These are unnecessary, bloating the .sln file. With #58446, there are now 2 .csprojs for each source generator - each targeting a different version of Roslyn. Which will make it even worse.
We only really need the Source Generator projects in the .sln files of the libraries that build source generators: Json and Logging.Abstractions.
cc @ViktorHofer