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
11
votes
1 answer

Code Index API / Code Index Client Applications permissions requested in Visual Studio

A few months ago Visual Studio started popping up a permissions request for "Code Index Client Applications" from "Code Index API". If I click on the "Report it here" link, I'm taken to another page that says it is from "AME.GBL". I don't know…
David
  • 4,665
  • 4
  • 34
  • 60
11
votes
3 answers

The build tools for v143 cannot be found - Build Tool Installed & Using Correct VS Version

This is similar to other questions where MS build tools could not be found but in my case I have already installed the build tools and I am using the correct version of VS for the specified tools (VS2022) on Windows 10. The error message "The build…
YungDeiza
  • 3,128
  • 1
  • 7
  • 32
11
votes
5 answers

Failed to launch debug adapter in Visual Studio 2022

If I create an ASP Core MVC (Target Framework 5.0) with Docker support enabled and start it I get: "One or more errors occurred. Failed to launch debug adapter. Additional information may available in the output window. The operation was…
11
votes
8 answers

Project Properties Windows Blank in Visual Studio 2022 Community 17.1.0

I'm trying to access the project properties but the window appears blank. I've tried web solutions View>Properties Window, f4, right click on project folder>properties, Also tried resetting import/export settings, searching for specific…
P Pp
  • 137
  • 1
  • 6
11
votes
3 answers

VS 2022 Hot Reload - web socket fails to open in aspnetcore-browser-refresh.js

Reagrdless of whether I run the application with or without the debugger attached, and whether it's run from VS or via command line (dotnet watch run) I cannot get the Hot Reload websocket to connect. The framework automatically adds the…
11
votes
1 answer

How does Visual Studio 2022 determine which TypeScript version to target for Intellisense purposes

I am using Visual Studio 2022 to work on an existing solution that contains a web project with a node app. The app is configured in the package.json file to use the TypeScript 3.8.3 npm package. In a TypeScript file I am using the optional chaining…
SPArcheon
  • 1,273
  • 1
  • 19
  • 36
11
votes
2 answers

How to see c# code compiled from Razor component with VS2022 in project targeting .Net6?

I have a component and I want to see generated by RazorSourceGenerator *_razor.g.cs file. Previously with VS2019 and .Net5 I could open the "\obj\Debug\net5.0\Razor\Pages" folder and found the generated files there. Now, If I have some compillation…
Eugene Maksimov
  • 1,504
  • 17
  • 36
11
votes
4 answers

.NET Core 6 with Angular template in VS 2022 is showing only Launching the SPA proxy... Page

I'm trying to create ASP.NET Core 6 with Angular template I'm using VS 2022 and.net 6 and the npm is the latest release and Node js as well. I've followed the normal project steps: 1- create a project. 2- ASP.NET Core with angular. 3- Then in the…
Abdulaziz
  • 654
  • 3
  • 12
  • 37
11
votes
0 answers

Visual Studio 2022 gives "internal error in the C# compiler" in Debug Mode

On trying to put a watch the value of any object in Debug mode in Visual Studio 2022, I get "internal error in the C# compiler" instead of the actual value. Many posts in StackOverflow suggest checking this option in Visual Studio IDE. Tools->…
Smitha Kalluz
  • 309
  • 5
  • 10
11
votes
1 answer

Setup projects on Visual Studio 2022

In Visual studio 2019 and earlier versions Setup projects were part of the project templates I could add to any solution. Now I've tried to open an old solution in VS 2022 and it says there is no compatibility for this kind of project. Is that so,…
Antonio Rodríguez
  • 976
  • 2
  • 11
  • 25
11
votes
6 answers

Visual Studio 2022 not listed in devops build solution pipeline task

I have an on-prem instance of Azure DevOps 2020.1.1 in the build pipeline I have a build solution task which has visual studio version set to "latest" when building a .NET6 project this fails saying of course .NET6 isn't supported because the latest…
11
votes
5 answers

Visual Studio 2022 source control not showing changes

Visual Studio 2022 not showing any change of file in git changes window, although there are some files updates are available. Whereas GIT GUI is showing all the changes in the repository. Once I open the repository in GIT GUI all changes are also…
Shyam Narayan
  • 1,009
  • 2
  • 14
  • 28
11
votes
5 answers

Error message "No distribution are installed" in Visual Studio Community 2022

I'm facing an issue with Visual Studio Community 2022, I've 3 projects in my solution. All projects have target framework .NET 3.0. Web Application(UI) Web Application(API) Class Library I've set projects 1 and 2 as startup projects. But now when…
11
votes
1 answer

Visual Studio 2022 build takes forever

Visual Studio 2022 build takes forever and the same project works fine with Visual Studio 2019 on the same machine On build, got NuGet package restore error: NuGet package restore failed. Please see Error List window for detailed warnings and…
Girish
  • 121
  • 4
11
votes
1 answer

How to run Visual Studio CPU profiler on CMake project?

I'm trying to use Visual Studio 2022 and its profiling tools to profile my C++ app, built with a CMake project. I build my project in RelWithDebInfo mode, and MSVC_x64_x64 toolset. I added this fragment: if…
Kaznov
  • 1,035
  • 10
  • 17