Security in Visual Studio
This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, use the version selector at the top left. We recommend upgrading to Visual Studio 2019. Download it here
You should consider security in all aspects of your application development, from design to deployment. Start by running Visual Studio as securely as possible. See User Permissions.
To help you effectively develop secure applications, you should have a fundamental understanding of security concepts and the security features of the platforms for which you develop. You should also understand secure coding techniques.
Security Describes .NET Framework code access security, role-based security, security policy, and security tools.
Coding for Security
Most coding errors that result in security vulnerabilities occur because developers make incorrect assumptions when working with user input or because they don't fully understand the platform for which they're developing.
Secure Coding Guidelines Provides guidelines for classifying your components to address security issues.
Security Best Practices Discusses buffer overruns and the complete picture of the Microsoft Visual C++ security checks feature provided by the /GS compile-time flag.