Common Files in Visual Studio Solution

前端 未结 2 1305
梦如初夏
梦如初夏 2021-02-15 09:59

Many times I have seen Visual Studio solutions which have multiple projects that share source files. These common source files are usually out in a common directory and in the

2条回答
  •  天涯浪人
    2021-02-15 10:23

    Thanks @aku!

    I knew this could be done, but I didn't know how to do this from Visual Studio. It shows up as a shortcut to the file and the csproj file generates the resulting XML like this:

    
      CommonAssemblyInfo.cs
    
    

    I've seen this technique commonly used for common AssemblyInfo files to keep a consistent version.

提交回复
热议问题