For FTP publish profile the AfterPublish
target runs prior to FTP connection
#45470
Labels
AfterPublish
target runs prior to FTP connection
#45470
I have setup a publish profile (.pubxml) with FTP/FTPS Server (WebPublishMethod: FTP) and am looking to Run a target before or after publishing.
The
BeforePublish
target works as intended, but theAfterPublish
target runs prior to the FTP connection which is problematic since I need to restart a remote service after files are transferred.Would it be possible to add another target like
FTPPublish
similar toFileSystemPublish
used in profile Folder (WebPublishMethod: FileSystem) that invokes after files are copied? The preferable solution would be to have the FTP transfer occur prior toAfterPublish
target runs.Using the following to show which targets are run, the final target is
DotNetPublish
but that still runs prior to FTP connection.VS 17.12.0
.NET SDK 9.0.100
The text was updated successfully, but these errors were encountered: