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
1287
votes
22 answers

.gitignore for Visual Studio Projects and Solutions

Which files should I include in .gitignore when using Git in conjunction with Visual Studio Solutions (.sln) and Projects?
Martin Suchanek
  • 3,006
  • 6
  • 31
  • 31
584
votes
12 answers

How to disable all caps menu titles in Visual Studio

I assume the title is self explanatory. Just want to change the look of the Visual Studio 2012 not to show menu title in all capital letters.
Amir
  • 9,577
  • 11
  • 41
  • 58
568
votes
54 answers

Visual Studio debugging/loading very slow

I'm at wit's end. Visual Studio is typically painfully slow to debug or just plain load ("start without debugging") my ASP.NET MVC sites. Not always: at first, the projects will load nice and fast, but once they load slow, they'll always load slowly…
550
votes
28 answers

how to reset in Angular

I am developing a metro app with VS2012 and Javascript I want to reset the contents of my file input: How should I do that?
Jesus
  • 8,456
  • 4
  • 28
  • 40
538
votes
42 answers

ReSharper "Cannot resolve symbol" even when project builds

My Tools: Visual Studio 2012 Ultimate + Update 1 ReSharper v7.1.25.234 My Solution Build Status: Build Successfully But when I install ReSharper and ReSharper code analysis is enable, many keywords of my code are red with this error: "Cannot resolve…
Ramin Bateni
  • 16,499
  • 9
  • 69
  • 98
537
votes
25 answers

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

I've installed Visual Studio 2012 Release Preview, and it appears to be fine, but now when I try to use Visual Studio 2010 to compile C++ projects, I get the following error message: LINK : fatal error LNK1123: failure during conversion to COFF:…
Orion Edwards
  • 121,657
  • 64
  • 239
  • 328
517
votes
12 answers

Is there a format code shortcut for Visual Studio?

In Eclipse there is a shortcut, Ctrl+Shift+F, that re-indents code and fixes comments and blank lines. Is there an equivalent for Visual Studio 2010?
502
votes
9 answers

VS 2012: Scroll Solution Explorer to current file

VS2010 had the feature that viewing a file would automatically cause Solution Explorer to scroll to that file. With VS2012, viewing different files from within the IDE no longer scrolls and select the file in Solution Explorer automatically. Is it…
Sarah Weinberger
  • 15,041
  • 25
  • 83
  • 130
468
votes
5 answers

Disable file preview in VS2012

In VS2012 when you select a file in solution explorer it automatically opens file in a special "preview" tab. Maybe my computer is not fast enough, but this preview is too slow for my taste. How do I disable this feature?
THX-1138
  • 21,316
  • 26
  • 96
  • 160
425
votes
69 answers

Visual Studio "Could not copy" .... during build

I keep getting this error during the build of my VS2012 C# project Error 41 Could not copy "obj\Debug\WeinGartner.WeinCad.exe" to "bin\Debug\WeinGartner.WeinCad.exe". Exceeded retry count of 10. Failed. Error 42 Unable to copy file…
bradgonesurfing
  • 30,949
  • 17
  • 114
  • 217
393
votes
10 answers

How can I switch themes in Visual Studio 2012?

The Visual Studio 2012 offers two themes, Light and Dark. I want to switch the theme to Dark, but I'm not able to find any menus or options to do that. I found out a way importing settings from: Microsoft Visual Studio 11.0\Common7\IDE\…
Ricky
  • 10,044
  • 3
  • 26
  • 31
372
votes
9 answers

How to add Web API to an existing ASP.NET MVC 4 Web Application project?

I wish to add an ASP.NET Web API to an ASP.NET MVC 4 Web Application project, developed in Visual Studio 2012. Which steps must I perform to add a functioning Web API to the project? I'm aware that I need a controller deriving from ApiController,…
aknuds1
  • 65,625
  • 67
  • 195
  • 317
365
votes
2 answers

How do I undo "Scope to this" in Visual Studio 2012?

In the Solution Explorer, I clicked on "Scope to this" to display only a part of the solution. Now I can't find how to get back to normal view. Closing/Reopening Solution Explorer won't work; I searched every menu item, and "New Solution Explorer…
Eldritch Conundrum
  • 8,452
  • 6
  • 42
  • 50
360
votes
88 answers

Tests not running in Test Explorer

I am currently working on a solution that has currently 32 Unittests. I have been working with the resharper test runner - which works fine. All tests are running, all tests are showing the right test outcome. However, the tests are not running when…
ElGauchooo
  • 4,256
  • 2
  • 13
  • 16
331
votes
5 answers

How do you reference a capture group with regex find and replace in Visual Studio 2012, 2013, 2015, and VS Code

I realize there are a ton of questions about this, but none that I found specifically referenced which VS version they referred to. With that important information lacking, I still was unable to successfully use the answers I found. The most common…
1
2 3
99 100