Build Visual Studio project through the command line

I am running an ASP.NET website from a Windows Server 2008 installation, and I like to edit the pages through the command line since I ssh into the server.

I installed Vim on the server so that I can edit the files easily. If I edit HTML and CSS and .aspx pages, the updates are successful. But if I want to edit source code I would have to rebuild the project. Rebuilding the project recompiles everything nicely and updates the copy on the web. This is a development server so updates to everything is fine since no one sees this server.

How can I build the project through the command line to update the source code and build on the server?

The project is written in C# and the files are all in the wwwroot folder so no file moving needs to occur after a build.

31
задан Peter Mortensen 26 March 2017 в 09:26
поделиться