12

How do I create a class library targeting .Net Core in visual studio 2015?
I found this getting started “guide”, which shows how to create a new .Net Core project using the dotnet command line tool.
Do I need to create somehow a VS project manual based on the generated files (project.json…)?
Is there a way to create a .Net Core DLL inside of VS without using the “dotnet” tool?

musium
  • 2,942
  • 3
  • 34
  • 67
  • 10
    If you're using the `dotnet` command line tool, you're ahead of the release candidates... I don't know whether there's VS support for that. Within the RC1 "dnx" world you can definitely use the VS plugin for ASP.NET vnext to create a class library package. Do you have that installed? (In New Project / Templates / Visual C# / Web, is there a "Class Library (Package)" option? – Jon Skeet Mar 14 '16 at 09:32
  • 1
    Nice! Yes I’ve installed that.. and creating a project worked. Thank you! – musium Mar 14 '16 at 09:44

1 Answers1

11

For .net Core RC 2 if you have installed the tools then you can simply go: File -> Visual C# -> New project -> .Net Core using visual studio. I am currently working on a guide to get started with these kind of projects here if you want so see

enter image description here

Luis Palacios
  • 754
  • 13
  • 35
  • Can you please this link (http://stackoverflow.com/questions/40004339/net-standard-vs-net-core-app-when-creating-net-core-project-using-console-or) , when you create a class library it doesn't reference .NET Core – Hussein Salman Oct 12 '16 at 19:23
  • I've gave you an answer, i hope it's helpful to you – Luis Palacios Oct 12 '16 at 20:53