Questions tagged [visual-studio]

Use this tag if you have a specific question about Visual Studio features and functionality. DO NOT use this tag on questions regarding code which merely happened to be written in Visual Studio. Consider tagging the exact technology area your question links to and also tagging a more specific version of Visual Studio. Please mention your exact VS version, edition, and update level in your question. DO NOT use this tag on questions regarding VS Code.

Visual Studio is an integrated development environment (IDE) offered by Microsoft used to develop computer programs for Microsoft Windows, as well as web sites, web applications and web services.

Microsoft Visual Studio History

Prior to Visual Studio Version 4.0, there were Visual Basic 3, Visual C++, Visual FoxPro and Visual SourceSafe as separate products.

Below is the list of the products along with their release date. Note: the actual version numbers for the products are sometimes confused with the last two digits of the 'year' field of the name; these version numbers are shown as "V-nn.x.y.z," where the given "nn" value is the major version number, and 'x', 'y' and 'z' would be the minor version, build and revision numbers, respectively.

The current stable release is Visual Studio 2022 - for questions regarding this specific version use .

Visual Studio Editions

  • Professional includes end-to-end solution to meet demanding quality and scale needs of teams of all sizes
  • Enterprise featuring professional developer tools, services, and subscription benefits for small teams
  • Community is a free, fully-featured IDE for students, open-source and individual developers

See the products page on the Microsoft site for the full list of Visual Studio products and download links. Microsoft also publishes a comparison table where major differences between editions can be seen at a glance to help you decide which edition fits your needs the most.

Using This Tag

You should ask questions about Visual Studio here on Stack Overflow, but if you have bugs to report, report them at Developer community instead.

Consider tagging the exact technology area your question links to and also tagging a more specific version of Visual Studio (see above). Please mention your exact Visual Studio version, edition, and update level in your question.

Do not use this tag on questions just because the code was written in Visual Studio. For example, a question about parsing a date/time string in .NET with C# should not ordinarily be tagged .

More Information

Visual Studio Extensions (.vsix)

You can read about Visual Studio extensions here and see the available Extensions for the Visual Studio family of products.

Developer Community

Developer Community is a website where you can read about the Visual Studio release history. Also see all the reported bugs and find solutions for them. You can help the Visual Studio team and vote on the the issues (which you also have) and they can prioritise the problems and ship fixes to the most demanded ones. Also you can report a problem.

113889 questions
48
votes
6 answers

Automatically stop Visual C++ 2008 build at first compile error?

I know I can compile individual source files, but sometimes -- say, when editing a header file used by many .cpp files -- multiple source files need to be recompiled. That's what Build is for. Default behavior of the "Build" command in VC9 (Visual…
jwfearn
  • 28,781
  • 28
  • 95
  • 122
48
votes
2 answers

Is this a compiler optimisation bug, or an undefined behaviour?

We have an annoying bug I can't explain around this piece of code: unsigned char bitmap[K_BITMAP_SIZE] = {0} ; SetBit(bitmap, K_18); // Sets the bit #18 to 1 for(size_t i = 0; i < K_END; ++i) { if(TestBit(bitmap, i)) // true for 18 { …
48
votes
6 answers

How to Set Path Environment Variable using CMake and Visual Studio to Run Test

I am using CMake to generate Visual Studio project files. I want to run the test executable after setting the PATH environment variable so that it is able to load the required dll. I tried as per the discussion at…
amit kumar
  • 20,438
  • 23
  • 90
  • 126
47
votes
4 answers

Best way to add developer documentation to your Visual Studio projects

Basically, the question is: Where (and in which format) should I store textual developer documentation associated with my Visual Studio projects? To elaborate: XML comments are great, but they don't cover all use cases. Sometimes, you'd like to…
Heinzi
  • 167,459
  • 57
  • 363
  • 519
47
votes
1 answer

Define TRACE Constant in .NET / Visual Studio

In Visual Studio 2010, if you go to a project's properties and go to the Build Tab, there is a checkbox for "Define TRACE Constant." Which is the equivalent of doing a #define TRACE. All of the methods of System.Diagnostics.Trace have a…
aquinas
  • 23,318
  • 5
  • 58
  • 81
47
votes
5 answers

What are .sln and .vcproj files, and what do they contain?

I'm new in the world of Visual Studio. Can somebody please explain what these two files contain? I know that one of them contains info about project, but what about the other one?
geek
  • 2,677
  • 4
  • 23
  • 21
47
votes
3 answers

Where does NuGet put the DLL file?

I am trying to work around NuGet's source control limitations. To that end I need to know a bit more about how NuGet works. Let’s take a simple example. Say I have a project and I add AutoMapper to it. When I add it, where is the DLL file supposed…
Vaccano
  • 78,325
  • 149
  • 468
  • 850
47
votes
6 answers

How to use the new Windows Terminal as Visual Studio debugging console

How can I set the new Windows Terminal application to be used as debugging console in Visual Studio 2019? By default it launches cmd.exe when I debug.
Luka
  • 4,075
  • 3
  • 35
  • 61
47
votes
14 answers

Visual Studio - Automatically refresh class view when changing class

I come from a Java background and have spent many years using Eclipse. One feature that I miss when using Visual Studio (2008) is that the class view does not automatically refresh when I change class. In Eclipse it has a (class) 'Outline' window…
WillH
  • 2,086
  • 6
  • 23
  • 40
47
votes
3 answers

How to configure MSBuild to do some tasks only on release builds?

I just learned about how to include FxCop on a build. But it's slow and I want it to be done just only on release builds. Is there any way to configure that?
Jader Dias
  • 88,211
  • 155
  • 421
  • 625
47
votes
6 answers

How to invoke the "Organize imports" TypeScript feature in Visual Studio?

There is a new feature in TypeScript 2.8 that lets you "Organize imports": https://devblogs.microsoft.com/typescript/announcing-typescript-2-8-2/#organize-imports Basically it does the following: remove unnecessary import statements sort the import…
Krisztián Balla
  • 19,223
  • 13
  • 68
  • 84
47
votes
2 answers

how to make git push origin --force ; in Visual Studio Team Explorer

I recently had an issue where I had to disregard my last commit, so on the command line I did following: git push origin --force this works fine, however I normally make my push/pulls from inside Visual Studio Team Explorer, however I could not…
serup
  • 3,676
  • 2
  • 30
  • 34
47
votes
26 answers

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

In Silverlight 4 app; what does this error mean?: "Error HRESULT E_FAIL has been returned from a call to a COM component." It's a very generic error. The VS debugger doesn't point to the exact location of the error when debugging.
pencilslate
  • 12,958
  • 18
  • 58
  • 73
47
votes
7 answers

How to play WAV audio file from Resources?

How can I play a WAV audio file in from my project's Resources? My project is a Windows Forms application in C#.
Genius
  • 1,084
  • 2
  • 10
  • 20
47
votes
5 answers

How to generate an .apk file from Xamarin.Forms Project using Visual Studio?

I have a Xamarin.Forms project that I'd like to distribute as an apk; however I cannot find how to generate a .apk file in Visual Studio - how would I do this?
Wassim
  • 501
  • 1
  • 4
  • 5