简体   繁体   中英

How to Unlock “Locked” files in Visual Studio 2013?

I accidentally ended up with all project files being locked in VS 2013. Now, when I edit resource file and rebuild I get

error MSB6006 exited with code 1

在此处输入图片说明

Potential reasons why the files are locked:

  1. editing .rc file manually (removing long comments ....)
  2. adding Setup project

First , if you want to unlock the resource files from git source control, you could modify .gitignore file in the solution folder, add any files you want to exclude from source control. The file saves the files which will exclude from git. Or just run git command:

git reset -- <file>
git rm --cached <file>

Please check this document about ignoring file changes with Git .

Also , you can also delete .git hidden folder。

I am getting "fatal error RC1022: expected '#endif'" when i just change control name

You should note this info: 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.

Please note that you should use #if , #ifdef , or #ifndef which ends with #endif .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM