C# Class ProjectModels.ProjectJson

Manipulate a project.json file.
Afficher le fichier Open project: ufcpp/UfcppSample Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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
Résultat void

GenerateWrapJson() public static méthode

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
Résultat void

ProjectJson() public méthode

public ProjectJson ( string confitPath ) : Newtonsoft.Json
confitPath string
Résultat Newtonsoft.Json