codeql icon indicating copy to clipboard operation
codeql copied to clipboard

Support for `.slnx` Solution Format Not Yet Implemented

Open samtrion opened this issue 5 months ago • 2 comments
trafficstars

Hello CodeQL team,

I would like to raise awareness that the newer .slnx solution format introduced by Microsoft is currently not supported by the C# extractor in CodeQL.

The following line in the source suggests that only traditional .sln files are recognized: https://github.com/github/codeql/blob/d83cbde1cb1263fb476a55ea5fd7972307138905/csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/FileProvider.cs#L40

As outlined in the official announcement by Microsoft: https://devblogs.microsoft.com/dotnet/introducing-slnx-support-dotnet-cli/

.slnx files are designed to work seamlessly with the .NET CLI and represent a modern evolution of solution management in .NET ecosystems. As adoption increases, support in CodeQL would ensure compatibility with a broader range of real-world .NET projects.

Is there any plan or roadmap item to add support for .slnx?

samtrion avatar Jun 13 '25 19:06 samtrion

Hi

Thanks for bringing this to our attention; it's not on our roadmap right now, but I'll make sure to add it to our backlog.

hvitved avatar Jun 16 '25 07:06 hvitved

@hvitved If possible please add .slnf also (https://learn.microsoft.com/en-us/visualstudio/msbuild/solution-filters?view=vs-2022)

samtrion avatar Jun 16 '25 09:06 samtrion