将文件以只读方式添加到项目中?
我有以下问题:我需要创建一个 VS 项目(数据库项目)并且我想让它可部署。为此,我需要向项目添加一个属于全局函数池的 SQL 函数。如果我现在部署该项目,我就拥有了所需的所有文件。
问题:我不希望任何人更改我的项目内部的全局函数,因此我想将其设置为只读(不是文件系统上的文件本身,无论如何它都会在 tfs 中签入),以便可以部署该文件,但没有人可以在项目内部更改它(至少不是偶然的)。
是否可以将只读文件添加到 VS2010 项目中?
I have the following problem: I need to create a VS project (database project) and I want to make it deployable. To do that I need to add a single SQL function, which belongs to a pool of global functions, to the project. If I now deploy the project, I have all the files that I need.
Problem: I don't want anyone to change the global function inside of my project, so I would like to set it to readonly (not the file itself on the filesystem, it's checked in tfs anyway), so that the file can be deployed, but no one can change it inside the project (at least not by accident).
Is it possible to add a file as read-only to a VS2010 project?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论