C# Class FwBuildTasks.CollectTargets

Collect projects from the FieldWorks repository tree, and generate a targets file for MSBuild (Mono xbuild).
Mostra file Open project: sillsdev/FieldWorks Class Usage Examples

Private Properties

Property Type Description
CollectInfo void
GetProjectSubDir string
LoadProjectFile void
ProcessCsProjFile void
TimeoutForProject int
WriteTargetFiles void

Public Methods

Method Description
CollectTargets ( Microsoft.Build.Utilities.TaskLoggingHelper log ) : System
Generate ( ) : void

Scan all the known csproj files under FWROOT for references, and then create msbuild target files accordingly.

ProcessDependencyGraph ( StreamWriter writer ) : void

Private Methods

Method Description
CollectInfo ( DirectoryInfo dirInfo ) : void

Recursively scan the directory for csproj files.

GetProjectSubDir ( string project ) : string
LoadProjectFile ( string projectFile ) : void
ProcessCsProjFile ( string filename ) : void

Extract the reference information from a csproj file.

TimeoutForProject ( string project ) : int

Return the timeout for running the tests in the given test project.

The timings for projects are now found in the fw/Build/TestTimeoutValues.xml file and can be changed there without having to rebuild the FwBuildTasks dll. Values in XML are in seconds, which we convert to milliseconds here.

WriteTargetFiles ( ) : void

Used the collected information to write the needed target files.

Method Details

CollectTargets() public method

public CollectTargets ( Microsoft.Build.Utilities.TaskLoggingHelper log ) : System
log Microsoft.Build.Utilities.TaskLoggingHelper
return System

Generate() public method

Scan all the known csproj files under FWROOT for references, and then create msbuild target files accordingly.
public Generate ( ) : void
return void

ProcessDependencyGraph() public method

public ProcessDependencyGraph ( StreamWriter writer ) : void
writer System.IO.StreamWriter
return void