views:

124

answers:

3

I must have done something wrong. I have a C# project in Visual Studio 2008. All of a sudden I see a lock on my classes and when I hover the class names on the top tab I see the class name as : C:\Myprojects\Oder.cs[Read Only] !

Has something weird like that happened to you before ?

Thanks

+2  A: 

A couple of possibilities spring to mind:

Have you added the project to source control?

Have you marked the project folder (and all it's sub folders) as read only?

Of course, someone else may have done either of these things if they have had access to your machine.

ChrisF
A: 

IDE-integrated source control?

tomfanning
Just as likely to be non-IDE-integrated source control.
Charles
Was going off the padlock symbols - thinking they might have been put there by an IDE plugin. Clearly not, however...
tomfanning
A: 

Sounds like your source files are or have been under source control. Many source control systems will set files to read-only when they haven't been checked out for editing.

Total Commander makes it really easy to change file attributes recursively, but most likely Windows can also do this :)

Morten Mertner