views:

57

answers:

1

The title pretty much sums up my question..

Thanks in advance.

A: 

You have to set the solution (and all other files that you want to protect) to read-only on the operating system level. So for windows select the files, then right click, select properties and then check the read-only check box. The read-only annotation shows up when you are reloading the project. To make the solution/project writeable just uncheck the read-only checkbox.

Note: When setting the solution to read-only, you cannot add any new projects to it, however, the projects remain writeable.

Obalix
Also note that users with sufficient rights can just remove the read-only flag.
Eric J.
I see. Do you know if there's a way to make the code inside my solution read-only?
byte1918
You cannot make protect the code from inside VS as it is there for editing the files. To protect your code you have to set the .cs files to read-only.
Obalix