#VS2017 – #VisualStudio2017 will automatically refresh a project, if you add / copy files using the #FileSystem

Update: This is a feature supported in Visual Studio 2017 for .Net Core projects.

Hello!

This days all the news will be around the Build event. This event usually brings many important innovations for Microsoft Developers and for Developer Products. On the 1st day of build, the biggest developments announced were around Azure and Artificial Intelligence.

There are many Blogs which cover this news, so I’m going to focus on a functionality that we can use in the latest version of Visual Studio 2017:

When new files are copied to the directory of a .net project, Visual Studio 2017 adds the files automatically to the project in that directory.

Let’s look at this in operation where I copy a class called [Class2.cs] from a directory to the project directory, and in few seconds the class is part of the project in question.

2017 05 11 VS2017 Copy Files 02

A cool thing about this is that it works when we copy / add multiple files, or subdirectories within a project. The following animation shows how copying a class to 2 different directories, the IDE adds these directories to the new file as part of the project.

2017 05 11 VS2017 Copy Files 03

This functionality is really useful in scenarios where you add / remove / move many files between different projects. Usually this is not a problem, although when the time comes to sync with a Source Control provider, headaches usually appear.

Happy Coding !

Greetings @ Toronto

El Bruno

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s