Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
最近我发现了如何在 Visual Studio 中添加指向项目的链接,以便您可以在项目之间引用公共或共享文件。编辑原始文件会将更改传播到引用文件的项目。但是您也可以编辑引用项,并且更改会反映在原始文件中,有没有办法防止这种行为?
参考项目是原始文件。 如果您不想更改“原始文件”,请复制文件而不是引用它。
此外,人们喜欢编辑文件。 如果不应该编辑某些代码,请将其设为二进制文件。