From a6149e5698bd6661962f25cf92d5178d5612a9f7 Mon Sep 17 00:00:00 2001 From: Friedrich von Never Date: Sat, 24 Sep 2016 14:22:48 +0700 Subject: [PATCH] #61: initial support of .NET Core build system --- Readme.md | 12 ++++++ src/JabberNet.Netlib.Dns/project.json | 9 ++++ src/JabberNet.Netlib.Dns/project.lock.json | 14 ++++++ src/JabberNet/project.json | 20 +++++++++ src/JabberNet/project.lock.json | 50 ++++++++++++++++++++++ 5 files changed, 105 insertions(+) create mode 100644 src/JabberNet.Netlib.Dns/project.json create mode 100644 src/JabberNet.Netlib.Dns/project.lock.json create mode 100644 src/JabberNet/project.json create mode 100644 src/JabberNet/project.lock.json diff --git a/Readme.md b/Readme.md index d8f3013..dcda960 100644 --- a/Readme.md +++ b/Readme.md @@ -43,6 +43,17 @@ $ xbuild /p:Configuration=Debug jabber-net.sln $ mono ./packages/NUnit.ConsoleRunner.3.4.1/tools/nunit3-console.exe ./test/bin5/Debug/test.dll ``` +.NET Core +--------- + +There's an alpha-level support for [.NET Core][dotnet-core] build system in the +project. To build the project using `dotnet`, invoke the following command: + +```console +$ dotnet restore +$ dotnet build **/project.json +``` + Documentation ------------- @@ -80,6 +91,7 @@ consult [Licensing.md][] for details on licensing of internal components. [Licensing.md]: ./Licensing.md [appveyor]: https://ci.appveyor.com/project/ForNeVeR/jabber-net/branch/develop +[dotnet-core]: https://docs.microsoft.com/dotnet/ [nuget]: https://www.nuget.org/packages/jabber-net/ [paket]: https://fsprojects.github.io/Paket/index.html [travis]: https://travis-ci.org/ForNeVeR/jabber-net diff --git a/src/JabberNet.Netlib.Dns/project.json b/src/JabberNet.Netlib.Dns/project.json new file mode 100644 index 0000000..3c0896d --- /dev/null +++ b/src/JabberNet.Netlib.Dns/project.json @@ -0,0 +1,9 @@ +{ + "version": "2.1.2-*", + "buildOptions": { + "debugType": "portable" + }, + "frameworks": { + "net45": {} + } +} diff --git a/src/JabberNet.Netlib.Dns/project.lock.json b/src/JabberNet.Netlib.Dns/project.lock.json new file mode 100644 index 0000000..13e443e --- /dev/null +++ b/src/JabberNet.Netlib.Dns/project.lock.json @@ -0,0 +1,14 @@ +{ + "locked": false, + "version": 2, + "targets": { + ".NETFramework,Version=v4.5": {} + }, + "libraries": {}, + "projectFileDependencyGroups": { + "": [], + ".NETFramework,Version=v4.5": [] + }, + "tools": {}, + "projectFileToolGroups": {} +} \ No newline at end of file diff --git a/src/JabberNet/project.json b/src/JabberNet/project.json new file mode 100644 index 0000000..b548a9b --- /dev/null +++ b/src/JabberNet/project.json @@ -0,0 +1,20 @@ +{ + "version": "2.1.2-*", + "buildOptions": { + "allowUnsafe": true, + "debugType": "portable" + }, + "dependencies": { + "zlib.net": "1.0.4", + "JabberNet.Netlib.Dns": "*" + }, + "frameworks": { + "net45": { + "frameworkAssemblies": { + "System.Drawing": "4.0.0.0", + "System.Security": "4.0.0.0", + "System.Xml": "4.0.0.0" + } + } + } +} diff --git a/src/JabberNet/project.lock.json b/src/JabberNet/project.lock.json new file mode 100644 index 0000000..00e6715 --- /dev/null +++ b/src/JabberNet/project.lock.json @@ -0,0 +1,50 @@ +{ + "locked": false, + "version": 2, + "targets": { + ".NETFramework,Version=v4.5": { + "zlib.net/1.0.4": { + "type": "package", + "compile": { + "lib/zlib.net.dll": {} + }, + "runtime": { + "lib/zlib.net.dll": {} + } + }, + "JabberNet.Netlib.Dns/2.1.2": { + "type": "project", + "framework": ".NETFramework,Version=v4.5" + } + } + }, + "libraries": { + "zlib.net/1.0.4": { + "sha512": "ywKkVY1y20tGQsUnYgKupYm91L8GVrVgoEOFTjfR1Bb5Xiy5tBJu5SV9liIiW2h8/KQUBefE45vSythtNMmahQ==", + "type": "package", + "path": "zlib.net/1.0.4", + "files": [ + "lib/zlib.net.dll", + "zlib.net.1.0.4.nupkg.sha512", + "zlib.net.nuspec" + ] + }, + "JabberNet.Netlib.Dns/2.1.2": { + "type": "project", + "path": "../JabberNet.Netlib.Dns/project.json" + } + }, + "projectFileDependencyGroups": { + "": [ + "JabberNet.Netlib.Dns", + "zlib.net >= 1.0.4" + ], + ".NETFramework,Version=v4.5": [ + "System.Drawing >= 4.0.0", + "System.Security >= 4.0.0", + "System.Xml >= 4.0.0" + ] + }, + "tools": {}, + "projectFileToolGroups": {} +} \ No newline at end of file