0

我不小心将所有项目文件都锁定在 VS 2013 中。现在,当我编辑资源文件并重建时,我得到了

error MSB6006 exited with code 1

在此处输入图像描述

文件被锁定的潜在原因:

  1. 手动编辑 .rc 文件(删除长注释....)
  2. 添加安装项目
4

1 回答 1

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

于 2020-09-08T08:06:00.190 回答