How important is the global.json and src folder?

前端 未结 3 2066
被撕碎了的回忆
被撕碎了的回忆 2021-02-19 10:10

In VS 2015, when you create a new MVC 6.0 application using this approach:

File-->New-->Project-->ASP.NET Web Application-->ASP.NET 5 Preview Templat         


        
3条回答
  •  南方客
    南方客 (楼主)
    2021-02-19 10:35

    The src, test, etc. folders allow you to group projects by type. This helps keep the solution maintainable when there are a large number of projects. Here is an example of various project types that have been proposed.

    Per the ASP.NET Core Engineering Guidelines: "By default project-to-project references must be sibling folders. Using a global.json file allows a solution to specify non-standard locations to locate references."

    To sum it up, if have lots of projects, you can group them by type into folders and use global.json to allow projects in one group to reference those in another.

提交回复
热议问题