问题
Visual Studio publish only supports importing web deploy.
Is there a workaround?
回答1:
Visual Studio publishing profiles supports pure FTP as a target. It does not support SFTP however.
These are the options you should see:
- Web Deploy
- Web Deploy Package
- FTP (does not support SFTP unfortunately)
- File System (UNC or local path)
Update since noted ASP.NET 5
With the details that the project is ASP.NET 5 / vNext, at this time, FTP and Web Deploy are not supported yet in the UI of Visual Studio. There's a blog out there following these steps to import an FTP profile:
Open notepad and create a publishing profile to save to your file system.
<?xml version="1.0" encoding="utf-8"?> <publishData> <publishProfile profileName="FTP" publishMethod="FTP" publishUrl="ftp://ftpaddress" userName="username" userPWD="password" destinationAppUrl="http://wwwaddress" /> </publishData>
Select "Import" from the publish targets and import the publishing profile.
Link to Blog: http://blog.discountasp.net/publishing-an-asp-net-5-vnext-application/
来源:https://stackoverflow.com/questions/33672930/how-to-publish-asp-net-core-app-to-ftp-server