In order to improve the deployment / build process of my ASP.NET app, I would like to make a .bat
that
- builds the current solution in release mode
xcopy
the files to a remote server
Creating a release build via command line is easy.
But how can I xcopy the files to the remote server?
I think I have to map the remote destination to a network drive (?). However I could not connect to the remote server, although I have enabled file sharing for the folder on the server. Maybe the firewall is blocking the request? Which port should I open? Or is there another solution?
EDIT
Thanks for all the answers so far, but I probably need a step by step guide on how to set up the folder sharing on the server. I shared the folder, I opened up port 445 so that I can connect to the server but still, I cant connect from my local machine to the server in order to map the network path to a system drive.