■
Note
When you manually specify the
[AssemblyKeyFile]
attribute, Visual Studio 2008 will generate a warn-
ing informing you to make use of the /keyfile option of
csc.exe
or establish the key file via the Visual Studio 2008
Properties window. You’ll use the IDE to do so in just a moment (so feel free to ignore the generated warning).
Given that the version of a shared assembly is one aspect of a strong name, selecting a version
number for CarLibrary.dll is a necessary detail. In the AssemblyInfo.cs file, you will find another
attribute named [AssemblyVersion]. Initially the value is set to 1.0.0.0:
[assembly: AssemblyVersion("1.0.0.0")]
A .NET version number is composed of the four parts (<major>.<minor>.<build>.<revision>).
While specifying a version number is entirely up to you, you can instruct Visual Studio 2008 to auto-
matically increment the build and revision numbers as part of each compilation using the wildcard
token, rather than with a specific build and revision value. We have no need to do so for this exam-
ple; however, consider the following:
Do'stlaringiz bilan baham: |