SvnAliases.

SvnAddFile(ICakeContext, FilePath, SvnAddSettings) Method

Summary

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

Syntax

public static bool SvnAddFile(this ICakeContext context, FilePath file, SvnAddSettings settings)

Examples

Add a file to Subversion.

 var svnAddSettings = 
         new SvnAddSettings
         {
         Force = true
         };

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

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

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute
CakeNamespaceImportAttribute

Parameters

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

Return Value

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