What does “exited with code 9009” mean during this

2019-01-02 17:53发布

What does this error message mean? What could I do to correct this issue?

AssemblyInfo.cs exited with code 9009


The problem is probably happening as part of a post-build step in a .NET solution in Visual Studio.

29条回答
旧时光的记忆
2楼-- · 2019-01-02 18:42

Same as the other answers, in my case it was because of the missing file. To know what is the missing file, you can go to the output window and it will show you straight away what went missing.

To open the output window in Visual Studio:

  1. Ctrl+Alt+O
  2. View > Output

enter image description here

查看更多
梦醉为红颜
3楼-- · 2019-01-02 18:44

I added "> myFile.txt" to the end of the line in the pre-build step and then inspected the file for the actual error.

查看更多
爱死公子算了
4楼-- · 2019-01-02 18:46

Another variant:

today I call python interpreter from cron in win32 and take ExitCode (%ERRORLEVEL%) 9009, because system account used by cron don't have path to Python directory.

查看更多
十年一品温如言
5楼-- · 2019-01-02 18:47

Check the spelling. I was trying to call an executable but had the name misspelled and it gave me the exited with code 9009 message.

查看更多
浅入江南
6楼-- · 2019-01-02 18:47

I also ran into this 9009 problem when facing an overwrite situation.

Basically, if the file already exists and you have not specified the /y switch (which automatically overwrites) this error can happen when run from a build.

查看更多
登录 后发表回答