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
145
votes
16 answers

What is going wrong when Visual Studio tells me "xcopy exited with code 4"

I'm not very familiar with post-build events, so I'm a little confused as to what's going wrong with my program. When compiling in visual studio 2010, I get the following: The command "xcopy C:\Users\Me\Path\Foo.bar\Library\dsoframer.ocx…
Raven Dreamer
  • 6,940
  • 13
  • 64
  • 101
145
votes
5 answers

Can anybody find the TFS "Unshelve" option in Visual Studio 2012?

I can find the shelve button okay, and had shelved changes earlier today, but now I can't seem to find a way to unshelve them! This has left me in quite a predicament! If this button is in fact missing in the Visual Studio 11 Beta, perhaps there is…
GONeale
  • 26,302
  • 21
  • 106
  • 149
142
votes
12 answers

How to add a vertical Separator?

I want to add a vertical Separator to a Grid, but i can only find the horizontal. Isn't there a Property, where you can enter if the line of the separator should be horizontal or vertical? I searched a lot, but didn't find a short and easy solution…
Martin Weber
  • 3,892
  • 4
  • 20
  • 23
142
votes
12 answers

EF5: Cannot attach the file ‘{0}' as database '{1}'

I'm encountering the exact issue as described here (read section "Cannot Attach to Deleted MDF File"), but the solution to the problem is not told there... In short the issue is that after deleting the .mdf file, the following exception is thrown…
141
votes
4 answers

TFS Code Reviews - Show updated files in response to comments

We are beginning to use the code review functionality built-in to VS 2012 and VS 2013 preview. Requesting the review and adding comments seem pretty straightforward. If someone adds comments requesting the code to be changed, then how does the…
John
  • 1,786
  • 3
  • 17
  • 18
140
votes
6 answers

How to actually search all files in Visual Studio

I am using Visual Studio. Say for instance I have a static public method named FooBar() in class Utils. Let's also say that I use this method in a lot of .aspx files. Let's say I change the method signature of FooBar() to FooBar(string), and…
Mike Godin
  • 3,727
  • 3
  • 27
  • 29
139
votes
14 answers

How can I change IIS Express port for a site

I want to change the port number on which my website runs while debugging from Visual Studio. I am using Visual Studio 2012, and I am using ASP.NET MVC 4 for my projects I want to change the port. Random port or fixed anyone will work just want to…
Mohit
  • 2,189
  • 4
  • 22
  • 40
139
votes
8 answers

What key shortcuts are to comment and uncomment code?

There were Ctrl+E+C (comment) and Ctrl+E+U (uncomment) in older versions, or Ctrl+K+C and Ctrl+K+U. But in VS 2012, I can't see key shortcuts: How to enable those shortcuts?
Dmytro
  • 16,668
  • 27
  • 80
  • 130
137
votes
22 answers

"C:\Microsoft.Cpp.Default.props" was not found

I have a project created in Visual Studio, 2013. The project file has the following properties: ToolsVersion="12.0", PlatformToolset = v120. I have Visual Studio 2013 and Microsoft Build Tools 2015 installed. This project gets successfully built…
Serg
  • 1,381
  • 2
  • 8
  • 5
137
votes
33 answers

Error HRESULT E_FAIL has been returned from a call to a COM component VS2012 when debugging

I have a problem debugging a project migrated from Visual Studio 2010 to 2012. Every time I go to debug it I get the error message: "Error HRESULT E_FAIL has been returned from a call to a COM component". Compiling and running the application in…
Matt
  • 2,691
  • 3
  • 22
  • 36
135
votes
9 answers

How to turn off brackets/quotes auto-completion in Visual Studio

As it states in the title: how to I turn off brackets/quotes/curly braces autocompletion in MSVS? I'm interested in C# and XAML mostly but other text editors would be nice too. EDIT: Currently I'm using MSVS 11 with these…
SOReader
  • 5,697
  • 5
  • 31
  • 53
134
votes
7 answers

How to quickly open a file in Visual Studio 2012

I am trying VS2012 RC but find one good feature no available any more (or if it still is, please let me know): in VS2010, if I know a file name, for example, MyFile.cs, I can quickly open it by typing Ctrl+D (or whatever shortcut assigned) to go to…
tete
  • 4,859
  • 11
  • 50
  • 81
133
votes
21 answers

Visual Studio 2012 - Intellisense sometimes disappearing / broken

My colleagues and I are using VS2012 for some weeks now. Sometimes after working several hours the intellisense is broken. After closing all open tabs it works again. Are there more people out there having the same problem? It can't be an extension…
Mohnkuchenzentrale
  • 5,745
  • 4
  • 30
  • 41
132
votes
6 answers

What does Visual Studio do with a deleted pointer and why?

A C++ book I have been reading states that when a pointer is deleted using the delete operator the memory at the location it is pointing to is "freed" and it can be overwritten. It also states that the pointer will continue to point to the same…
131
votes
7 answers

Why does this C++ snippet compile (non-void function does not return a value)

I found this in one of my libraries this morning: static tvec4 Min(const tvec4& a, const tvec4& b, tvec4& out) { tvec3::Min(a,b,out); out.w = min(a.w,b.w); } I'd expect a compiler error because this method doesn't return anything, and the…
3Dave
  • 28,657
  • 18
  • 88
  • 151