Quantcast
Channel: Category Name
Viewing all articles
Browse latest Browse all 5971

Visual Studio 2019 version 16.2 Preview 2

$
0
0

We are announcing the release of the second preview of Visual Studio 2019 version 16.2. The latest version is available for you to download from VisualStudio.com, or, if you already have the Preview installed, just click the notification bell from inside Visual Studio to update. This latest preview adds the ability debug JavaScript code using the new Microsoft Edge Insider, an improved installation experience, and updates to the application installer command-line packaging. We’ve highlighted some of the notable features below. You can see a list of all the changes in the release notes. 

Microsoft Edge Insider support 

The latest preview release of Visual Studio enables debugging JavaScript in the new Microsoft Edge Insider browser for ASP.NET and ASP.NET Core projects. To do this, simply install the browser, set a breakpoint in the application’s JavaScript and start a debug session. Visual Studio will launch a new browser window with debugging enabled allowing you to step through your JavaScript code within Visual Studio.

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 usYou can find the Sort Usings command under Edit > IntelliSense.

We’ve also added the ability to convert a switch statements to switch expressionsSince switch expressions  are a new C# 8.0 featureyou 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 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. 

The post Visual Studio 2019 version 16.2 Preview 2 appeared first on The Visual Studio Blog.


Viewing all articles
Browse latest Browse all 5971

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>