📜 ⬆️ ⬇️

What's new in Visual Studio 2015 for C #, Visual Basic and Linux enthusiasts



Good day to all!

Last week, the Build 2016 conference ended, at which the main news for developers from Microsoft was presented.
')
Among them is the release of Visual Studio 2015 Update 2 , which can already be downloaded and installed on your computer, as well as a preview of the next version of the tool:


Let us see what innovations await developers with Visual Studio 2015 Update 2. Let's start with the news to develop in C # and Visual Basic.

Interactive work

The Interactive Window for C # and the REPL command line, csi, were introduced in Visual Studio Update 1. In Update 2, we combined interactive interaction with the editor, allowing developers to send code snippets from the editor to execute them in the Interactive Window. We also allowed developers to initialize the Interactive Window in the context of the project.

How to try:

clip_image0029.png

Using / Imports

We improved the hints for Using / Imports expressions: suggesting a suitable type for incorrectly specified in the code and searching for such a current solution and metadata, as well as adding using / imports commands and any metadata references or a project at the same time, if necessary.

The figure below shows an example with an incorrectly specified “WebCleint” type. The type entered must be corrected and the System.Net namespace connected.

clip_image0046.png

Refactoring

A couple of new types of refactoring:


clip_image0067.png

New to Roslyn

We added two new compiler flags to Roslyn :

Visual C ++ for Linux development


We have also prepared a new extension that will allow developing under Linux in Visual Studio in C ++. With this extension you can create C ++ code for server, desktop versions of Linux and various devices. You can manage your connections to these machines with Visual Studio. VS automatically copies and remotely collects your code, and can also launch your application with a debugger. Our project system supports the choice of a specific architecture, including ARM.

Today we support only remote build on a Linux machine. We are not limited to the differences of Linux distributions, but we still have dependencies on the presence of some tools. In particular, we need openssh-server, g ++, gdb and gdbserver.

Use any package manager to install them, for example on Debian systems:

sudo apt-get install openssh-server g++ gdb gdbserver 

Download the Visual C ++ extension for Linux Development or install it via the Extension Manager in Visual Studio. You can get started by choosing Templates> Visual C ++> Cross Platform> Linux.



Learn more about the extensibility of Visual C ++ for Linux Development at the link .

Xamarin for everyone


Do not ignore the main news for cross-platform developers on C # - Xamarin tool is available for all developers using Visual Studio 2015 Update 2, including the free version of Community. For more information about this news, we will write in a separate article devoted exclusively to the announcement of tools for cross-development of Build 2016.

What is in the preview of Visual Studio "15"


We are also pleased to present to you the first review of the preview version of Visual Studio "15". Some features described in the article are already available and will be improved, while others are only expected. You can download and install Visual Studio “15” preview with a separate tool now, even if you have Visual Studio 2015 Update 2 installed.

useful links


Source: https://habr.com/ru/post/280956/


All Articles