VS2010 中的.vcxproj/.vcxproj.user等

VS2010 中的.vcxproj/.vcxproj.user等


from: http://www.cnblogs.com/Spray/archive/2012/02/06/2340327.html

一个VS2010的工程中,所有的参数都是保存在.sln/.vcxproj/.vcxproj.user 三个文件中的。

今天我试图修改一个debug参数,其中某一个参数读取的是默认值,也就是$(projectdir), 而我需要将它改成$(projectdir)\..\..\这个目录,于是我就动手改。然后保存,奇怪,我本以为会提示我某些文件需要checkout (比如sln或者vcxproj的)结果居然没有。那我改了该怎么上传呢?

同事提醒我,有的信息是保存在vcxproj.user中的,这个是本地设定,一般p4上是不管理的。我去查了下, 果然,所有debug的设定,都是被保存在vcxproj.user中的, 那怎么办呢?我又不能上传.user。那怎么办呢?浮现在我脑海的有三个问题。

1: 默认值为什么会是$(projectdir),从哪里读取的呢?我能改默认值吗?比如将默认值改成$(projectdir)\..\..\ 这样就不用去改工程设定了。

2 :这个$(projectdir)本身能改吗? 我直接把他改成我要的路径行吗?

3 :能让VS将这个改动的信息保存在.vcxproj而不是.user中吗?

查了个半天,结果上面三个都得出了否定的答案

1:所有的默认值都是从c:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\ 这个路径下的文件中读取的能改他,但是同样,不能上传。

2:$(projectdir)这个值是不能改的,他表示整个工程的根目录

3:没找到方法

最后,只有用了一个比较原始的办法, 就是在VS2010的ide中把值改了,然后把.vcxproj.user中相关的改动信息,拷贝的.vcxproj中的相应位置,然后上传了.vcxproj。 不知道这个方法有没什么问题。不过即使没问题,也不是最优雅的做法? 怎么做更好呢?

需要你重新分析VeraCrypt_1.25.9版本代码文件 https://github.com/veracrypt/VeraCrypt/tree/VeraCrypt_1.25.9 https://veracrypt.jp/zh-cn/Documentation.html 以下为原代码文件地址链接,需要你自行分析: https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Boot/Windows/BootCrt.asm https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Boot/Windows/BootSector.asm https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Boot/Windows/Decompressor.c https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Boot/Windows/BootConfig.cpp https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Boot/Windows/BootCommon.h https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Boot/Windows/BootConsoleIo.cpp https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Boot/Windows/BootConsoleIo.h https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Boot/Windows/BootDebug.cpp https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Boot/Windows/BootDefs.h https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Boot/Windows/BootDiskIo.cpp https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Boot/Windows/BootDiskIo.h https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Boot/Windows/BootEncryptedIo.cpp https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Boot/Windows/BootMain.cpp https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Boot/Windows/BootMain.h https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Boot/Windows/BootMemory.cpp https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Boot/Windows/BootMemory.h https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Boot/Windows/IntFilter.cpp https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Boot/Windows/BootStrings.h https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Boot/Windows/Platform.cpp https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Boot/Windows/Platform.h https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Boot/Windows/Makefile https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Setup/Dir.c https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Setup/Dir.h https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Setup/SelfExtract.c https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Setup/Setup.c https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Setup/Setup.h https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Setup/Wizard.c https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Setup/ComSetup.cpp https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Setup/Portable.rc https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Setup/Setup.rc https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Setup/Setup.vcproj https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Setup/Setup.vcxproj https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Setup/Setup.manifest https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Setup/Portable.manifest https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Driver/DriveFilter.c https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Driver/DriveFilter.h https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Driver/Driver.rc https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Driver/Driver.vcproj https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Driver/Driver.vcxproj https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Driver/Driver.vcxproj.filters https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Driver/Driver.vcxproj.user https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Driver/DumpFilter.c https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Driver/DumpFilter.h https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Driver/EncryptedIoQueue.c https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Driver/EncryptedIoQueue.h https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Driver/Makefile https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Driver/Ntdriver.c https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Driver/Ntdriver.h https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Driver/Ntvol.c https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Driver/Ntvol.h https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Driver/Resource.h https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Driver/Sources https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Driver/veracrypt_vs2019.vcxproj https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Driver/veracrypt_vs2019.vcxproj.filters https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Driver/VolumeFilter.c https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/tags/VeraCrypt_1.25.9/src/Driver/VolumeFilter.h
最新发布
08-29
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值