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
44
votes
3 answers

VS 2022: High RAM and CPU issue with Roslyn Code Analysis

We have a huge solution (ASP.NET MVC, C#) in Visual Studio 2022 (v.17.2.2 64bit). Roslyn Code Analysis is always using high CPU and RAM. Is there a way to prevent this issue? A configuration or something else?
kiafiore
  • 1,071
  • 2
  • 11
  • 27
44
votes
4 answers

SSIS Extension for Visual Studio 2022

I have downloaded and installed Visual Studio 2022. Then after click on modify Now, I want to create SSIS package, for this I have started VS22 and in "manage extensions" when I try to find Microsoft SSIS, I am unable to find. For this, I have…
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
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
39
votes
7 answers

Visual Studio 2022 Find All in Entire Solution is not working properly

I've just started to use Visual Studio 2022 and I'm trying to search something via ctrl+F and 'Find All' function but it is not finding the key that I'm searching for, even though I know there is such a key in a file in one of my projects in the…
zalky
  • 659
  • 1
  • 7
  • 12
39
votes
1 answer

How to stash in Visual Studio 2022?

There is no way to use git stash here, except apply and pop
DevLife
  • 519
  • 1
  • 4
  • 6
37
votes
6 answers

VS2022 loses DevOps authorization with error TFS30063 - but only after a while

I'm noticing this repeatedly with VS2022. Everything starts off well but eventually it seems to lose my authorization on my Azure DevOps project. I open a solution and VS 2022 connects to Azure Devops. Maybe I make a commit or two and type the…
Joe
  • 5,394
  • 3
  • 23
  • 54
36
votes
7 answers

Checking for any code updates Visual Studio 2019 and 2022

Sometimes (often) I am getting the message Checking for any code updates during debugging: This makes productivity down. I did some research and find a post on the Visual Studio community:…
Dilshod K
  • 2,924
  • 1
  • 13
  • 46
36
votes
3 answers

How do I set up NUnit in Visual Studio 2022?

Does NUnit work under Visual Studio 2022? All of the setup instructions I can find relate to previous versions of Visual Studio and reference things that are not present (such as "Tools -> Manage Extensions menu in Visual Studio. Click on Online and…
digitig
  • 1,989
  • 3
  • 25
  • 45
32
votes
11 answers

The Visual Studio 2022 Error "Failed to launch debug adapter. Additional information may be available in the output window."

I am using Visual Studio 2022 for Blazor WebAssembly Project and the ASP.NET Core API Project. When I run these projects independently, they works fine in Edge, Chrome browsers but, when I select Multiple-Startup projects, I am getting the following…
Mahesh S
  • 451
  • 1
  • 5
  • 7
30
votes
1 answer

How can I remove the platforms I do not need to compile for in .net MAUI?

I only want to make a project for MacOS and Windows, no need for Android or iOS. I tried deleting the platforms from the folder called "Platforms" but they seem to regenerate each compile. Is there an official method for only targeting the platforms…
DaWiseguy
  • 786
  • 7
  • 16
30
votes
6 answers

Upgrade VS2022 preview to release version

I have Visual Studio 2022 Preview installed and would like to replace it with the release version that went live yesterday. When I started VS and checked for updates, it let me upgrade from the previous release candidate to Preview 1.0, but not the…
Berend
  • 780
  • 7
  • 19
29
votes
3 answers

VS2022 - Can't view values of variables when exception thrown - Local variables and arguments are not available in '[Exception]' call stack frames

I'm getting an InvalidOperationException thrown (which should be easy to fix). However when the exception is thrown, I can't view any of the current values in the Locals debug window. They all have the same message: Local variables and arguments are…
Calanus
  • 25,619
  • 25
  • 85
  • 120
29
votes
3 answers

Visual Studio 2022 how to turn off the new Git experience

Looks like the option to turn off the new Git experience is gone from VS2022. And there is still no way to link in a DevOps work item like you could in the Team Explorer. Has anyone found the off switch in VS022 for this "experience"?
ficelles
  • 429
  • 1
  • 4
  • 7
28
votes
5 answers

Visual Studio 2022 won't connect via SSH on macOS after upgrading to Ventura

I have a working setup with Visual Studio 2022 17.3.6 on a Windows laptop and Mac M1 running macOS 12.6.1. When I run an Uno project or a Xamarin project it connects as expected to the Mac. I just upgraded the Mac to Ventura and am no longer able to…
Jt5
  • 694
  • 5
  • 11