How to make visual studio 2015 publish only the files that are most current?

5

I put a project in visual studio 2015 to try the tool.

It's an ASP.NET MVC application, I'm publishing it directly to the server via FTP.

Right click on the project, publish, there I created an FTP profile and I told you not to delete the files before publishing.

In visual studio 2013 this is enough for him not to publish everything every time, in 2015 he is publishing everything, does not delete the files as requested, but writes all of them.

Does anyone know how to do this?

    
asked by anonymous 29.07.2015 / 06:20

1 answer

0

This functionality that existed in VS2012 for partial FTP publishing no longer exists, has been removed. I think only in Web Deploy it is still possible to do partial publishing according to modifications.

Another way would be to upload from outside VS (totally external, or even configured in a build step of a specific build configuration, for example RELEASE or create a unique configuration for publishing) In this case you would have to create the scripts (it could be another VS project, a DLL that does the dirty work, it could be a PowerShell, Node.JS, etc) to do the validation of what was changed and to do the upload.

Here's an example using GULP (Node.js) to monitor changes: link

In this example, it monitors the files in real time, and every save modification, it sends the file (it can be catastrophic in the production environment, since you can change something to test and upload it in Understand well configured how to select only extensions / file types that pose no health risks to the application)

    
14.01.2017 / 20:07