Click here to Skip to main content
15,887,304 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is there any way to secure the code at visual studio ie. at my source code itself with password that others can't view even they get the source code file.
Posted

Using Visual Studio, no. The best way is to keep the source code in a safe place. Depending on the situation this could mean places like:
- safe location in the network protected by proper folder privileges
- external mass media (hard drive, usb) which isn't accessible to others

And if you need, you can password protect the files for example using a zip. When working with the files uncompress them to proper place, make the modifications and update the zip file (or create a new one).

However, if you distribute the application, remember that a managed application can be translated back to source with several tools. One way to make the translation hard is to use obfuscation[^]. In .Net one tool you can use is Dotfuscator[^]
 
Share this answer
 
It is not possible with Visual studio. For securing your code you can use VSS or SVN and make it protected with userID and password.
In this way, only authorized user of VSS or SVN can access the code.
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900