如何在 Visual Studio 2013 中解锁 "Locked" 个文件?
How to Unlock "Locked" files in Visual Studio 2013?
我不小心导致所有项目文件在 VS 2013 中被锁定。
现在,当我编辑资源文件并重建时,我得到
error MSB6006 exited with code 1
文件被锁定的可能原因:
- 手动编辑 .rc 文件(删除长注释....)
- 正在添加安装项目
首先,如果你想从git源代码管理中解锁资源文件,你可以修改解决方案文件夹中的.gitignore
文件,添加任何要从源代码管理中排除的文件。该文件保存将从 git 中排除的文件。或者只是 运行 git 命令:
git reset -- <file>
git rm --cached <file>
请查看有关 ignoring file changes with Git 的文档。
还有,你也可以删除.git
个隐藏文件夹。
I am getting "fatal error RC1022: expected '#endif'" when i just
change control name
您应该注意以下信息: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
或以#endif
结尾的#ifndef
。
我不小心导致所有项目文件在 VS 2013 中被锁定。 现在,当我编辑资源文件并重建时,我得到
error MSB6006 exited with code 1
文件被锁定的可能原因:
- 手动编辑 .rc 文件(删除长注释....)
- 正在添加安装项目
首先,如果你想从git源代码管理中解锁资源文件,你可以修改解决方案文件夹中的.gitignore
文件,添加任何要从源代码管理中排除的文件。该文件保存将从 git 中排除的文件。或者只是 运行 git 命令:
git reset -- <file>
git rm --cached <file>
请查看有关 ignoring file changes with Git 的文档。
还有,你也可以删除.git
个隐藏文件夹。
I am getting "fatal error RC1022: expected '#endif'" when i just change control name
您应该注意以下信息: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
或以#endif
结尾的#ifndef
。