Questions tagged [visual-studio-2012]

Visual Studio 2012 is a version of Microsoft's Visual Studio. Do not use this tag unless you have a specific question about Visual Studio -- not just a coding issue.

Visual Studio 2012 is the version that follows in the Visual Studio product line, and was released 2012-Aug-15. During the development stage, it was referred to as Visual Studio 11 in public communications and beta builds. A newer version of known as Visual Studio 2013 was released in October of 2013.

It comes together with version 4.5 of the .NET Framework and is available in five no-free versions:

  • Ultimate with MSDN
  • Premium with MSDN
  • Test Professional with MSDN
  • Professional with MSDN
  • Professional

What's new in Visual Studio 2012

  • A new look and feel
  • Ready for Windows 8
  • Web development upgraded
  • Cloud capable
  • Flexible agile processes, solid ALM (application lifecycle management)
  • Support for .NET 4.5
  • Windows 8 application development
  • Windows Phone app development

More information:

22960 questions
10
votes
1 answer

Node-gyp Include and Library Directories with Boost

I'm attempting to build a Node C++ addon on my Windows 7 machine that uses some classes from the Boost libraries. However, after running node-gyp configure successfully, I'm continually assaulted by missing header files when I run node-gyp…
Aetylus
  • 587
  • 3
  • 6
  • 20
10
votes
1 answer

How to force visual studio build fail after unit tests failed

Currently, I am using Visual Studio 2012 and automate unit test execution after each build. However, what I would to do is fail the build if a single unit test fails . The following steps are what I want to do Build the solution When (1) succeed,…
Dan Hunex
  • 5,172
  • 2
  • 27
  • 38
10
votes
3 answers

Path of least resistance when unit testing C++ code in an exe, in Visual Studio 2012

I'm in need of some sage advice here. Long story short, I'm rebuilding a - for me - relatively complex app comprised of about 7000 lines of code. I ran into a number of issues when I created the first iteration of my application and it seems to me…
Gazoo
  • 215
  • 4
  • 14
10
votes
1 answer

Setting memory breakpoint in Visual Studio 2012

I need to set breakpoint that watches a specific address in memory (e.g. 0x0483d7cc) that is hit when the content changes. I am using Visual Studio 2012 and C++. How can I do that?
10
votes
2 answers

How to auto format code indentations in VS2012?

How to auto format code in VS2012 to save time typing and deleting spaces and tabs?
mitaka
  • 2,159
  • 1
  • 30
  • 30
10
votes
4 answers

How to remove ApexSQL menus from Visual Studio?

I installed the free version of ApexSQL which is awesome in SSMS, but I really don't want all those menus in Visual Studio. I went to add-in manager and unchecked them, but the Startup column is checked and disabled so every time I restart Visual…
10
votes
1 answer

Why won't my C# label text value update?

I have a c# program set up that is supposed to accept a quantity input if a checkbox is checked. It then multiplies the quantity by the price and updates the appropriate label with the total cost. However, when I run the program it does not update…
jrounsav
  • 517
  • 2
  • 6
  • 20
10
votes
1 answer

C++ 11 regex stack overflow / VS2012

I'm in the process of converting some older Boost regex code to C++11, and I stumbled upon an issue with one of my test cases. Here is a scenario which causes a stack overflow exception using std::regex, but worked fine with boost::regex. I have…
Tom
  • 1,977
  • 1
  • 20
  • 19
10
votes
1 answer

Why does select source for a SQL Schema Comparison cause VS2012 to crash?

For seemingly no reason, choosing SQL > Schema Compare > New Schema Comparison and then attempting to "select source" causes Visual Studio 2012 to crash. (It has been working as expected for months). Are there any possible fixes besides trying to…
Jedidja
  • 16,610
  • 17
  • 73
  • 112
10
votes
4 answers

Code coverage for async methods

When I analyse code coverage in Visual Studio 2012, any of the await lines in async methods are showing as not covered even though they are obviously executing since my tests are passing. The code coverage report says that the uncovered method is…
Jacob
  • 77,566
  • 24
  • 149
  • 228
10
votes
1 answer

Visual Studio 2012 Memory Spike and Hanging

Recently, Visual Studio 2012 has been acting up. As I'm developing ASP .NET applications I routinely tab between the browser (Chrome) and the Visual Studio IDE. Sometimes when I attempt to tab back into Visual Studio the window will not come up. …
Yuck
  • 49,664
  • 13
  • 105
  • 135
10
votes
2 answers

Different behaviour of fmod (and others) under c++11, in Visual Studio at least

I have some example code that is behaving differently under Visual C++ 2012 with the new C++11 headers than it used to under VC++ 2010. It concerns what happens when you call the std::fmod function that you get when you include cmath, and when the…
Tom Quarendon
  • 5,625
  • 5
  • 23
  • 30
10
votes
2 answers

Visual Studio 2012: How to handle code replacement over multiple lines

I often have to replace multiple lines in multiple documents. In Visual Studio 2012 there seems to be the possibility to put muliple line code in a simple one-line-input-box only. In the "embedded" search box there is also only a single-line input…
Herr_Schwabullek
  • 770
  • 10
  • 20
10
votes
2 answers

How do you configure TortoiseSVN to use Visual Studio 2012 for diffing?

I want to use the new Visual Studio diffing tool for diffing changes via TortoiseSVN. What do I type in the external tool command line box?
Luke Puplett
  • 42,091
  • 47
  • 181
  • 266
10
votes
1 answer

Format SQL Script in Visual Studio 2012

Normally we can format code or markup in visual studio with Ctrl + K + D shortkeys. How we can format SQL script code like stored procedures or views or other things using shortkeys? Note: I am using SSDT with VS2012, where I can edit scripts of a…
Nexus23
  • 6,195
  • 9
  • 50
  • 67