Visual Studio 2019 version 16.2 Preview 2
Microsoft Edge Insider support
But it doesn’t stop there since Visual Studio also supports debugging custom browser configurations using the “Browse with” option to launch the browser with custom CLI parameters (e.g. —inprivate).
Visual Studio Installer support
The Visual Studio Installer will now better handle size space detection based on what you already have installed on your machine. The improved installer experience means that if the required amount of space is larger than what is available, the installation does not attempt.
.NET Productivity Improvements
The latest preview release continues to focus on developer productivity and we bring even more refactoring capabilities to enable you to write better code faster. We’ve heard the request to bring back the Sort Usings command and that it should be separate from the Remove Usings command. We appreciate everyone who shared their feedback with us. You can find the Sort Usings command under Edit > IntelliSense.
We’ve also added the ability to convert a switch statements to switch expressions. Since switch expressions are a new C# 8.0 feature, you need to ensure that you’re utilizing the latest language version, i.e. C# 8.0. Under project file, verify the language version is set to preview. Place your cursor in the switch keyword, type (Ctrl+.) to open the Quick Actions and Refactorings menu, and then select Convert switch statement to expression.
Finally, we’ve added the ability to generate a parameter as a code fix. Place the cursor in the variable name and type (Ctrl+.) to open the Quick Actions and Refactorings menu. Select the option to Generate a variable to create a new parameter.
App Installer Command Line Packaging Improvements
In Visual Studio 2019 version 16.2 Preview 2, we improved the sideloaded command line packaging experience for Windows Desktop projects and, in particular, those that are configured to receive automatic updates using an .appinstaller file.
In previous versions of Visual Studio, you were required to use one of three different methods to properly set the HoursBetweenUpdateChecks update setting in the .appinstaller file. You could use the Packaging Wizard to package the application, add the AppInstallerUpdateFrequency and AppInstallerCheckForUpdateFrequency build properties to the project file, or pass these parameters as command line arguments.
In Preview 2, we have eliminated the need to use the Package Wizard or define these build properties. Instead, you are able to simply define and pass HoursBetweenUpdateChecks as a parameter during the command line build, simplifying and making it easy to adjust that setting.
Take it for a spin today
Give the latest Preview release a try by downloading it online, or updating via the notification bell inside Visual Studio. You can also launch and use the Visual Studio Installer to install the update.
Our PM team is always reviewing feedback and we look forward to hearing what you have to say about our latest release. If you come across any issues, make sure to let us know by using the Report a Problem tool in Visual Studio. If you have any feature ideas or want to ask questions, you should head over to Visual Studio Developer Community. We use your feedback to decide what to work on as we pursue our goal to make Visual Studio 2019 the best developer tool, so thank you again on behalf of our entire team.