C# Class ProjectModels.ProjectJson

Manipulate a project.json file.
ファイルを表示 Open project: ufcpp/UfcppSample Class Usage Examples

Public Methods

Method Description
GeneratePackageJson ( string targetVersion, string csprojFolder, IEnumerable dependencies ) : void

Generate a project.json file for csproj + NuGet 3.*.

GenerateWrapJson ( string targetVersion, string wrapFolder, string projectPath, IEnumerable packages ) : void

Generate a project.json file for csproj + NuGet 3.*.

ProjectJson ( string confitPath ) : Newtonsoft.Json

Private Methods

Method Description
GetPackageJson ( string targetVersion, IEnumerable dependencies ) : string
GetPackages ( ) : IEnumerable
GetPackagesRecursive ( Newtonsoft.Json.Linq.JObject obj ) : IEnumerable
GetWrapJson ( string targetVersion, string projectFolder, string projectName, IEnumerable packages ) : string
ToDictionary ( IEnumerable packages ) : Dictionary,System.Collections.Generic

Method Details

GeneratePackageJson() public static method

Generate a project.json file for csproj + NuGet 3.*.
public static GeneratePackageJson ( string targetVersion, string csprojFolder, IEnumerable dependencies ) : void
targetVersion string
csprojFolder string
dependencies IEnumerable
return void

GenerateWrapJson() public static method

Generate a project.json file for csproj + NuGet 3.*.
public static GenerateWrapJson ( string targetVersion, string wrapFolder, string projectPath, IEnumerable packages ) : void
targetVersion string
wrapFolder string
projectPath string
packages IEnumerable
return void

ProjectJson() public method

public ProjectJson ( string confitPath ) : Newtonsoft.Json
confitPath string
return Newtonsoft.Json