SvnAliases.

SvnAddFile(ICakeContext, FilePath) Method

Summary

Add a file to Subversion.
Namespace
Cake.Svn
Containing Type
SvnAliases

Syntax

[CakeMethodAlias]
[CakeAliasCategory("Add")]
[CakeNamespaceImport("Cake.Svn.Add")]
public static bool SvnAddFile(this ICakeContext context, FilePath file)

Examples

Add a file to Subversion.

 var fileAdded = SvnAddFile(@"C:\project\src\newfile.cs");

     Verbose("File added: {0}", fileAdded);

Attributes

Type Description
CakeMethodAlias
CakeAliasCategory
CakeNamespaceImport

Parameters

Name Type Description
context ICakeContext The Cake context.
file FilePath The file.

Return Value

Type Description
bool true if the command was successful. Otherwise false will be returned.
GitHub