How to resolve console application exited with code 9009 #10908

Closed
opened 2026-01-31 02:33:27 +00:00 by claunia · 2 comments
Owner

Originally created by @mageshsankar on GitHub (Oct 6, 2020).

Im try to run a c# console application in build process by using below command

<Target Name="AfterBuild" AfterTargets="AfterBuild">
     <Exec Command="$(ProjectDir)$(OutputPath)$(AssemblyName).$(OutputType)" />
   </Target>

Error when Build : error exited with code 9009

Note : This error occurs due to my project have space in parent folders

this same scenario working fine when parent folder name does not have space

How to resolve this issue?

Originally created by @mageshsankar on GitHub (Oct 6, 2020). Im try to run a c# console application in build process by using below command ``` <Target Name="AfterBuild" AfterTargets="AfterBuild"> <Exec Command="$(ProjectDir)$(OutputPath)$(AssemblyName).$(OutputType)" /> </Target> ``` Error when Build : error exited with code 9009 Note : This error occurs due to my project have space in parent folders this same scenario working fine when parent folder name does not have space How to resolve this issue?
claunia added the Needs-TriageResolution-ExternalNeeds-Tag-Fix labels 2026-01-31 02:33:27 +00:00
Author
Owner

@jdebp commented on GitHub (Oct 6, 2020):

This is nothing at all to do with Windows Terminal, note.

The command line syntax of, and quoting rules that you should be using in, an Exec task in MSBuild are the same as you would use passing a command line to the cmd command interpreter, because that is of course what it runs.

@jdebp commented on GitHub (Oct 6, 2020): **This is _nothing at all_ to do with Windows Terminal, note.** The command line syntax of, and quoting rules that you should be using in, [an `Exec` task in MSBuild](https://docs.microsoft.com/en-gb/visualstudio/msbuild/exec-task) are the same as you would use passing a command line to the `cmd` command interpreter, because that is of course what it runs.
Author
Owner

@zadjii-msft commented on GitHub (Oct 7, 2020):

Yea, this doesn't have anything to do with the Terminal, so I'm gonna close this thread. The link @jdebp provided should be able to help you.

@zadjii-msft commented on GitHub (Oct 7, 2020): Yea, this doesn't have anything to do with the Terminal, so I'm gonna close this thread. The link @jdebp provided should be able to help you.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#10908