Build failed with Error MSB3073 exited with code 9009

18,096

After all, I figured out that my folder has a space in its name. I fixed this problem by removing the space out of my folder name. It seems the command doesn't work well with the name with space.

Share:
18,096
Ken
Author by

Ken

Updated on June 05, 2022

Comments

  • Ken
    Ken almost 2 years

    I run my visual studio project with the build script in cmd. It failed with the following error. Could anyone be able to guide me on what the error message trying to tell me. I'm thinking that i might have configured something wrong in my environment.

    Message

    "C:\yyy\project.sln" (build target) (1) ->
    "C:\yyy\project.csproj.metaproj" (default target) (2) ->
    "C:\yyy\project.csproj" (default target) (36) ->
    
    (PreBuildEvent target) ->
    C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(902,9):
    error MSB3073: 
    The command "IF EXIST C:\yyy\subdomain\NUL del /S /F /Q C:\yyy\subdomain\*.*"
    exited with code 9009. [C:\yyy\project.csproj]