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

Visual Studio 2012: How to perform a conditional post-build event

How do I perform a conditional post-build event? Specifically, I would like to only execute the post-build event command line for the debug release but not for the release build. I did not see any way in a project's properties' Build Event page.
10
votes
3 answers

Visual studio Copy Local on reference doesnt work

I have two Unmanaged C++ DLLs in a solution, called A and B, and A has a reference to B. I want to copy B.dll to the application directory for A. When I click "Copy Local" on the reference in A's "Framework and References" tab in its project…
Jason Fry
  • 1,204
  • 12
  • 24
10
votes
3 answers

No xaml color formatting in visual studio 2012

This is the second time i have installed VS 2012 and the first time the color formatting for xaml was working but not anymore. If i can change some element in the tools -> fonts and colors but i cant get the normal default scheme back with the blue…
user1752532
10
votes
1 answer

How to mock/isolate internal classes in VS 2012 with Fakes Framework shims?

So, the issue is that I have a bunch of internal classes in my assembly that are used by the class I want to test. Since accessors have been removed from VS2012, I'm fine with using [InternalsVisibleTo] and that works great... except when I try to…
Finster
  • 499
  • 1
  • 7
  • 25
10
votes
2 answers

Visual Studio 2012 alongside 2010 - kernel32.lib, windows.h

I just installed Visual Studio 2012 alongside Visual Studio 2010. The problem is that I can't manage to convert simple projects from 2010 to 2012 - they fail to link to files such as kernel32.lib or include files such as windows.h. My system also…
foxx1337
  • 1,859
  • 3
  • 19
  • 23
10
votes
10 answers

Visual Studio 2012 csc.exe Error. Executable not valid for OS

I am getting the following error when trying to compile and test any type of project in Visual Studio 2012 Professional. Error 1 The specified task executable "Csc.exe" could not be run. The specified executable is not a valid application for…
Greg Froning
  • 213
  • 1
  • 4
  • 16
10
votes
1 answer

std::function not compiling in VS2012

I am trying to compile the following code taken from here but I am getting a compile error. Does anyone have any ideas what might be wrong? The code #include #include struct Foo { Foo(int num) : num_(num) {} void…
Barış Uşaklı
  • 13,440
  • 7
  • 40
  • 66
10
votes
1 answer

Visual Studio 2012 not publishing project

I have a Visual Studio 2012 web project that I am publishing to a Windows Server 2008 R2 server. I was having issues with the updates I was making locally not working on the remote server. When I checked the "Delete all existing files prior to…
Dave Mackey
  • 4,306
  • 21
  • 78
  • 136
10
votes
2 answers

Visual Studio 2012 Crashes after installing IE9 (Faulting Module ntdll.dll)

Okay.... I've been running Visual Studio RTM since it's release on my work computer. Last Friday I installed/Updated IE to version 9 to test a JavaScript issue. After installing IE9 and rebooting my computer Visual Studio 2012 no longer works, it…
Robin
  • 1,074
  • 8
  • 29
10
votes
1 answer

Output content file to specific folder while building project

I have VS 2012 project with structure like this: Project Folder1 file.xml schema.xsd code.cs Folder2 code1.cs code2.cs I set Copy to output directory property of file.xml and schema.xsd to Copy always and want to…
tsionyx
  • 1,629
  • 1
  • 17
  • 34
10
votes
4 answers

Missing assemblies in default project templates

I have installed VS 2012 Premium using the full install option. When I create a new asp.net project, be it forms, or any one of the mvc versions and then try to build the project to run it without any modifications I get the error "missing assembly…
MrThirsty
  • 343
  • 2
  • 12
10
votes
1 answer

Develop VSIX for VS2010 under VS2012?

Is there a way to develop a VSIX extension under Visual Studio 2012, which then could be installed in Visual Studio 2010? I've tried to set version range for Microsoft.VisualStudio.Pro target to [10.0,11.0], but when I launch a compiled VSIX, it…
10
votes
5 answers

Visual Studio 2010 cannot open a 2010 solution that Visual Studio 2012 modified

Basically, I had a project that was written with Visual Studio 2010 Express in C#, I then tried out using Visual Studio 2012 Express with that file, and now VS2010 says: "The selected file is a solution file, but was created by a newer version of…
Xantham
  • 1,829
  • 7
  • 24
  • 42
10
votes
2 answers

Can't Run Tests in VS2012

Has anybody run into the following error when trying to run unit tests in Visual Studio Express 2012 For Web?: MSTestAdapter could not discover the test because the classic mode helper is not available. If a TestSettings file has been selected,…
David
  • 208,112
  • 36
  • 198
  • 279
10
votes
1 answer

Get Visual Studio to highlight Razor syntax with a custom host factoryType

Here's the scenario, I've extended MvcWebRazorHostFactory so I can do a little bit of extra view magic at build time. The exact magic doesn't matter. The registration in my ~\Views\Web.config looks like so:
Kevin Montrose
  • 22,191
  • 9
  • 88
  • 137
1 2 3
99
100