How to change Visual Studio 2012,2013 or 2015 License Key?

I had the same problem and wanted to change the product key to another. Unfortunate it’s not as easy as it was on VS2010. The following steps work: Remove the registry key containing the license information: HKEY_CLASSES_ROOT\Licenses\77550D6B-6352-4E77-9DA3-537419DF564B If you can’t find the key, use sysinternals ProcessMonitor to check the registry access of VS2012 to locate … Read more

generates same number in Linux, but not in Windows

Here’s what’s going on: default_random_engine in libstdc++ (GCC’s standard library) is minstd_rand0, which is a simple linear congruential engine: typedef linear_congruential_engine<uint_fast32_t, 16807, 0, 2147483647> minstd_rand0; The way this engine generates random numbers is xi+1 = (16807xi + 0) mod 2147483647. Therefore, if the seeds are different by 1, then most of the time the first … Read more

Why does intellisense and code suggestion stop working when Visual Studio is open?

I should note that I haven’t had the issue since upgrading my RAM. I can’t confirm if it’s related but the problem was prevalent when I had 2-4GB RAM. No problems since going to 8 and 16GB. If only one file/window appears to be affected, close and reopen that file. If that doesn’t work, try … Read more

Visual Studio 2013 – No Visual Basic/Visual C# Web Templates Installed

I think that “Re-install Visual Studio from scratch” is not a solution. I have faced with the described problem and found much faster way to fix it: First of all, try to repair Visual Studio installation (in “Control Panel\Programs\Programs and Features” find your Visual Studio, right-click and select “Repair”). Reboot after (!). Check if template … Read more

Manifest does not force Visual Studio 2013 to restart under Admin when running application in Debug mode

You need to disable the hosting process option to get the VS restart prompt. Project + Properties, Debug tab, untick the “Enable the Visual Studio hosting process” checkbox. It can be easier to just start VS elevated right away. Right-click the shortcut, Run as Administrator. Not entirely sure if this is a bug or a … Read more

Visual Studio 2013: CL.exe exited with code -1073741515

When trying to compile a project with Platform Toolset to Windows7.1SDK… That’s not a valid selection in a “fresh” install for VS2013. Not very clear what you’ve been doing, it certainly isn’t “fresh” anymore. Do treat Regedit.exe as a loaded weapon, the registry key set that configures VS has been getting pretty doggone convoluted as … Read more

find certificate on smartcard currently on reader

I am afraid it is not possible to detect if the card containing specific X509Certificate2 object is present in the reader by using standard .NET APIs. The best thing (very hackish) I could come up with is this: public static X509Certificate2 GetDefaultCertificateStoredOnTheCard() { // Acquire public key stored in the default container of the currently … Read more

Metadata file not found – Data.Entity.Model

Based on C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Entity Framework Tools\Templates\Includes\EF6.Utility.CS.ttinclude , the code generator is looking for the missing DLLs in the following locations: <#@ assembly name=”%VS120COMNTOOLS%..\IDE\EntityFramework.dll” #> <#@ assembly name=”%VS120COMNTOOLS%..\IDE\Microsoft.Data.Entity.Design.dll” #> I discovered that the environment variable %VS120COMNTOOLS% is not compatible with the correct installation path of visual studio, so I changed it from … Read more