definitions。dll reside in the current directory)。
gacutil /I definitions。dll
gacutil /I implementations2。dll
Remember to add Definitions; because Implementations2 depends on Definitions。
Failing to add Definitions will generate gacutil errors。
ORGANIZING DYNAMIC CODE
If you are going to place files in the GAC; don’t use the techniques demonstrated in this book when doing a
production release。 The techniques discussed in this book are meant for developers; and only developers。 The
techniques are shortcuts that assume you know what the dependencies are and are aware of what you are
doing。 For distribution purposes; use the Microsoft Windows Installer application to install files into the GAC。
When writing dynamic code; the idea is to separate and pletely partmentalize the development
of the ponent and the caller of the ponent。 Thus; you should not develop both pieces in the same
project。 Create separate projects and have them working with test routines。 Then; at runtime; bine the
functionalities; and everything should work (that is; if you properly tested your code)。
Using Version Numbers
Version numbers are a way of being able to control the features and robustness of an applica
tion。 In the packaged software market; the concept of the version number has nearly disappeared。
For example; consider Microsoft’s operating system versions: Windows 95; Window 98;
Windows XP; Windows 2000; Windows Vista; and so on。
…………………………………………………………Page 356……………………………………………………………
334 CH AP T E R 1 2 ■ L E A R N I N G A B OU T A PP L I CA TI O N CO N F I G U R AT IO N AN D D Y N A M I C L O AD I N G
In open source software; version numbers are used extensively and are considered very
important。 Yes; the version numbers resemble a lottery ticket; but they do follow a convention。
Understanding the convention makes it easier to select open source packages。 And more
important; applying this versioning strategy makes it simpler to understand your assemblies。
Understanding Version Numbers
Let’s say you want to download the open source program Capivara (a Java file manager and
synchronization program)。 You see the version number 0。8。3。 The version number contains
three parts:
Major number: The major number is 0 in the example。 If the software has not reached the
number 1; the version is considered a beta。 But often; a beta identifier does not mean
the version is unusable。 Changing the major version number indicates a major change
of functionality。 This means what worked in version 1 may not work with version 2。 An
example is the Apache HTTPD server project; where the 1。x and 2。x series are two different
implementations。
Minor number: The minor number is 8 in the example。 It is used to define minor function
ality changes in a piece of software。 Changing the minor number (such as 7 to 8) indicates
new features; but old functionality is supported。 A change may include bug fixes or patches。
Patch number: The path number is 3 in the example。 It is used to define a patched version
of the software that has bug fixes or other changes。 The changes do not include features;
and the functionality does not change。
When you attempt to download an open source package; you are typically confronted with
multiple versions。 For example; you might see the version numbers 4。23 and 4。29 (beta)。 Because
most people want the latest and greatest; they might be tempted to download 4。29。 But remember
that open source projects make multiple versions available。 In the example; you should down
load version 4。23; because 4。29 is a beta that may or may not work。 Version 4。23 is considered
stable and therefore usable。
The open source munity will often use the following terminology when releasing
software。
o Stable: A version that can be used in a production environment and should not crash。
o Unstable: A version that should not be used in production。 It will probably work; but
have some crashes。
o Nightly: A version with all bets off; meaning that the version may or may not work。 The
reason for using a nightly build is to monitor progress and check specific issues。 Such a
version is not intended for consumer consumption; it is intended solely for developers。
o Alpha : A version that demonstrates the concepts that will make up a future version of the
software。 However; in alpha versions; what was available one day might be gone the
next day。
…………………………………………………………Page 357……………………………………………………………
CH AP T E R 1 2 ■ L E AR N IN G AB O U T AP P L I CAT I ON CO N F IG U R AT IO N A N D D Y N A M IC L O AD IN G 335
Versioning Assemblies
assembly version numbers are different from those used for open source packages。 The
following is an example of versioning an assembly。
The attributes AssemblyVersion and AssemblyFileVersion can be added anywhere in the
assembly or application。 In Visual Basic Express; most likely the attributes are added to the file
AssemblyInfo。vb。
The versions of the file have four significant parts。 From left to right; these are major
version; minor version; build number; and revision。 The build number can represent a daily
build nu
小说推荐
- oracle从入门到精通(PDF格式)
- -Page 1-Oracle 从入门到精通-Page 2-资源来自网络,仅供学习 Oracle 从入门到精通一、SQL 8
- 最新章:第37章
- C语言游戏编程从入门到精通(PDF格式)
- -Page 1-Page 2-Page 3-Page 4-Page 5-Page 6-Page 7-Page 8-Page 9-Page 10-Page 11-Page 12-Page 13-Page 14
- 最新章:第4章
- Java编程思想第4版[中文版](PDF格式)
- -Page 1-Page 2《Thinking In Java》中文版作者:Bruce Eckel主页:http/BruceEckel.编译:Trans Bot主页:http/memberease~transbot致谢-献给那些直到现在仍在孜孜不倦创造下一代计算机语言的人们!指导您利用万维网的语言进
- 最新章:第295章
- 深入浅出MFC第2版(PDF格式)
- -Page 1-Page 2-山高月小山高月小 水落石出水落石出山高月小山高月小 水落石出水落石出-Page 3-深入淺出MFC(第版 使用Visual C 5.0 MFC 4.2)Dissecting MFC(Second Edition Using Visual C 5.0 MFC 4.2)侯俊
- 最新章:第309章
- VC语言6.0程序设计从入门到精通
- -Page 1-Visual C 6.0 程序设计从入门到精通求是科技 王正军 编著
- 最新章:第136章
- SQL 21日自学通(V3.0)(PDF格式)
- -Page 1-SQL 21 日自学通(V1.0 翻译人 笨猪目录目录 1译者的话 14第一周概貌 16从这里开始 16
- 最新章:第170章
- 2008年青年文摘精编版
- 作者:中国青年出版社“初恋”的惩罚.作者:凡 凡 文章来源《真情》2005年第4期 点击数:6608 更新时间:2005-6-5过了年,我就十八岁了。离高考只剩下四个多月了。这一段,班里的男女生相互间递纸条、写情书、约会等地下活动慢慢的多了起来。我这个“尖子生”也突然感到了不安、慌乱,并且自责。不知
- 最新章:第230章
- JMS简明教程(PDF格式)
- -Page 1-JMS1.1规范中文版卫建军2007‐11‐22-Page 2
- 最新章:第28章
- SQL语言艺术(PDF格式)
- -Page 1-SQLSSQQLL语言艺术内容介绍本书分为12章,每一章包含许多原则或准则,并通过举例的方式对原则进行解释说明。这些例子大多来自于实际案例,对九种SQL经典查询场景以及其性能影响讨论,非常便于实践,为你数据库应用维护人员阅读。资深 SQL 专家 Stéphane Faroult倾力打
- 最新章:第27章