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
187
votes
13 answers

Restoring Nuget References?

I have solution & project in Visual Studio 2012. The project has a file packages.config in the root of the project. For the purposes of this question, lets assume I accidentally removed these libraries from the References section of my…
maxp
  • 24,209
  • 39
  • 123
  • 201
177
votes
17 answers

Multiple select in Visual Studio?

Is there a way to select multiple non-adjoining (totally separate) texts in VS? I can do it in MS Word by selecting the texts separately by holding the Ctrl button, like this: My version is 11. Edit: I'm not talking about Alt+Select block…
nawfal
  • 70,104
  • 56
  • 326
  • 368
177
votes
5 answers

IIS Express Immediately shutting-down running site after stopping web application

I'm using visual studio 2012 in the first days when I want to stop application in IDE, application was still running on IIS Express, I could browse and work with running application, but now I can't. IIS Immediately shutting-down application if I…
Saber Amani
  • 6,409
  • 12
  • 53
  • 88
167
votes
4 answers

Error in SQL script: Only one statement is allowed per batch

I have 4 sql scripts that I want to run in a DACPAC in PostDeployment, but when I try to build the VS project for 3 of them I get this error: Only one statement is allowed per batch. A batch separator, such as 'GO', might be required between…
Cosmin Ionascu
  • 7,018
  • 5
  • 25
  • 42
166
votes
31 answers

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

I have been having issues with Intellisense in Microsoft Visual Studio 2012. I will be working in a project, editing code and whatnot (after a period of time, anywhere from 5 minutes to over an hour) and all of a sudden, no more code suggestions or…
161
votes
8 answers

Where can I locate themes for VS2012

Okay, the lack of color on VS2012 is gross. Is there someplace I can get a theme pack or something for it so that it actually looks reasonable? I really liked the look of VS2010. However, the new one reminds me way too much of 1984. While we are…
NotMe
  • 87,343
  • 27
  • 171
  • 245
160
votes
5 answers

'Specified condition "$(PackageAsSingleFile)" evaluates to "" instead of a boolean?

The visual studio 2012 on my PC get the following error message when preview in the "Public Web". I need to restart VS to get rid of the error message. Invoke build failed due to exception 'Specified condition "$(PackageAsSingleFile)" evaluates to…
ca9163d9
  • 27,283
  • 64
  • 210
  • 413
158
votes
45 answers

The name does not exist in the namespace error in XAML

Using VS2012 working on a VB.NET WPF application. I have a simple MusicPlayer tutorial app I am using to learn WPF. I am converting a C# version of the tutorial to VB.NET step by step. It has 2 classes in the app that are both under the same…
Jeff Davis
  • 1,755
  • 2
  • 11
  • 14
156
votes
11 answers

How do I delete NuGet packages that are not referenced by any project in my solution?

Somehow during the upgrade to VS2012 and .NET 4.5, I've managed to get NuGet confused. There are packages that appear in the package manager (and the packages folder) that I cannot delete (I believe they are legacy ASP.NET NuGet packages that have…
Howard Pinsley
  • 11,300
  • 15
  • 49
  • 66
155
votes
3 answers

How do I open an old MVC project in Visual Studio 2012 or Visual Studio 2013?

I have an old ASP.NET MVC 2 project which I do not want to upgrade to MVC 3 or MVC 4. I am working on a new machine running Windows 8, Visual Studio 2012 and Visual Studio 2013. When I try to open the MVC 2 project in VS 2012 or VS 2013 I receive…
154
votes
9 answers

Where is the "Create Unit Tests" selection?

I have installed the new Visual Studio 2012 Ultimate. I have created a Test Project with my solution and it contains some default unit tests. However right clicking on new Methods doesn't show the "Create Unit Tests" context menu any longer. See…
Houman
  • 64,245
  • 87
  • 278
  • 460
154
votes
22 answers

Qt 5.1.1: Application failed to start because platform plugin "windows" is missing

Edit: Some people started to mark my question as a duplicate. Do not forget that many similar questions existed when I asked this one (see e.g. the list below). However, none of these answers solved my problem. After a long search I found a comment…
Anonymous
  • 4,617
  • 9
  • 48
  • 61
154
votes
28 answers

Visual Studio can't build due to rc.exe

I've searched online and couldn't find anything that resembled to my issue. I created an empty C++ project and added a main.cpp with a return and I can't get it to build. Here is the message I receive : 1>------ Build started: Project: Project1,…
Patrick.SE
  • 4,444
  • 5
  • 34
  • 44
151
votes
1 answer

Edit changeset comment after updates have been checked in to TFS

I have just switched to VS2012 and being unfamiliar with it, checked in some major changes without a comment. No other updates have been done since then and no other developers will have access to the code for another few hours. Is there a way to…
Raheel Khan
  • 14,205
  • 13
  • 80
  • 168
147
votes
28 answers

Visual Studio compiles fine, but it still shows red lines

I am using Visual Studio 2012 and it was working all fine until I started observing some funny behavior. When I open my code it shows red Underlines which we usually see when there is an error in our code. Surprisingly, the code compiles all fine. I…
Lost
  • 12,007
  • 32
  • 121
  • 193