由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - visual c++ project property设置问题
相关主题
VC# com 调用 matlab 报错Software Configuration Management (转载)
visaul studio 2008运行程序的参数在哪里写啊?急问:VS2008里如何调用DLL
cvs configurationA C++ puzzle for me
受不了拉 - 技术发展太快!!! 学啥才不过时? (转载)小白一问:vista下面用什么C编译器?
弱弱地问,VS 2005和.NET、C#有啥关系?怪事!VS2003遇到manifest问题。
Beginnig visual C++ 2005后看什么?哪里能看一下fedora glibc 的 make configuration (转载)
Visual C++ 如何高亮显示 括号匹配?想问个EXCEL 的问题
C++: operator new 为啥要是 static的, 不是有啥影响?vs2008下c++的go to definiton 直接跳到了declaration. 怎么解决?
相关话题的讨论汇总
话题: property话题: project话题: user话题: 设置
进入Programming版参与讨论
1 (共1页)
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
9
多谢!链接内容很不错
发现vs2010已经解决这个问题了:.user文件不再跟机器用户名相关,而是直接叫做XXX
.vcxproj.user了,这样随便换机器和用户都不会有问题了。

【在 a****j 的大作中提到】
: 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

1 (共1页)
进入Programming版参与讨论
相关主题
vs2008下c++的go to definiton 直接跳到了declaration. 怎么解决?弱弱地问,VS 2005和.NET、C#有啥关系?
7年C的经验想转去C++开发难不难?Beginnig visual C++ 2005后看什么?
真是奇了怪了,VC编译器问题?Visual C++ 如何高亮显示 括号匹配?
请教:visual studio 2008 call matlab 2008 dll问题C++: operator new 为啥要是 static的, 不是有啥影响?
VC# com 调用 matlab 报错Software Configuration Management (转载)
visaul studio 2008运行程序的参数在哪里写啊?急问:VS2008里如何调用DLL
cvs configurationA C++ puzzle for me
受不了拉 - 技术发展太快!!! 学啥才不过时? (转载)小白一问:vista下面用什么C编译器?
相关话题的讨论汇总
话题: property话题: project话题: user话题: 设置