“Add as Link” for folders in Visual Studio projects

前端 未结 6 698
终归单人心
终归单人心 2020-12-04 05:20

In Visual Studio, we can \"Add as link\" to add a link to a file in another project in the solution.

Is there any way to do this for entire folders, so that an entir

6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-04 06:06

    Regarding the part of the original query to have a linked folder appear in the IDE, it is kind of possible to achieve this so there is a folder in the solution explorer with all linked files inside, instead of all the files appearing in the root of the solution. To achieve this, include the addition:

      
        
          MyData\A\%(RecursiveDir)%(FileName)%(Extension)
        
      
    

    This will include all files from the linked directory in a new folder in the solution explorer called MyData. The 'A' in the code above can be called anything but must be there in order for the folder to appear.

提交回复
热议问题