title: how to create a .net core class library
body: <p>I am new to .net core.
  I need some help to configure my project.json file to create a class library with .net core. I actually read a lot of documents, but I am lost since there is an overwhelming amount of things to read.
  I know that I have to use the NETStandardLibray (<a href="https://github.com/dotnet/corefx/blob/master/Documentation/architecture/net-platform-standard.md" rel="nofollow">https://github.com/dotnet/corefx/blob/master/Documentation/architecture/net-platform-standard.md</a>), but I don't know how to put this in my config.json file.</p>
  
  <p>Here is my config.json file:</p>
  
  <pre><code>{
    "version": "1.0.0-*",
    "buildOptions": {
      "emitEntryPoint": true
    },
    "dependencies": {
      "Microsoft.NETCore.App": {
        "type": "platform",
        "version": "1.0.0-rc2-3002702"
      },
      "xunit": "2.1.0",
      "dotnet-test-xunit": "1.0.0-rc2-build10025"
    },
    "frameworks": {
      "netcoreapp1.0": {
        "imports": [
          "dnxcore50",
          "portable-net45+win8"
        ]
      }
    },
    "testRunner": "xunit"
  }
  </code></pre>
  
  <p>I want to build a simple class library to be reused in another projects, and I also want it to have unit tests.</p>
  
  <p>My main difficulty here is about the <a href="https://github.com/dotnet/corefx/blob/master/Documentation/architecture/net-platform-standard.md#deprecated-monikers" rel="nofollow">monikers</a>. They are such a mess. I just want to build a class library that can be used in any platform, but it looks like that I have to choose the platform in my project.json anyways. In the list of deprecated monikers I don't know what moniker I should use. In order to use the NET Standard Library, should I target the platform .NET Standard Application 1.5 that has the nuget identifier netcoreapp1.0, or should I use the platform .NET Platform 5.0 that has the nuget identifier netstandard1.3??? What is the correct platform? Wasn't NETStandard Library supposed to be platform agnostic? And should I put those identifiers in the dependencies or in the frameworks section of my project.json? And whats the difference of those two section at all? I'm totally lost :(</p>