C# Class Microsoft.Extensions.ProjectModel.ProjectReader

Exibir arquivo Open project: piotrpMSFT/cli-old Class Usage Examples

Public Methods

Method Description
GetProject ( string projectFile ) : Microsoft.Extensions.ProjectModel.Project
GetProject ( string projectFile, ICollection diagnostics ) : Microsoft.Extensions.ProjectModel.Project
ReadProject ( Stream stream, string projectName, string projectPath, ICollection diagnostics ) : Microsoft.Extensions.ProjectModel.Project
TryGetProject ( string path, Microsoft.Extensions.ProjectModel.Project &project, ICollection diagnostics = null ) : bool

Private Methods

Method Description
BuildTargetFrameworkNode ( Microsoft.Extensions.ProjectModel.Project project, string frameworkKey, Microsoft.Extensions.JsonParser.Sources.JsonObject frameworkValue ) : bool

Parse a Json object which represents project configuration for a specified framework

BuildTargetFrameworksAndConfigurations ( Microsoft.Extensions.ProjectModel.Project project, Microsoft.Extensions.JsonParser.Sources.JsonObject projectJsonObject, ICollection diagnostics ) : void
GetCompilationOptions ( Microsoft.Extensions.JsonParser.Sources.JsonObject rawObject ) : CommonCompilerOptions
HasProjectFile ( string path ) : bool
MakeDefaultTargetFrameworkDefine ( NuGet.Frameworks.NuGetFramework targetFramework ) : string
PopulateDependencies ( string projectPath, IList results, Microsoft.Extensions.JsonParser.Sources.JsonObject settings, string propertyName, bool isGacOrFrameworkReference ) : void
SpecifySnapshot ( string version, string snapshotValue ) : NuGet.Versioning.NuGetVersion
TryGetStringEnumerable ( Microsoft.Extensions.JsonParser.Sources.JsonObject parent, string property, IEnumerable &result ) : bool

Method Details

GetProject() public static method

public static GetProject ( string projectFile ) : Microsoft.Extensions.ProjectModel.Project
projectFile string
return Microsoft.Extensions.ProjectModel.Project

GetProject() public static method

public static GetProject ( string projectFile, ICollection diagnostics ) : Microsoft.Extensions.ProjectModel.Project
projectFile string
diagnostics ICollection
return Microsoft.Extensions.ProjectModel.Project

ReadProject() public method

public ReadProject ( Stream stream, string projectName, string projectPath, ICollection diagnostics ) : Microsoft.Extensions.ProjectModel.Project
stream Stream
projectName string
projectPath string
diagnostics ICollection
return Microsoft.Extensions.ProjectModel.Project

TryGetProject() public static method

public static TryGetProject ( string path, Microsoft.Extensions.ProjectModel.Project &project, ICollection diagnostics = null ) : bool
path string
project Microsoft.Extensions.ProjectModel.Project
diagnostics ICollection
return bool