I am using prerelase version of .net core (build 1.0.0-preview3-004031). There is no project.json files and they replaced with csproj.
I can't find any sample describing how to add dependency to csproj for .net core.
One method of adding references to your library is by typing it directly in the project. json file. As you can see that we have added some references under the dependencies section as shown in the following code. Let us now save this file and you will see that references are added to your library now.
csproj file tells dotnet how to build the ASP.NET application. It's one of the most important files in an ASP.NET project. An ASP.NET project can depend on third-party libraries developed by other developers. Usually, these libraries are installed as Nuget packages using Nuget package manager.
You can find a few information about the .net core csproj
in the .NET Blog.
There you'll find a csproj
sample and also how to migrate from project.json
to csproj
. There's also a link to project.json to csproj mapping by scenario.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With