Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For FTP publish profile the AfterPublish target runs prior to FTP connection #45470

Open
mguinness opened this issue Dec 16, 2024 · 0 comments
Open
Labels
Area-WebSDK untriaged Request triage from a team member

Comments

@mguinness
Copy link

mguinness commented Dec 16, 2024

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 the AfterPublish 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 to FileSystemPublish used in profile Folder (WebPublishMethod: FileSystem) that invokes after files are copied? The preferable solution would be to have the FTP transfer occur prior to AfterPublish target runs.

Using the following to show which targets are run, the final target is DotNetPublish but that still runs prior to FTP connection.

Tools -> Options -> Projects and Solutions -> Build and Run -> MSBuild project build output verbosity -> Diagnostic

VS 17.12.0
.NET SDK 9.0.100

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-WebSDK untriaged Request triage from a team member labels Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-WebSDK untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

1 participant