创建可以针对多个框架的 ASP.NET vNext NuGet

Creating ASP.NET vNext NuGet that can target multiple frameworks

我正在尝试创建一个适用于 ASP.NET vNext(桌面和 CoreCLR)以及 .NET Framework 4.5 的 NuGet 包。

我查看了 http://json.schemastore.org/project 的架构,但似乎没有关于 "frameworks" 可接受的指导。这是我现在的 project.json 但我不确定它是否正确。

"frameworks" 的可能值是多少?

"frameworks": {
        "aspnet50": {
            "frameworkAssemblies": {
                "System.Net.Http": "4.0.0.0",
                "System.Runtime.Serialization": "4.0.0.0",
                "System.Xml": "4.0.0.0",
                "System.Xml.Linq": "4.0.0.0"
            }
        },
        "aspnetcore50": {
            "dependencies": {
                "System.Runtime": "4.0.20-beta-22231",
                "System.Runtime.Serialization.Primitives": "4.0.0-beta-22231",
                "System.Xml.ReaderWriter": "4.0.10-beta-22231",
                "System.Xml.XDocument": "4.0.0-beta-22231",
                "System.Net.Http": "4.0.0-beta-22231",
                "System.Globalization": "4.0.10-beta-22231",
                "System.Diagnostics.Debug": "4.0.10-beta-22231",
                "System.Diagnostics.TraceSource": "4.0.0-beta-22231",
                "System.Collections": "4.0.10-beta-22231",
                "System.Linq": "4.0.0-beta-22231",
                "System.Linq.Parallel": "4.0.0-beta-22231",
                "System.Runtime.Extensions": "4.0.10-beta-22231",
                "System.IO.Compression": "4.0.0-beta-22231",
                "System.Reflection": "4.0.10-beta-22231",
                "System.IO.FileSystem": "4.0.0-beta-22231",
                "System.Threading.Thread": "4.0.0-beta-22231",
                "System.Threading": "4.0.0-beta-22231",
                "System.Reflection.Extensions": "4.0.0-beta-22231"
            }
        },
        "framework45": {
            "dependencies": {
                "Newtonsoft.Json": "6.0.4"
            }
        },
    }

以下是如何定位其他框架:https://github.com/aspnet/EntityFramework/blob/dev/src/EntityFramework.Core/project.json

对 .NET 4.5 使用 net45