Visual Studio 为编译的DLL自动生成一个版本号...
Visual Studio 为编译的DLL自动生成一个版本号, 但这个版本号给我带来一些麻烦, 如果我重新编译了一个DLL后, 再编译引用这个DLL的其他DLL就会出现一个错误: 好象是某个版本的DLL没有拷贝什么的. 在我使用的混淆器后, 就会出现无法装入类型的错误信息.
请问:
1. 我可不可以禁止这个功能.
2. 如果禁止, 会对我的程序产生什么影响. 会不会留下隐患?
3. 各位有什么好的方法: 对一个项目中大量的DLL被编译, 保证它们版本的一致.
谢谢
问题点数:100、回复次数:8Top
1 楼saucer(思归)回复于 2003-05-03 01:24:05 得分 60
open AssemblyInfo.cs, change
[assembly: AssemblyVersion("1.0.*")]
to some 4 nubmers separated by ".", instead of "*"Top
2 楼saucer(思归)回复于 2003-05-03 01:26:04 得分 0
2. you may break some clients if you change your dll
3. add proper references to the appropriate projects (dlls), so vs.net will build the projects in the dependency orderTop
3 楼qinglinmeng(Kevin Meng)回复于 2003-05-03 01:41:45 得分 0
thanks, saucer.
1. ok. prety easy. i like it.
2. under what circustance, will i break some clients?
3. I am not sure how to do that. when i compile a referred DLL, do I have to re-refer it in all the clients and compile them as well? Or I just compile the one at the highest level?
4. To build a program with many DLLs. How to you organize all C# projects? do you put them into a workspace or put them seperatedly?
Top
4 楼lin9703(LOVE[C#])回复于 2003-05-03 08:57:25 得分 0
跟上Top
5 楼kaneboy(.Net)回复于 2003-05-03 10:04:46 得分 20
Jeffrey说VS.NET自动生成的AssemblyInfo.cs中把AssemblyVersion属性设置为1.0.*是一个错误。Top
6 楼qinglinmeng(Kevin Meng)回复于 2003-05-14 05:50:56 得分 0
Jeffrey说VS.NET自动生成的AssemblyInfo.cs中把AssemblyVersion属性设置为1.0.*是一个错误。
------------------------------------------------
谢谢, 为什么说是一个错误呢?Top
7 楼xiechen2000(加仑)回复于 2003-05-14 08:51:15 得分 0
gzTop
8 楼fa2002(风翔万里)回复于 2003-05-14 09:00:42 得分 20
不要去管它,把那个星改成你想要的数字就可以了。比如:1.0.1、1.0.2等。Top




