Skip to content

Commit 6468265

Browse files
Remove hardcoded '.exe' from the dotnet executable to ensure compatibility across Windows and Linux environments
1 parent 9dffc7b commit 6468265

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dotnet/test/ProjectHealthTest/PackageVersionsConsistency.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ private List<string> BuildDepsJson(string projectPath, string targetFramework)
5959
{
6060
Process process = new Process();
6161
List<string> outputLines = new List<string>();
62-
process.StartInfo.FileName = "dotnet.exe";
62+
process.StartInfo.FileName = "dotnet";
6363
process.StartInfo.WorkingDirectory = Directory.GetCurrentDirectory();
6464
process.StartInfo.Arguments = $"list {projectPath} package --include-transitive --framework {targetFramework}";
6565

0 commit comments

Comments
 (0)