Visual Studio: How to arrange the projects inside solution explorer by dependency

前端 未结 2 1836
甜味超标
甜味超标 2021-01-02 17:53

Is there any way to manually arrange the projects inside solution explorer of VS 2010+ based on the dependency (dependent project on higher level) ?

2条回答
  •  一生所求
    2021-01-02 18:43

    On top of using solution folders and solution folder prefixes, you can use prefixes on project folders too.

    The trick is to add the project with a normal name, then rename it "select it and press f2" in solution explorer.

    By renaming it after you've added it, you keep your assembly name/namespace the way it should be. Also renaming it after means your project folder name doesn't change with the prefix. So the below example, on disk, would be Thing.Core not 10_Thing.Core

    • 05_Thing.Database
    • 10_Thing.Core
    • 15_Thing.Api
    • 20_Thing.Api.Services
    • 25_Thing.Data
    • 30_Thing.Host
    • 90_Thing.Test

提交回复
热议问题