C# 使用 VC++2010 属性表
我们将软件的版本号存储在 vc++2010 属性表中。我有 2 个 C# 项目需要访问这些数字。有没有办法合理地做到这一点?
谢谢!
We store version numbers for our software in a vc++2010 property sheet. I have 2 C# projects that need to access these numbers. Is there a way to reasonably do this?
thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
以下是一些供您参考的信息:-
我通常将属性表保存在解决方案的根目录中(即 SVN 存储库中的 trunk/ 目录):
有时我有按主题划分的属性表数量,例如 boost-svn .vsprops、
xercexs-2.8.vsprops
等,并根据我的项目需要将它们组合在一起。您不需要编辑每个项目,但确实需要向解决方案中的每个项目添加特定的属性表。
在 Visual Studio 2010 中
工具 ->选项
已替换为 Microsoft.Cpp.Win32.user< /a> 这是机器范围设置应该存放的文件。因此,在您的情况下,我会将 SMS SDK 设置放入开发人员计算机上的 Microsoft.Cpp.Win32.user 文件中。它还使开发人员能够灵活地将 SDK 安装在其计算机上的不同位置(即驱动器),并使您的解决方案/项目免于维护特定于环境的设置。Below are some of the information for your reference:-
I usually keep Property Sheets in root directory of solution (i.e. trunk/ directory in SVN repository):
Sometimes I have number of Property Sheets divided by subject, for instance
boost-svn.vsprops
,xercexs-2.8.vsprops
, etc. and combine them together according to what I need for a project.You do not need to edit every project, but you do need to add particular Property Sheet to every project in solution.
In Visual Studio 2010
Tools -> Options
have been replaced with Microsoft.Cpp.Win32.user and this is the file where machine-wide settings should go. So, in your case I would put the SMS SDK settings to Microsoft.Cpp.Win32.user file on ever developer's machine. It would also give developers flexibility to install the SDK in different location (i.e. drive) on their machine and also free your solution/projects from maintaining environment-specific settings.