Dotnet new "Add project to solution" postAction can not find slnx files #48878
Labels
Area-dotnet new
the item is related to dotnet new command
untriaged
Request triage from a team member
Describe the bug
Running "dotnet new" with a template that uses the "add project to solution" postAction fails to find slnx solution files.
To Reproduce
I believe this is the troublesome code:
https://github.com/dotnet/sdk/blob/v9.0.203/src/Cli/dotnet/commands/dotnet-new/PostActions/DotnetSlnPostActionProcessor.cs#L30-L31
"FileFindHelpers.FindFilesAtOrAbovePath" doesn't return null. It returns an empty list if nothing is found.
The text was updated successfully, but these errors were encountered: