<?xml version="1.0" encoding="utf-8"?> <packages> <package id="Newtonsoft.Json" version="8.0.3" targetFramework="net451" /> <package id="SomeCoolPackage" version="3.0.1" targetFramework="net451" /> </packages>
轉換以後json
{ "dependencies": { "SomeCoolPackage": "3.0.1", "Newtonsoft.Json": "8.0.3" }, "frameworks": { "net45": { } }, "runtimes": { "win": { } } }
{ "dependencies": { "SomeCoolPackage": "3.0.1", "Newtonsoft.Json": "8.0.3" }, "frameworks": { "net45": { "frameworkAssemblies": { "System.Runtime.Serialization": "4.0.0.0", } } }, "runtimes": { "win": { } } }