/mscversion

Pure C# alternative to the _MSC_VER macro in C++which checks if the Microsoft Visual C++ runtime is locally installed.

Primary LanguageC#MIT LicenseMIT

MscVersion

Helps you check if the Microsoft Visual C++ Runtime is installed. A C# alternative to the _MSC_VER macro in C++

NuGet Package

Detected Versions

The MscVersion library detects the following versions of the Microsoft Visual C++ Runtime.

  • Visual Studio 2005
  • Visual Studio 2008
  • Visual Studio 2010
  • Visual Studio 2012
  • Visual Studio 2013
  • Visual Studio 2015
  • Visual Studio 2017
  • Visual Studio 2019
  • Visual Studio 2022

Direct Links to VC++ Runtime Installers

Visual Studio 2015

VC++ Runtime Installer Behaviour

  • When trying to install an earlier version of VC++ than is already installed, the installer will fail with the error: (0x80070666) Another version of this product is already installed.
  • When trying to install a version of VC++ newer than is already installed, the installer will upgrade the current version (matching the installers processor architecture, replacing the older version).
  • When trying to install a version of VC++ which matches an already present version, the installer will offer the user a repair option.