Everything in the same project
- Build in intrinsic commands as part of dotnet
This commit is contained in:
parent
31c718d5d3
commit
dfc59eb20e
166 changed files with 156 additions and 827 deletions
|
@ -0,0 +1,22 @@
|
|||
// 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.
|
||||
|
||||
using Microsoft.DotNet.ProjectModel.Resolution;
|
||||
using NuGet.Frameworks;
|
||||
|
||||
namespace Microsoft.DotNet.ProjectModel.Server.Models
|
||||
{
|
||||
public static class NuGetFrameworkExtensions
|
||||
{
|
||||
public static FrameworkData ToPayload(this NuGetFramework framework)
|
||||
{
|
||||
return new FrameworkData
|
||||
{
|
||||
ShortName = framework.GetShortFolderName(),
|
||||
FrameworkName = framework.DotNetFrameworkName,
|
||||
FriendlyName = FrameworkReferenceResolver.Default.GetFriendlyFrameworkName(framework),
|
||||
RedistListPath = FrameworkReferenceResolver.Default.GetFrameworkRedistListPath(framework)
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue