我不小心将所有项目文件都锁定在 VS 2013 中。现在,当我编辑资源文件并重建时,我得到了
error MSB6006 exited with code 1
文件被锁定的潜在原因:
- 手动编辑 .rc 文件(删除长注释....)
- 添加安装项目
我不小心将所有项目文件都锁定在 VS 2013 中。现在,当我编辑资源文件并重建时,我得到了
error MSB6006 exited with code 1
文件被锁定的潜在原因:
首先,如果要从 git 源代码管理中解锁资源文件,可以修改.gitignore
解决方案文件夹中的文件,添加要从源代码管理中排除的任何文件。该文件保存将从 git 中排除的文件。或者只是运行 git 命令:
git reset -- <file>
git rm --cached <file>
请查看有关使用 Git 忽略文件更改的文档。
另外,您还可以删除.git
隐藏文件夹。</p>
当我更改控件名称时,我收到“致命错误 RC1022:预期的 '#endif'”
您应该注意以下信息:Resource Compiler Fatal Error RC1022。
An #if, #ifdef, or #ifndef directive was not terminated with an #endif directive.
Make sure that there is an #if, #ifdef, or #ifndef statement in effect before this statement.
请注意,您应该使用#if
,#ifdef
或以 .#ifndef
结尾的#endif
。