How to have an auto incrementing version number (Visual Studio)? [duplicate]

If you add an AssemblyInfo class to your project and amend the AssemblyVersion attribute to end with an asterisk, for example: [assembly: AssemblyVersion(“2.10.*”)] Visual studio will increment the final number for you according to these rules (thanks galets, I had that completely wrong!) To reference this version in code, so you can display it to … Read more

Error ‘LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt’ after installing Visual Studio 2012 Release Preview

This MSDN thread explains how to fix it. To summarize: Either disable incremental linking, by going to Project Properties -> Configuration Properties -> Linker (General) -> Enable Incremental Linking -> “No (/INCREMENTAL:NO)” or install VS2010 SP1. Edits (@CraigRinger): Note that installing VS 2010 SP1 will remove the 64-bit compilers. You need to install the VS … Read more

What is “stdafx.h” used for in Visual Studio?

All C++ compilers have one serious performance problem to deal with. Compiling C++ code is a long, slow process. Compiling headers included on top of C++ files is a very long, slow process. Compiling the huge header structures that form part of Windows API and other large API libraries is a very, very long, slow … Read more

How do I run Visual Studio as an administrator by default?

Copied and pasted from here, the Using Advanced Properties section. This will allow you to always have the program run as an administrator when you open it. Right click on the shortcut of the program, then click on Properties. Click on the Shortcut tab for a program shortcut, then click on the Advanced button. Check … Read more

Visual Studio debugging/loading very slow

Here is how I solved the “slow symbol loading” problem in Visual Studio 2012: Go to Tools -> Options -> Debugging -> General CHECK the checkmark next to “Enable Just My Code”. Go to Tools -> Options -> Debugging -> Symbols Click on the “…” button and create/select a new folder somewhere on your local … Read more

App.Config Transformation for projects which are not Web Projects in Visual Studio?

I tried several solutions and here is the simplest I personally found. Dan pointed out in the comments that the original post belongs to Oleg Sych—thanks, Oleg! Here are the instructions: 1. Add an XML file for each configuration to the project. Typically you will have Debug and Release configurations so name your files App.Debug.config … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)