InvokeTestingPlatformTask should utilize RunCommand
MSBuild property to determine how to run the test
#5091
Labels
RunCommand
MSBuild property to determine how to run the test
#5091
Logic around that in SDK:
https://github.com/dotnet/sdk/blob/ec0d0d91c119157eb27a3248fe35b43f2583e2ec/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.targets#L1130-L1168
We are broken at least in this case:
https://github.com/dotnet/sdk/blob/ec0d0d91c119157eb27a3248fe35b43f2583e2ec/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.targets#L1152-L1155
That's the root cause of the current failure of microsoft/PowerToys#37001
For some reason, doing
dotnet exec path/to/dll
fails with:while running the Exe directly works.
RunCommand
MSBuild property correctly has the path to the executable.Currently, we use
TargetPath
which is pointing out to the dll.The text was updated successfully, but these errors were encountered: