You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When starting a process from Cake I encountered a problem.
context.StartProcess("autorest.cmd", new ProcessSettings {
Arguments = new ProcessArgumentBuilder()
.AppendSwitchQuoted("--input-file", "=", input)
.Append("--add-credentials")
.Append("--csharp")
});
Since autorest.cmd works with the working directory, and Cake set the process' working directory to the current one (where we execute the build script), autorest.cmd will try to find it's dependencies such as ``node_modules` in the script directory which will fail.
Suggestion:
I think we should add an option to not use the working directory at all. This would make it possible to opt out from the behavior while still not break any other applications.
The text was updated successfully, but these errors were encountered:
When starting a process from Cake I encountered a problem.
Since
autorest.cmd
works with the working directory, and Cake set the process' working directory to the current one (where we execute the build script),autorest.cmd
will try to find it's dependencies such as ``node_modules` in the script directory which will fail.Suggestion:
I think we should add an option to not use the working directory at all. This would make it possible to opt out from the behavior while still not break any other applications.
The text was updated successfully, but these errors were encountered: