Arrival of Visual Studio 2022 64-bit – Visual Studio Magazine



Arrival of Visual Studio 2022 64-bit

The 64-bit Visual Studio 2022 benchmark is now generally available, providing developers with significantly more memory for the first time to work with, along with other innovations like IntelliCode and Hot Reload.

“Visual Studio 2022 will be the first 64-bit version of Visual Studio,” the roadmap States. “In addition to the speed and performance benefits of increased memory access, Visual Studio brings user interface improvements, more customization options, and a continued focus on empowering developers. Upgrading to Visual Studio 2022 should be a low friction experience and shouldn’t require your code to be changed. You can still create 32-bit applications and all of your existing applications in Visual Studio 2022. ”

The game-changing move to 64-bit was in the foreground when VS 2022 was first unveiled about seven months ago.

“Visual Studio 2022 will be a 64-bit application, no longer limited to around 4 GB of memory in the main process devenv.exe”, noted Amanda Silver, CVP of Product, Developer Division, at the launch of VS 2022 in April. “With a 64-bit Visual Studio on Windows, you can open, edit, run, and debug even the largest and most complex solutions without running out of memory.”

To illustrate this capability, she pointed to a GIF video showing that the IDE opens a solution with some 1,600 projects and around 300,000 files:

VS 2022 Opening of 1,600 projects and 300,000 files.
[Click on image for larger, animated GIF view.] VS 2022 Opening of 1,600 projects and 300,000 files (source: Microsoft).

Silver continued on this theme in announcing the general availability of VS 2022 today, November 8.

“It can now take full advantage of modern hardware to reliably adapt to larger and more complex projects,” she said. “In addition, we have focused on improving the performance of the common scenarios you use every day.”

There are apparently still a few issues to be addressed, as a comment on the announcement post reveals this experience:

“Now that VS 2022 is x64, when it consumes the available resources, Windows crashes. Running VS 2022 over the weekend allowed me to use 98% of the system resources, which brought down Windows. Whereas before if VS ran out of memory it just crashed, now it drops Windows. I’m not sure this was a step. Luckily this only happened once, I couldn’t report because Windows had no system resources available. This is with pure VS, no custom extensions so good luck debugging. Even after killing VS in Process Explorer, I was still at 75% of resources used even though none of the other apps was using a lot. Restarting was the only real option. “

Another developer asked about Hot Reload, saying it never worked for this encoder and doesn’t work in the new version. Hot Reload, a long-standing and in-demand feature, was the subject of developer concern recently when Microsoft released announced that it would limit the hot reload feature in VS 2022. After negative feedback from developers on this decision, it was quickly overturned by Microsoft.

Other developers reported additional issues in the comments section, although one also expressed his gratitude to Microsoft with the comment: “Kudos to the whole team! The next era of 64-bit Visual Studio begins!

In today’s announcement, Silver also highlighted several improvements to the edit and debug cycle, including:

  • IntelliCode: “It’s an AI-assisted code companion that lets you type less and code more. This means IntelliCode can now complete entire lines of code for you, allowing you to write reliable code in just two tab presses. IntelliCode can also spot repeated changes and suggest fixes in your code base when there are similar patterns. ”

    By digging deeper, the release notes detail:

    • Whole row completions predict your next piece of C # code based on your current context and present it as an inline suggestion to the right of your cursor.
    • Whole line completions are now compatible with the latest versions of JetBrains ReSharper. Note that updating the line completion context based on the selection of items from the ReSharper Custom Completion List is not supported – if required, ReSharper users can choose to use Visual Studio native IntelliSense instead, as shown here.
  • Hot reloading for .NET and C ++: “gives you the ability to update your code and see changes immediately. Plus, you won’t need to redeploy and launch your application.” The release notes provide more:

    • Hot Reload is now available to .NET developers through the Visual Studio debugger and without the debugger for many types of .NET 6 applications
    • Hot Reload is now available for C ++ developers when using the Visual Studio debugger
    Hot Reload for Razor and CSS in Animated Action
    [Click on image for larger, animated GIF view.] Hot Reload for Razor and CSS in Animated Action (source: Microsoft).

Other improvements in the edit and debug cycle include debugger improvements, More precisely:

  • Attach to Process Dialog Improvements
  • Exception wizard improvements
  • Force Run to Click
  • Core Dump Diagnostic Analysis
  • A new type of breakpoint called Dependent Breakpoint, which allows developers to configure a breakpoint to be activated only if another breakpoint is hit first.
  • More updates to the External Sources node, developers can now see the module under the “Modules without sources” subnode and load the symbols from the solution explorer itself.
  • Breakpoint gutter improvements
  • Temporary breakpoint
  • Drag and drop the breakpoint
  • External Sources Node in Solution Explorer
  • Attach to Process Dialog Improvements

Silver also pointed out that .NET language service have been improved and new features have been introduced, including Live web preview and cross-platform testing on Linux.

Other new features introduced in a series of Previews and Candidates include:

  • C ++: Workloads will be supported with new productivity features, C ++ 20 tools and IntelliSense.
  • Azure: The development of cloud-based applications will be driven by repositories describing common models used in modern applications.
  • Debugging: Main debugger performance improvements are on the way, with “features like flaming graphics in the profiler to better spot hot paths, dependent breakpoints for more precise debugging, and built-in decompilation experiences that will help you. will allow you to browse code that you do not have locally. “
  • Share live: Real-time collaboration is enhanced with built-in text chat promoting quick conversations about code without any context switching.
  • New support for Git and GitHub: “You’ll notice lots of built-in logic and checkpoints to effectively guide you through the merge and review process, anticipating feedback from your colleagues that might slow things down. “
  • Improved code search: Developers can search outside of loaded scopes, which helps them find results regardless of what codebase or repository they are in.
  • Mac: The team is also working to keep the Mac IDE on par with the Windows IDE, which has posed reliability and other issues, which were resolved by switching to internal Windows components. While several previews of VS 2022 for Windows have been released, developers didn’t get their first preview of Visual Studio 2022 for Mac v17.0 until September 30.

Microsoft held a live launch event to mark the debut of VS 2022, available in replay on Youtube. It includes 30 question-and-answer sessions with the product team. Here’s a screenshot of one of the sessions that just ended:

A slide in the VS 2022 launch event
[Click on image for larger view.] A slide in the VS 2022 launch event (source: Microsoft).

Much more on VS 2022 is coming tomorrow with the start of the three days .NET 2021 Conference. “We have sessions on everything from the latest C # language features to the modern cloud, web and native device development, and 80 live sessions on topics covering everything you need to know about .NET,” Silver said. . “Log on and feel free to ask questions live on Twitter using #dotNETConf. ”

In addition to the GA version of VS 2022, officially called Visual Studio 2022 v17.0, the development team also delivered the first preview of v17.1, available in the Channel preview.

“We couldn’t have done it without you,” said Silver in conclusion. “We have received an incredible amount of feedback from thousands and thousands of developers who have tried out the previews. You’ve all provided so much feedback, from survey responses to bug reports, all of which have helped shape the direction of Visual Studio 2022. Including over a thousand bugfixes reported by our community. Really, we want to thank everyone. ”

Along with VS 2022, Microsoft has also moved .NET 6 to general availability, which you can read about here.

About the Author

David Ramel is editor and writer for Converge360.

Leave A Reply

Your email address will not be published.