Description
sdk/src/Cli/dotnet/commands/dotnet-test/SolutionAndProjectUtility.cs
Lines 87 to 88 in 9f73261
The second line above should crash. An array is fixed-length. It's implicitly converted to ICollection<string>
in that code path and should throw some exception at run-time.
sdk/src/Cli/dotnet/commands/dotnet-test/SolutionAndProjectUtility.cs
Lines 19 to 83 in 9f73261
I'm reading this logic as "If there are no sln/slnx files at all, and a single project file is found, use the project file". But what if the directory has slnf and project file, without sln/slnx? I think we should either prefer the slnf, or error. It's a pattern I have never seen, but ...
Anyways, we should validate the behavior of dotnet build
, and make sure we match it, and share some common helpers if needed.