Cake.FtpDeploy 0.0.3

Cake.FtpDeploy addin

Install-Package Cake.FtpDeploy -Version 0.0.3
dotnet add package Cake.FtpDeploy --version 0.0.3
paket add Cake.FtpDeploy --version 0.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Cake.FtpDeploy

Example Usage In Build.cake

FtpDeploy(new FtpDeploySettings() {
        FtpUri = "ftp://somebaseftpurl",
        FtpUserName = "some-ftp-username",
        FtpPassword = "some-ftp-password",
        ArtifactsPath = "relative-or-absolute-path-to-published-artifacts"
    });

This addin will delete all files at the ftp URI, and then upload every file in the ArtifactsPath directory

To publish artifacts locally from a solution, create a Cake task similar to this:

Task("Publish Artifacts Locally")
    .Does(() =>
{
    MSBuild(
        "./GAS.sln", x => {

            x.ArgumentCustomization = args => args.Append("/p:DeployOnBuild=true").Append("/p:PublishProfile=FolderProfile");

            x
            .SetConfiguration("Release")
            .WithTarget("Build");
        });
});

The PublishProfile can be created in Visual Studio (it needs to be a Folder publish)
See more here: https://docs.microsoft.com/en-us/dotnet/core/tutorials/publishing-with-visual-studio

Cake.FtpDeploy

Example Usage In Build.cake

FtpDeploy(new FtpDeploySettings() {
        FtpUri = "ftp://somebaseftpurl",
        FtpUserName = "some-ftp-username",
        FtpPassword = "some-ftp-password",
        ArtifactsPath = "relative-or-absolute-path-to-published-artifacts"
    });

This addin will delete all files at the ftp URI, and then upload every file in the ArtifactsPath directory

To publish artifacts locally from a solution, create a Cake task similar to this:

Task("Publish Artifacts Locally")
    .Does(() =>
{
    MSBuild(
        "./GAS.sln", x => {

            x.ArgumentCustomization = args => args.Append("/p:DeployOnBuild=true").Append("/p:PublishProfile=FolderProfile");

            x
            .SetConfiguration("Release")
            .WithTarget("Build");
        });
});

The PublishProfile can be created in Visual Studio (it needs to be a Folder publish)
See more here: https://docs.microsoft.com/en-us/dotnet/core/tutorials/publishing-with-visual-studio

Release Notes

Alpha

  • .NETStandard 2.0

    • No dependencies.

Version History

Version Downloads Last updated
0.0.3 544 7/20/2018
0.0.2 195 6/1/2018
0.0.1 159 1/24/2018