vcproj:如何将调试设置保存到便携式vcproject中? [英] vcproj: How to save debugging settings into portable vcproject?

查看:115
本文介绍了vcproj:如何将调试设置保存到便携式vcproject中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够在项目配置中使用自定义调试设置将vcproj文件分发给客户.
似乎,每当我在项目的属性"对话框中设置字段时,所做的更改都会保存到一些新的不可移植的文件中".user"文件,而不是在".vcproj"文件中.
例如,如果我这样做:

  1. 打开MyProject.vcproj
  2. 转到:项目>属性>配置属性>调试
  3. 填写命令"和命令参数"领域
  4. 保存MyProject.vcproj

然后,我的更改不会反映在MyProject.vcproj中,而是反映在名为MyProject.vcproj.$ HOSTNAME.$ USER.user

的一些新文件中.有没有办法将这些更改保留在MyProject.vcproj中,以便可以在其他计算机上使用.

谢谢,
-Stu


解决方案

一种可能性是创建宏或加载项或任何可用于设置诸如此类的选项的宏.显然,这是更多的工作,但也很灵活.


I want to be able to distribute vcproj files to customers with custom debug settings in the project configuration.
It seems that whenever I set the fields in the project's Properties dialog, the changes are saved into some new non-portable ".user" file, and not in the ".vcproj".
For example, if I do:

  1. Open MyProject.vcproj
  2. Go to: Project > Properties > Configuration Properties > Debugging
  3. Fill out the "Command" and "Command Arguments" fields
  4. Save MyProject.vcproj

then my changes aren't reflected in MyProject.vcproj, but in some new file called MyProject.vcproj.$HOSTNAME.$USER.user

Is there a way to keep these changes in MyProject.vcproj so that they may be used on other machines.

Thanks,
- Stu



解决方案

One possibility is to create a macro or add-in or whatever that can be used to set options such as that. Obviously that is more work but it is obvioulsy more flexible also.


这篇关于vcproj:如何将调试设置保存到便携式vcproject中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆