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
42
votes
4 answers

Why use NuGet over installing libraries directly on my machine

I don't get it - can someone please explain to me why I should use NuGet rather than installing a bunch of libraries via a setup.exe or MSI? What advantage is there? For example is it better to install Entity Framework 4.3 via NuGet rather than…
Calanus
  • 25,619
  • 25
  • 85
  • 120
42
votes
6 answers

.NET 6.0 not showing in Visual Studio 2022 (General Release)

I have installed .NET 6.0 SDK and Visual Studio 2022. However, Visual Studio 2022 does not offer the ability to select .NET 6.0. I know I can edit the project file with the target framework so please don't suggest that. This question is specifically…
Oliver
  • 35,233
  • 12
  • 66
  • 78
42
votes
2 answers

What's the proper way to comment a constructor in a generic class?

What's the proper way to comment this? /// /// Initializes a new instance of the class. /// /// The unit of work. public Repository(IUnitOfWork unitOfWork) { …
mservidio
  • 12,817
  • 9
  • 58
  • 84
42
votes
3 answers

Xamarin.Messaging.Broker wants firewall access

After installing VS2019 16.5.1 and 16.5.2 I receive a message that Windows Defender has locked some features of Xamarin.Messaging.Broker and asking if I should allow it. Normally I would as it seems to be part of Visual Studio but this executable is…
John Mackerras
  • 525
  • 1
  • 4
  • 10
42
votes
3 answers

Visual Studio Code : Sort functions by name?

Is it possible to sort functions by name in Visual Studio Code ? I mean, using a keyboard shortcut or even an extension. Precision: I'm spaeking about sorting the functions in the panel code editor.
42
votes
2 answers

redefinition errors in WinSock2.h

Including winsock2.h, in a file of a project. Getting many errors in - WinSock2.h(109) : error C2011: 'fd_set' : 'struct' type redefinition with a corresponding - WinSock.h(54) : see declaration of 'fd_set' I don't see winsock.h included in any…
T.T.T.
  • 33,367
  • 47
  • 130
  • 168
42
votes
2 answers

Nuget package "Not available in this source"... but VS still knows about it?

I've come across a screen that I've never seen before, while playing with Npgsql.EntityFrameworkCore.PostgreSQL source code, looking for a bug that's blocking my app from running properly. As things stand right now, I can't even build the source…
Jeremy Holovacs
  • 22,480
  • 33
  • 117
  • 254
42
votes
3 answers

Does WPF Work with C++?

My understanding is that Microsoft Visual Studio was rewritten to use WPF. I'm still not clear on why, but acknowledge my knowledge about WPF is very limited. My question is if anyone knows how much support WPF has for C++, and if Visual Studio is…
Jonathan Wood
  • 65,341
  • 71
  • 269
  • 466
42
votes
6 answers

Progressive Web App - Service Worker not serving start_URL

Was playing around with the progressive web app. I've trying to make web app install banner working but I keep receiving service worker does not successfully serve the manifest's start_url after I debugging using Lighthouse (Picture below).…
azriebakri
  • 1,131
  • 2
  • 11
  • 36
42
votes
3 answers

Can the DebuggerDisplay attribute be applied to types one doesn't own?

I like the DebuggerDisplay attribute. I like it so much, that I want to use it on types that I don't have the source code for. Is this possible?
Steve Dunn
  • 21,044
  • 11
  • 62
  • 87
42
votes
21 answers

How to change the braces/parenthesis colors in Visual Studio

I am not talking about the highlight colors but the actual colors. I got a color scheme with light background color but the braces/parentheses are barely visible. Anyone knows how to change this? Btw this is for C# because C++ seems to color…
Joan Venge
  • 315,713
  • 212
  • 479
  • 689
42
votes
6 answers

How to preserve format while pasting in Visual Studio 2015?

I have a switch case in a section of my function, and I need to reorder some of the cases for better code reading. So the code at the moment looks something like this: switch(parameter) { case "foo" : {DoSomething; DoSomething; DoSomething;…
agenthost
  • 748
  • 2
  • 9
  • 24
42
votes
13 answers

Editing aspx/ascx files randomly disabled in Visual Studio 2010?

I'll be debugging a site in Visual Studio 2010 and editing an *.aspx or *.ascx file, and without warning, it will lock up so that I can't edit it. There's no message or anything, I just can't type or make any changes. The only way to start editing…
Herb Caudill
  • 50,043
  • 39
  • 124
  • 173
42
votes
5 answers

Reference Microsoft.VisualStudio.QualityTools.UnitTestFramework for CI build

I have created a C# test project in VS2015 RC. it builds locally but when i attempt to build on our CI build server (TeamCity) it fails with errors: UnitTest1.cs(2,17): error CS0234: The type or namespace name 'VisualStudio' does not exist in the…
jamiet
  • 10,501
  • 14
  • 80
  • 159
42
votes
19 answers

Eclipse vs. Visual Studio: What are the features in Eclipse that are not present in Visual Studio and vice versa?

I keep hearing Eclipse is better than or way ahead of Visual Studio but when I installed Eclipse I felt it is very clunky and hard to use interface. So I want to know what is so great about Eclipse and if there are others who agree with me. I also…
Srikar Doddi
  • 15,499
  • 15
  • 65
  • 106