For anyone who has been following along and trying to get familiar with the new structure of ASP.NET 5 there are may changes to be aware of. Taking a look at an new empty ASP.NET 5 project shows us some interesting new items in our folder structure as well as some that are familiar from the past with some new uses.
As you can see from the image we have two folders in the solution. The first one at the top is called Solution Items, the second is called src. Most people who have looked at projects on Github or CodePlex will be familiar with this style of layout for most projects found in those sites.
As we can see in the image to the left we have global.json placed in the Solution Items folder. This file contains the following:
"projects": [ "src", "test" ],
As we can see from the file listing we have a “projects”: item which specifies paths to where the compiler will find the projects source code. Which contains two values: “src” and “test”. “src” is the other folder that we have in our solution structure, but we do not currently have a “test” folder. At this time the empty project structure is assuming that there will be some test projects added which would be found in a “test” folder under our solution. This is also the place that we could add other src projects that we may want to use that are outside of our current project. In a later post I will try to explain how this could be used during debugging.
The “sdk” item in the file specifies the version of DNX(.Net Execution Environment that Visual Studio will use when opening the solution. It is placed here so that when we have multiple projects we can avoid a scenario where there could be different versions specified for different projects.
In part 2 of our series I will explain the use of the project.json file