Project

Aliases

ParseProject(FilePath project, string config)

Returns the project information specific to a build configuration

CustomParseProjectResult project = ParseProject(new FilePath("test.csproj"), "Release");

Extensions

CustomParseProjectResult.IsLibrary()

Identifies the project as a library

// dll or console app?
ParseProject(new FilePath("testDll.csproj")).IsLibrary(); // true
ParseProject(new FilePath("testConsole.csproj")).IsLibrary(); // false

CustomParseProjectResult.IsType(ProjectTypes projectType)

Identifies the project by type

// csharp test project
CustomParseProjectResult result = ParseProject(new FilePath("testDll.csproj"), "Debug");

result.IsType(ProjectTypes.CSharp); // true
reuslt.IsType(ProjectTypes.Test); // true

// mvc web project
CustomParseProjectResult result = ParseProject(new FilePath("web.csproj"), "Debug");
result.IsType(ProjectTypes.WebApplication); // true
result.IsType(ProjectTypes.CSharp); // true
result.IsType(ProjectTypes.AspNetMvc5); // true

CustomParseProjectResult.GetAssemblyFilePath()

Returns the output assembly for the project

// returns {outputDir}/{AssemblyName}.[dll|exe]
FilePath assemblyPath = ParseProject(new FilePath("test.csproj"), "Debug").GetAssemblyFilePath();

results matching ""

    No results matching ""