c# - How to scaffold a Class Library targeting .NET Core? -
i know using visual studio there template create class library targeting .net core, i'm looking way command line.
i know using dotnet new
can create new .net core project, console application has few more dependencies class library created visual studio. there command or way create class library project command line?
the writing libraries .net core article has lot of great detail non-visual studio specific.
there isn't way scaffold new class library via dotnet new
, can yourself. @ minimum, need folder project.json
file containing:
{ "dependencies": { "netstandard.library": "1.5.0-rc2-24027" }, "frameworks": { "netstandard1.3": { } }, "version": "1.0.0" }
when compile using dotnet build
, produce class library targeting .net platform standard 1.3.
it's understanding dotnet-cli tool updated include template eventually.
edit: @svick pointed out, yeoman generator asp.net core can this! can scaffold library yo aspnet classlibrary
in latest version.