AssemblyInfo est maintenant un addin Reflector
Je viens de découvrir ça via le blog de Lutz Roeder : l'outil AssemblyInfo de Kris Vandermotten est maintenant un addin pour Reflector.
Pour rappel cet outil en ligne de commande permet d'obtenir rapidement des informations sur un assembly. Exemple avec System.dll :
.\AssemblyInfo.exe "$Env:SystemRoot\Microsoft.net\Framework\v2.0.50727\System.dll"
AssemblyInfo (c) 2007, 2008 Kris Vandermotten
File:
Name: System.dll
Created: 24/10/2007 02:47:40
Modified: 24/10/2007 02:47:40
Length: 2,93 MB.
Version information:
Type: Library (DLL)
File Version: 2.0.50727.1433
Product Version: 2.0.50727.1433
Flags: None
Language: English (United States), Codepage 1200
CompanyName: Microsoft Corporation
FileDescription: .NET Framework
FileVersion: 2.0.50727.1433 (REDBITS.050727-1400)
InternalName: System.dll
LegalCopyright: c Microsoft Corporation. All rights reserved.
OriginalFilename: System.dll
ProductName: Microsoftr .NET Framework
ProductVersion: 2.0.50727.1433
Comments: Flavor=Retail
COFF Header:
Type: Library (DLL)
Memory: 32 bit
Target machine: I386
Timestamp: 24/10/2007 05:42:05
Characteristics: ExecutableImage, LineNumsStripped, LocalSymsStripped, Machine32Bit, Dll
PE Header:
Kind: 32 bit PE file
Linker Version: 8.0
Image Base Address: 0x7A440000
Section Alignment: 8192
File Alignment: 4096
OS Version: 4.0
Image Version: 0.0
Subsystem: WINDOWS_CUI
Subsystem Version: 4.0
Stack Reserve: 0x00100000
Stack Commit: 0x00001000
Heap Reserve: 0x00100000
Heap Commit: 0x00001000
Sections:
.text 2,66 MB (ContainsCode, MemExecutable, MemReadable)
.rsrc 268 KB (ContainsInitializedData, MemReadable)
.reloc 4 KB (ContainsInitializedData, MemDiscardable, MemReadable)
Native imports:
mscoree.dll
Assembly:
Name: System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Flags:
PublicKey: Yes
Retargetable: No
EnableJITcompileOptimizer: No
EnableJITcompileTracking: No
Hash Algorithm: SHA1
Processor: MSIL
Runtime Version: v2.0.50727
Entry Point: none
Referenced Assemblies:
mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
P/Invoke DllImports:
advapi32.dll
bcrypt.dll
crypt32.dll
gdi32.dll
httpapi.dll
icmp.dll
iphlpapi.dll
kernel32.dll
mscoree.dll
mswsock.dll
ntdll.dll
ole32.dll
perfcounter.dll
psapi.dll
rasapi32.dll
schannel.dll
secur32.dll
security.dll
shell32.dll
user32.dll
version.dll
winhttp.dll
wininet.dll
winmm.dll
ws2_32.dll
wtsapi32.dll
Manifest Resources:
System.resources (175,11 KB).
System.Diagnostics.EventLog.bmp (824 bytes).
System.Diagnostics.PerformanceCounter.bmp (824 bytes).
System.Diagnostics.Process.bmp (824 bytes).
System.IO.FileSystemWatcher.bmp (824 bytes).
System.Timers.Timer.bmp (824 bytes).
System.ComponentModel.BackgroundWorker.bmp (824 bytes).
System.IO.Ports.SerialPort.bmp (822 bytes).
Assembly Attributes:
[System.Reflection.AssemblyFileVersionAttribute("2.0.50727.1433")]
[System.Reflection.AssemblyProductAttribute("Microsoftr .NET Framework")]
[System.Reflection.AssemblyInformationalVersionAttribute("2.0.50727.1433")]
[System.Reflection.AssemblyCopyrightAttribute("c Microsoft Corporation. All rights reserved.")]
[System.Resources.SatelliteContractVersionAttribute("2.0.0.0")]
[System.Reflection.AssemblyDefaultAliasAttribute("System.dll")]
[System.Reflection.AssemblyDescriptionAttribute("System.dll")]
[System.Reflection.AssemblyTitleAttribute("System.dll")]
[System.Security.AllowPartiallyTrustedCallersAttribute()]
[System.CLSCompliantAttribute((Boolean)True)]
[System.Runtime.InteropServices.ComVisibleAttribute((Boolean)False)]
[System.Diagnostics.DebuggableAttribute((System.Diagnostics.DebuggableAttribute+DebuggingModes)2)]
[System.Runtime.CompilerServices.CompilationRelaxationsAttribute((Int32)8)]
[System.Reflection.AssemblyCompanyAttribute("Microsoft Corporation")]
[System.Runtime.CompilerServices.DefaultDependencyAttribute((System.Runtime.CompilerServices.LoadHint)1)]
[System.Runtime.CompilerServices.StringFreezingAttribute()]
[System.Runtime.CompilerServices.RuntimeCompatibilityAttribute(WrapNonExceptionThrows = True)]
[System.Runtime.InteropServices.ComCompatibleVersionAttribute((Int32)1, (Int32)0, (Int32)3300, (Int32)0)]
[System.Reflection.AssemblyKeyFileAttribute("f:\RedBits\Tools\devdiv\EcmaPublicKey.snk")]
[System.Reflection.AssemblyDelaySignAttribute((Boolean)True)]
[System.Resources.NeutralResourcesLanguageAttribute("en-US")]
Modules:
System.dll
PE Kind: ILOnly
Machine: I386
X509 Certificate: none
Module Attributes:
[System.Security.UnverifiableCodeAttribute()]
Pour utiliser l'addin, vous avez simplement à utiliser la manière habituelle directement sur AssemblyInfo.exe, ce qui aura pour effet de mettre à votre disposition un nouveau "language" :
Que vous n'aurez plus qu'à utiliser :
Kris Vandermotten : New Reflector add-in: AssemblyInfo
Ce post vous a plu ? Ajoutez le dans vos favoris pour ne pas perdre de temps à le retrouver le jour où vous en aurez besoin :