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:34

You need to make sure you have installed grunt globally

查看更多
永恒的永恒
3楼-- · 2019-01-02 18:36

Error Code 9009 means error file not found. All the underlying reasons posted in the answers here are good inspiration to figure out why, but the error itself simply means a bad path.

查看更多
其实,你不懂
4楼-- · 2019-01-02 18:37

Most probably you have space in your resultant path.

You can work around this by quoting the paths, thus allowing spaces. For example:

xcopy "$(SolutionDir)\Folder Name\File To Copy.ext" "$(TargetDir)" /R /Y /I
查看更多
无与为乐者.
5楼-- · 2019-01-02 18:37

For me, disk space was low, and files that couldn't be written were expected to be present later. Other answers mentioned missing files (or misnamed/improperly referenced-by-name files)--but the root cause was lack of disk space.

查看更多
怪性笑人.
6楼-- · 2019-01-02 18:37

Actually I noticed that for some reason the %windir% environment variable sometimes get erased. What worked for me was re-set the windir environment variable to c:\windows, restart VS, and that's it. That way you prevent having to modify the solution files.

查看更多
素衣白纱
7楼-- · 2019-01-02 18:38

If the script actually does what it needs to do and it's just Visual Studio bugging you about the error you could just add:

exit 0

to the end of you script.

查看更多
登录 后发表回答