{"id":208,"date":"2017-12-27T23:15:07","date_gmt":"2017-12-27T23:15:07","guid":{"rendered":"http:\/\/windows.emacslisp.com\/?p=208"},"modified":"2017-12-27T23:54:49","modified_gmt":"2017-12-27T23:54:49","slug":"net-core-create-project-and-adding-reference-by-command-line-only","status":"publish","type":"post","link":"http:\/\/windows.emacslisp.com\/index.php\/2017\/12\/27\/net-core-create-project-and-adding-reference-by-command-line-only\/","title":{"rendered":".net core &#8211; create project and adding reference by command line only"},"content":{"rendered":"<p>dotnet new sln    # new solution file<br \/>\nmkdir webapi<br \/>\ncd webapi<br \/>\ndotnet new webapi   # new project named webapi<br \/>\ndotnet add package Autofac   # try to add Autofac<br \/>\ndotnet add package Autofac.Extensions.DependencyInjection<br \/>\ndotnet add package MongoDB.Driver<\/p>\n<p>cd ..<br \/>\nmkdir webapi_test   <strong>###important: dont&#8217; name folder to be &#8216;xunit&#8217;, command has bugs for it<\/strong><br \/>\ndotnet new xunit<br \/>\ndotnet add reference ..\/webapi\/webapi.csproj<br \/>\ndotnet add package Microsoft.AspNetCore.Mvc<br \/>\ndotnet restore     # download all references<\/p>\n","protected":false},"excerpt":{"rendered":"<p>dotnet new sln # new solution file mkdir webapi cd webapi dotnet new webapi # new project named webapi dotnet add package Autofac # try to add Autofac dotnet add package Autofac.Extensions.DependencyInjection dotnet add package MongoDB.Driver cd .. mkdir webapi_test &hellip; <a href=\"http:\/\/windows.emacslisp.com\/index.php\/2017\/12\/27\/net-core-create-project-and-adding-reference-by-command-line-only\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"_links":{"self":[{"href":"http:\/\/windows.emacslisp.com\/index.php\/wp-json\/wp\/v2\/posts\/208"}],"collection":[{"href":"http:\/\/windows.emacslisp.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/windows.emacslisp.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/windows.emacslisp.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/windows.emacslisp.com\/index.php\/wp-json\/wp\/v2\/comments?post=208"}],"version-history":[{"count":2,"href":"http:\/\/windows.emacslisp.com\/index.php\/wp-json\/wp\/v2\/posts\/208\/revisions"}],"predecessor-version":[{"id":210,"href":"http:\/\/windows.emacslisp.com\/index.php\/wp-json\/wp\/v2\/posts\/208\/revisions\/210"}],"wp:attachment":[{"href":"http:\/\/windows.emacslisp.com\/index.php\/wp-json\/wp\/v2\/media?parent=208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/windows.emacslisp.com\/index.php\/wp-json\/wp\/v2\/categories?post=208"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/windows.emacslisp.com\/index.php\/wp-json\/wp\/v2\/tags?post=208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}