C# 클래스 WixSharp.Files

Defines all files of a given source directory and all subdirectories to be installed on target system.

Use this class to define files to be automatically included into the deployment solution if their name matches specified wildcard character pattern (Files.IncludeMask).

You can use Files.ExcludeMasks to exclude certain files from setup if required.

This class is a logical equivalent of DirFiles except it also analyses all files in all subdirectories. DirFiles excludes files in subdirectories.

Note that all files matching wildcard are resolved into absolute path thus it may not always be suitable if the Wix# script is to be compiled into WiX XML source only (Compiler.WixSharp.Compiler.BuildWxs(WixSharp.Project)). Though it is not a problem at all if the Wix# script is compiled into MSI file (Compiler.Compiler.BuildMsi(WixSharp.Project)).
상속: WixEntity
파일 보기 프로젝트 열기: Eun/WixSharp 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Directory string
Feature Feature
Filter Predicate
IncludeMask string

공개 메소드들

메소드 설명
Files ( ) : System

Initializes a new instance of the Files class.

Files ( Feature feature, string sourcePath ) : System

Initializes a new instance of the Files class with properties/fields initialized with specified parameters.

Files ( Feature feature, string sourcePath, Predicate filter ) : System

Initializes a new instance of the Files class with properties/fields initialized with specified parameters.

Files ( string sourcePath ) : System

Initializes a new instance of the Files class with properties/fields initialized with specified parameters.

Files ( string sourcePath, Predicate filter ) : System

Initializes a new instance of the Files class with properties/fields initialized with specified parameters.

GetAllItems ( string baseDirectory ) : WixEntity[]

Analyses baseDirectory and returns all files (including subdirectories) matching Files.IncludeMask, which are not matching any Files.ExcludeMasks.

메소드 상세

Files() 공개 메소드

Initializes a new instance of the Files class.
public Files ( ) : System
리턴 System

Files() 공개 메소드

Initializes a new instance of the Files class with properties/fields initialized with specified parameters.
public Files ( Feature feature, string sourcePath ) : System
feature Feature the directory files should be included in.
sourcePath string The relative path to source directory. It must include wildcard pattern for files to be included /// into MSI (e.g. new Files(@"Release\Bin\*.*")).
리턴 System

Files() 공개 메소드

Initializes a new instance of the Files class with properties/fields initialized with specified parameters.
public Files ( Feature feature, string sourcePath, Predicate filter ) : System
feature Feature the directory files should be included in.
sourcePath string The relative path to source directory. It must include wildcard pattern for files to be included /// into MSI (e.g. new Files(@"Release\Bin\*.*")).
filter Predicate Filter to be applied for every file to be evaluated for the inclusion into MSI. /// (e.g. new Files(typical, @"Release\Bin\*.dll", f => !f.EndsWith(".Test.dll"))).
리턴 System

Files() 공개 메소드

Initializes a new instance of the Files class with properties/fields initialized with specified parameters.
public Files ( string sourcePath ) : System
sourcePath string The relative path to source directory. It must include wildcard pattern for files to be included /// into MSI (e.g. new Files(@"Release\Bin\*.*")).
리턴 System

Files() 공개 메소드

Initializes a new instance of the Files class with properties/fields initialized with specified parameters.
public Files ( string sourcePath, Predicate filter ) : System
sourcePath string The relative path to source directory. It must include wildcard pattern for files to be included /// into MSI (e.g. new Files(@"Release\Bin\*.*")).
filter Predicate Filter to be applied for every file to be evaluated for the inclusion into MSI. /// (e.g. new Files(typical, @"Release\Bin\*.dll", f => !f.EndsWith(".Test.dll"))).
리턴 System

GetAllItems() 공개 메소드

Analyses baseDirectory and returns all files (including subdirectories) matching Files.IncludeMask, which are not matching any Files.ExcludeMasks.
public GetAllItems ( string baseDirectory ) : WixEntity[]
baseDirectory string The base directory for file analysis. It is used in conjunction with /// relative . Though takes precedence if it is an absolute path.
리턴 WixEntity[]

프로퍼티 상세

Directory 공개적으로 프로퍼티

The relative path to source directory to search for files matching the Files.IncludeMask.
public string Directory
리턴 string

Feature 공개적으로 프로퍼티

the files belongs to.
public Feature,WixSharp Feature
리턴 Feature

Filter 공개적으로 프로퍼티

The filter delegate. It is applied for every file to be evaluated for the inclusion into MSI.
public Predicate Filter
리턴 Predicate

IncludeMask 공개적으로 프로퍼티

Wildcard pattern for files to be included into MSI.

Default value is *.*.

public string IncludeMask
리턴 string