Questions tagged [visual-studio-2022]

Visual Studio 2022 is a version of Microsoft's Visual Studio. Do not use this tag unless you have a specific question about this specific version.

Visual Studio 2022 is a version of Microsoft's Visual Studio. Do not use this tag unless you have a specific question about Visual Studio 2022. Visual Studio 2022 was released to market (RTM) on Nov 8th 2021. It is the first 64-bit release of Visual Studio. It can now take full advantage of modern hardware in order to reliably scale to larger, more complex projects.

Some Major Changes and Improvements

  • First release of 64-bit version with major performance improvements
  • Find in Files is faster (3X than previous version).
  • Better dev tools for C++ and .NET, and Hot Reload
  • Multi-repo support with Git in the IDE
  • Updates for Blazor & Razor editors + Hot Reload for ASP.NET
  • Updated Look and Feel (new Icons)
  • IntelliCode improvements
    • Whole line completion
    • Quick Actions recommendations

Release notes can be found at the official Microsoft page.

3495 questions
28
votes
4 answers

'Format code' and 'sort using' on save in Visual Studio 2022

I and my team spent the last few months defining rules about C# code formatting and style for our project, so we ended up with an .editorconfig file. Moreover, we all installed the extension Productivity Power Tools, in order to format the code when…
27
votes
4 answers

How to disable that new "FileContentIndex" folder (and .vsidx files) in VS 2022 17.2.0?

Since update to VS 2022 17.2.0, a new folder called "FileContentIndex" is created in "...\.vs\[soln name]". This seems to be related to ServiceHub.IndexingService.exe. There's also a new file type of ".vsidx" and a "merges" folder. There's not much…
user1553309
  • 281
  • 1
  • 3
  • 8
27
votes
6 answers

Visual Studio 2022 build failed - but showing no errors

The only strange thing is a warning on the projects, but without any indication of what it is: Any ideas?
jcintra
  • 747
  • 1
  • 7
  • 8
26
votes
3 answers

How to stop Visual Studio 2022 sending requests to dc.services.visualstudio.com

I installed vs 2022 today and when running my project I suddenly se all these requests firing in my web front-end https://dc.services.visualstudio.com/v2/track Does anyone know why this would suddenly start happening after upgraing to vs 2022? I…
Bassie
  • 9,529
  • 8
  • 68
  • 159
25
votes
2 answers

Visual Studio 2022: Bold font in the entire editor

I downloaded & installed Visual Studio 2022. After creating a new project, and playing with the IDE for some time, I noticed that my font size was set to bold everywhere in the editor. Keywords, operators, punctuation, strings, variables, functions,…
JΛYDΞV
  • 8,532
  • 3
  • 51
  • 77
24
votes
4 answers

How do I prevent VS 2022 to display typescript errors with d.ts files in esproj

I created a project (.esproj) for my SPA under visual studio 2022. It build well but visual studio is showing a lot of errors (only on .dt.ts files from node_modules of the project and also from the one of Typescript locally installed in…
Erwan Joly
  • 491
  • 1
  • 4
  • 14
23
votes
4 answers

ASP.NET Core 6 Web API - making fields required

I had a basic CRUD API which saves a model to a MongoDB which was working fine. The model looks like the below: [BsonIgnoreExtraElements] public class Configuration { [BsonId] [BsonRepresentation(BsonType.ObjectId)] public string Id {…
Aneef
  • 3,641
  • 10
  • 43
  • 67
22
votes
3 answers

Doc file has been corrupted error after updating VS to Microsoft Visual Studio Enterprise 2022 (64-bit) - Preview Version 17.2.0 Preview 2

I had the same problem with “Docfile corruption” error after upgrading to 17.2. preview 2.1 today. I could not build, load files or even close VS without forcefully ending VS process in task manager. Message Box Error | Click for Show Full Size…
22
votes
2 answers

Visual Studio 2022 Git Push Tags

Does anybody know how to push tags in Visual Studio 2022. Since I switched to multi-repo mode, I can't find it anywhere. Workaround is to push the tags via command line.
Tim D'haeyer
  • 584
  • 6
  • 19
22
votes
13 answers

Visual Studio 2022 WinForms designer hang on "Loading Designer..."

When I try to open a WinForms designer in my startup project in a solution, I get a screen "Loading designer...", "You can continue working while the designer is loading in the background". This screen stays forever and the designer is not loading.…
user1510694
  • 221
  • 1
  • 2
  • 4
21
votes
4 answers

Using Source Control Explorer in Visual Studio 2022

Source Control Explorer is what I have used in the past to manage my Team Foundation version control (TFVC). In Visual Studio 2019 (and earlier verions), you could open Source Control Explorer by navigating to View | Other Windows | Source Control…
Kyle Williamson
  • 2,251
  • 6
  • 43
  • 75
21
votes
6 answers

the project doesn't know how to run the profile ConsoleApp

I just downloaded Visual Studio 2022 (Although I much preferred 2019 but can't find it) and as soon as I open a simple "Hello World" project and try to run it, I have an error. Using .Net 5.0 Runtime How can I fix this? is this a 2022 issue or if…
Ariella
  • 247
  • 1
  • 3
  • 7
21
votes
3 answers

Visual Studio 2022 Debug On Remote Azure Server

I appears that the Cloud Explorer has now been retired in Visual Studio 2022. This was something that I used many time a day and will sorely be missed. I used to be able in the Cloud Explorer select the app service, right click, and attach the…
20
votes
1 answer

How to remove the 'Deleted' Git code marker in scrollbar in Visual Studio 2022?

I am seeing a little red marker in Visual Studio 22 Version 17.3.0 whenever code is deleted. The marker itself is fine, but what is bothering me is that in the scroll bar it shows a red section highlighted that makes me think it's an error. I would…
Marcel Batista
  • 722
  • 6
  • 16
20
votes
2 answers

How do I stop Visual Studio 2022 from automatically changing namespaces and using statements when moving a file?

VisualStudio 2022 v17.2.3 has suddenly started changing the namespaces of my C# files when I drag them to a different directory. In the process it also deletes/adds/modifies using statements (often deleteriously) and updates every file referencing…
Bioinformagician
  • 643
  • 6
  • 10