p*****e 发帖数: 310 | 1 我在本机设置好调试目录、执行参数等等,发现这些信息是保存在.user文件里的。我换
一台机器把copy过来的项目打开,这些信息都需要重新设置,因为这时vc用的是另一个
.user文件。
如何设置可以确保这些设置可以在不同的机器、用户下相同?也就是设置成项目本身的
默认属性呢?我用的是vs2008 |
a**********s 发帖数: 588 | 2 You can just copy the user file. |
p*****e 发帖数: 310 | 3 VC打开项目的时候用到的user file是根据机器名称和用户名称定义的,我换一台机器
或者用另一个账号登陆都不能用我copy过去的user文件。
或者说如何能选择应用已经存在的user文件?
【在 a**********s 的大作中提到】 : You can just copy the user file.
|
a**********s 发帖数: 588 | 4 Then just rename it - it's not the right thing to do to share the user file
since it only saves user-specific settings. And this makes perfect sense
from OO's viewpoint
【在 p*****e 的大作中提到】 : VC打开项目的时候用到的user file是根据机器名称和用户名称定义的,我换一台机器 : 或者用另一个账号登陆都不能用我copy过去的user文件。 : 或者说如何能选择应用已经存在的user文件?
|
p*****e 发帖数: 310 | 5 其实我的目的是保存一个默认的项目设置,比如debug的时候默认是把($solutiondir)\
case作为working dir。现在每换个地方用VC都要重新设置一下,很不方便。
user文件里记录了生成它的机器名和用户名,直接rename不知道是否可行,我试试看吧
file
机器
【在 a**********s 的大作中提到】 : Then just rename it - it's not the right thing to do to share the user file : since it only saves user-specific settings. And this makes perfect sense : from OO's viewpoint
|
a****j 发帖数: 8 | 6 do you mean this one?
Solution Property Pages
\ Configuration Properties
\ General
\ Inheritied Project Property Sheets
)\
【在 p*****e 的大作中提到】 : 其实我的目的是保存一个默认的项目设置,比如debug的时候默认是把($solutiondir)\ : case作为working dir。现在每换个地方用VC都要重新设置一下,很不方便。 : user文件里记录了生成它的机器名和用户名,直接rename不知道是否可行,我试试看吧 : : file : 机器
|
p*****e 发帖数: 310 | 7
Solution Property Pages
\ Configuration Properties
\ Configuration
那个\ Inheritied Project Property Sheets找不到啊
olution Property Pages
solutiondir
看吧
【在 a****j 的大作中提到】 : do you mean this one? : Solution Property Pages : \ Configuration Properties : \ General : \ Inheritied Project Property Sheets : : )\
|
a****j 发帖数: 8 | 8 http://blog.csdn.net/starlee/archive/2007/09/03/1769755.aspx
http://blogs.msdn.com/vsproject/archive/2009/06/23/inherited-properties-and-property-sheets.aspx
【在 p*****e 的大作中提到】 : : Solution Property Pages : \ Configuration Properties : \ Configuration : 那个\ Inheritied Project Property Sheets找不到啊 : olution Property Pages : solutiondir : 看吧
|
p*****e 发帖数: 310 | |