#.NET CORE Basics-project.json in MVC

The project.json file is the place where you add the dependencies with respect to your project. By default .NET Core loads only the necessary dependency/dnx, its quite different from the way the previous version of .NET(loads all dependency irrespective of usages).

Structure of project.json :


Dependencies :

By default .NET Core loads only required dependencies in the project,to add reference or dependencies to project this is the place where you declare the references . It generally contains the dependency name and version.The packages are pulled automatically as Nuget Packages.

Frameworks :

Specify the version of .NET being used,for instance .NET Core /.NET 4 etc..


PublishOptions :

This region will let you define what to include/exclude the items that are being published with IIS server.


Scripts :

This region specifies the build automation for scripts(like installing gulp,trunk etc..).All the commands defined in the scripts will be executed before the site get published in the server(prepublish).For instance “bower install” refers to install bower before publishing the package.






Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s