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
41
votes
5 answers

How to initialize a list with constructor?

I have a type: public class Human { public int Id { get; set; } public string Address { get; set; } public string Name { get; set; } public List ContactNumbers { get; set; } public Human(int id) { Id…
haansi
  • 5,470
  • 21
  • 63
  • 91
41
votes
11 answers

Xap packaging failed. Object reference not set to an instance of an object

I'm getting this error message on my PC when I try to build my Windows Phone app: Xap packaging failed. Object reference not set to an instance of an object I'm using Dropbox. On my laptop, It works perfectly fine and I can debug etc...On my PC…
Subby
  • 5,370
  • 15
  • 70
  • 125
41
votes
9 answers

Visual Studio not installed; this is necessary for Windows development

My Flutter Doctor is saying: Visual Studio - develop for Windows X Visual Studio not installed; this is necessary for Windows development. Download at https://visualstudio.microsoft.com/downloads/. Please install the "Desktop development with…
Ahmed Trabelsi
  • 461
  • 1
  • 3
  • 6
41
votes
5 answers

Visual studio 2022 highly used memory

I'm working with Visual Studio 2022 and blazor .net 6. After 1 hour of continuous work, visual studio's memory consumption is very high and it crashed on my PC (windows server 2019).
sajjadarash
  • 417
  • 1
  • 5
  • 8
41
votes
2 answers

How to disable new AI-based IntelliCode in VS 2022?

On the surface the new AI-based IntelliCode for Visual Studio 2022 seems cool. So when I installed VS2022 and it asked if I wanted to allow training models on my code, I said sure because I wanted to see how it improved the developer experience. But…
RonC
  • 31,330
  • 19
  • 94
  • 139
41
votes
8 answers

How to keep Visual Studio or Docker from changing the host port numbers?

I have dockerized my web application and can run it within Visual Studio, however, the host port number it chooses to use is not consistent. Where do I configure it to always use the same port numbers?
adam0101
  • 29,096
  • 21
  • 96
  • 174
41
votes
5 answers

Visual Studio 2019 Re-Downloads Azure Function CLI Tools

I am trying to write a couple of Azure functions (version 2) using Visual Studio 2019. The first time I try to run them I get the following message: The functions run but if I restart VS and try to run the function again it downloads the tools…
Mark Wagoner
  • 1,729
  • 1
  • 13
  • 20
41
votes
3 answers

How to debug LinqPad query in Visual Studio Debugger?

I can attach the debugger and get it to break - but it has trouble finding the .cs file, I think LinqPad deletes it as part of its build.. 8-(
Mesh
  • 6,262
  • 5
  • 34
  • 53
41
votes
5 answers

How to debug object initializer code?

Is there a way to step by step debug the object initializer code in Visual Studio? Example: return new Veranstaltung() { ID = tblVeranstaltung.VeranstaltungsID, Titel = tblVeranstaltung.Titel, …
magnattic
  • 12,638
  • 13
  • 62
  • 115
41
votes
3 answers

Re-enable title bar in Visual Studio 2019

I've downloaded the preview version of Visual Studio 2019 and the title bar is disabled by default. This doesn't work for me as I currently develop C# applications using multiple instances of visual studio at a time, and I like knowing what window…
Jay
  • 9,561
  • 7
  • 51
  • 72
41
votes
3 answers

Visual Studio 2017 Debug Error: To prevent an unsafe abort when evaluating the function *.toString all threads were allowed to run

I updated Visual Studio 2017 to version 15.8.2. After this update, I started to encounter these errors while debugging: Here are the error messages: Visual Studio Debug Error: To prevent an unsafe abort when evaluating the function *.toString…
41
votes
2 answers

How to NOT include Visual Studio Project folder names in generated namespaces

How do I prevent the name of the Solution Folder in a VS project from being appended to the namespace generated for new items added to the solution folder? Example: C# project in a VS solution Default Namespace set in C# project properties:…
sbohlen
  • 1,999
  • 1
  • 15
  • 18
41
votes
6 answers

VS2017 Could not load file or assembly Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll or one of its dependencies

When trying to open an older solution in VS2017 there is an old Unit Test project that is giving me a problem when building. I keep getting the following error when building this test project: Could not load file or assembly…
41
votes
7 answers

What is the best way to do unit testing for ASP.NET 2.0 web pages?

Any suggestions? Using visual studio in C#. Are there any specific tools to use or methods to approach this? Update: Sorry, I should have been a little more specific. I am using ASP.Net 2.0 and was looking more for a tool like jUnit for Java. I…
Bryan Denny
  • 27,363
  • 32
  • 109
  • 125
41
votes
13 answers

Javascript breakpoints in Visual Studio 2017

I just installed Visual Studio 2017. After starting an ASP.NET MVC application I get the message that chrome debugging in Visual Studio is enabled. But my breakpoints in Visual Studio won't hit. The breakpoints on Razor code seems to be working but…
Ronald Meijboom
  • 1,534
  • 3
  • 17
  • 37