A step that executes a tool (that was already installed in previous steps) via .NET ProcessStartInfo throws "The system cannot find the file specified" #109546
Replies: 4 comments
-
When you say you've already installed the tool on the host, which host are you referring to? When you run GitHub Actions, they are running within a runner (either When you are running Where that executable was installed might not be obvious, and if you installed it within a previous job then it's likely the current job won't have access to it (because it could be a different runner, and will be a different workspace). |
Beta Was this translation helpful? Give feedback.
-
I am sorry, it's a hosted runner. In the workflow, I have a single job (same runner) with many steps. Before the step where the tool |
Beta Was this translation helpful? Give feedback.
-
Got past the issue by changing the application code,
|
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
I am seeing this weird issue: basically from a step, I am trying to run a
dotnet test
, that invokes a new Process. In the process, I am trying to execute a tool that was already installed in a previous step in the workflow.I am getting the error,
Installed
func
(Azure Function Core Tools). Triedfunc --version
andfunc.exe --version
, didn't work.Installed
npm
. Triednpm --version
, didn't work.Then tried this
powershell.exe echo 'Hello World'
, and it worked.Since I have already installed the tool on the host, shouldn't it be available? Not sure whether this a restriction, if it is, I am sorry I couldn't find any documentation.
Already raised an issue with .NET team, not sure whether it belongs there though.
.NET Test invoking an Azure Function: An error occurred trying to start process 'func' with working directory. The system cannot find the file specified
Beta Was this translation helpful? Give feedback.
All reactions