Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

Commit

Permalink
Added summary and Copyright to project.json
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfowl committed Mar 19, 2015
1 parent d706aee commit cdad86f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ private static void InitializeBuilder(Runtime.Project project, PackageBuilder bu
builder.Id = project.Name;
builder.Version = project.Version;
builder.Title = project.Title;
builder.Summary = project.Summary;
builder.Copyright = project.Copyright;
builder.RequireLicenseAcceptance = project.RequireLicenseAcceptance;
builder.Tags.AddRange(project.Tags);

Expand Down
6 changes: 6 additions & 0 deletions src/Microsoft.Framework.Runtime/Project.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ public string ProjectDirectory

public string Description { get; private set; }

public string Copyright { get; set; }

public string Summary { get; set; }

public string[] Authors { get; private set; }

public string[] Owners { get; private set; }
Expand Down Expand Up @@ -185,6 +189,8 @@ internal static Project GetProjectFromStream(Stream stream, string projectName,
}

project.Description = rawProject.GetValue<string>("description");
project.Summary = rawProject.GetValue<string>("summary");
project.Copyright = rawProject.GetValue<string>("copyright");
project.Title = rawProject.GetValue<string>("title");
project.Authors = authors == null ? new string[] { } : authors.ValueAsArray<string>();
project.Owners = owners == null ? new string[] { } : owners.ValueAsArray<string>();
Expand Down

0 comments on commit cdad86f

Please sign in to comment.