From 7dca74c15f13ca7292584a11002a231b875511e0 Mon Sep 17 00:00:00 2001 From: Doug Date: Thu, 9 Jul 2015 13:48:03 -0400 Subject: [PATCH] Don't create invalid JSON [Comments are not allowed in JSON](https://stackoverflow.com/questions/244777/can-i-comment-a-json-file). The project.json file originally described causes errors when using dnx on the command line. --- aspnet/tutorials/your-first-aspnet-application.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/aspnet/tutorials/your-first-aspnet-application.rst b/aspnet/tutorials/your-first-aspnet-application.rst index 9ae704c6e7..54730d70a1 100644 --- a/aspnet/tutorials/your-first-aspnet-application.rst +++ b/aspnet/tutorials/your-first-aspnet-application.rst @@ -93,13 +93,12 @@ Now we need to update the View to give it a strongly-typed model and display the :emphasize-lines: 1,7-8 :lines: 1-8 -Now we can build the solution. Since the default web template targets both the full .NET and .NET Core, we expect the build to fail when it tries to access the Environment.MachineName and Environment.OSVersion variables in HomeController. This behavior won't work in .NET Core (currently), so we can comment it out. Open project.json and modify the "frameworks" key as shown: +Now we can build the solution. Since the default web template targets both the full .NET and .NET Core, we expect the build to fail when it tries to access the Environment.MachineName and Environment.OSVersion variables in HomeController. This behavior won't work in .NET Core (currently), so we can remove it. Open project.json and modify the "frameworks" key as shown: .. code-block:: javascript "frameworks": { - "dnx451": { }/*, - "dnxcore50": { }*/ + "dnx451": { } }, Now we should be able to build and run the solution. Navigate to the About page and you should see your server name and OS version displayed.