Add FrameworkData to ProjectReferenceDescription
This commit is contained in:
parent
9c7ec89392
commit
8058b42e9b
1 changed files with 4 additions and 0 deletions
|
@ -1,12 +1,15 @@
|
||||||
// Copyright (c) .NET Foundation and contributors. All rights reserved.
|
// Copyright (c) .NET Foundation and contributors. All rights reserved.
|
||||||
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||||
|
|
||||||
|
using NuGet.Frameworks;
|
||||||
|
|
||||||
namespace Microsoft.DotNet.ProjectModel.Server.Models
|
namespace Microsoft.DotNet.ProjectModel.Server.Models
|
||||||
{
|
{
|
||||||
internal class ProjectReferenceDescription
|
internal class ProjectReferenceDescription
|
||||||
{
|
{
|
||||||
private ProjectReferenceDescription() { }
|
private ProjectReferenceDescription() { }
|
||||||
|
|
||||||
|
public FrameworkData Framework { get; set; }
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
public string Path { get; set; }
|
public string Path { get; set; }
|
||||||
public string WrappedProjectPath { get; set; }
|
public string WrappedProjectPath { get; set; }
|
||||||
|
@ -42,6 +45,7 @@ namespace Microsoft.DotNet.ProjectModel.Server.Models
|
||||||
|
|
||||||
return new ProjectReferenceDescription
|
return new ProjectReferenceDescription
|
||||||
{
|
{
|
||||||
|
Framework = description.Framework.ToPayload(),
|
||||||
Name = description.Identity.Name,
|
Name = description.Identity.Name,
|
||||||
Path = description.Path,
|
Path = description.Path,
|
||||||
WrappedProjectPath = wrappedProjectPath,
|
WrappedProjectPath = wrappedProjectPath,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue