From 7f344b4cb10a30cb71667dc5bc71c614569e3b44 Mon Sep 17 00:00:00 2001 From: Fernando Garcia Date: Fri, 23 Aug 2019 18:15:38 +0200 Subject: [PATCH] Assemblies with strong naming. Update nuget package and README.md and CHANGELOG.md files --- CHANGELOG.md | 10 +++++--- README.md | 22 +++++++++++------ .../DMI.cs | 4 +-- .../Properties/AssemblyInfo.cs | 6 ++--- ...Tin.Core.Hardware.Specification.Dmi.csproj | 9 +++++++ .../key.snk | Bin 0 -> 596 bytes .../Properties/AssemblyInfo.cs | 12 ++++----- ...osType003 [System Enclosure or Chassis].cs | 2 +- .../SmbiosType004 [Processor Information].cs | 2 +- ...troller Information (Type 5, Obsolete)].cs | 2 +- ...pe018 [32-Bit Memory Error Information].cs | 2 +- .../SmbiosType034 [Management Device].cs | 2 +- ....Core.Hardware.Specification.Smbios.csproj | 7 ++++++ .../key.snk | Bin 0 -> 596 bytes .../Properties/AssemblyInfo.cs | 21 +++++++++++----- ...Tin.Core.Hardware.Specification.Tpm.csproj | 7 ++++++ .../key.snk | Bin 0 -> 596 bytes .../Properties/AssemblyInfo.cs | 6 ++--- .../iTin.Core.Hardware.csproj | 9 +++++++ .../iTin.Core.Hardware/key.snk | Bin 0 -> 596 bytes .../Properties/AssemblyInfo.cs | 4 +-- .../iTin.Core.Interop.csproj | 10 +++++++- src/lib/iTin.Core/iTin.Core.Interop/key.snk | Bin 0 -> 596 bytes .../iTin.Core/Properties/AssemblyInfo.cs | 6 ++--- src/lib/iTin.Core/iTin.Core/iTin.Core.csproj | 10 +++++++- src/lib/iTin.Core/iTin.Core/key.snk | Bin 0 -> 596 bytes src/test/iSMBIOS.ConsoleApp/Program.cs | 23 ++++++++++++------ .../Properties/AssemblyInfo.cs | 14 +++++------ .../iSMBIOS.ConsoleApp.csproj | 7 ++++++ src/test/iSMBIOS.ConsoleApp/key.snk | Bin 0 -> 596 bytes 30 files changed, 140 insertions(+), 57 deletions(-) create mode 100644 src/lib/iTin.Core.Hardware/iTin.Core.Hardware.Specification/iTin.Core.Hardware.Specification.Dmi/key.snk create mode 100644 src/lib/iTin.Core.Hardware/iTin.Core.Hardware.Specification/iTin.Core.Hardware.Specification.Smbios/key.snk create mode 100644 src/lib/iTin.Core.Hardware/iTin.Core.Hardware.Specification/iTin.Core.Hardware.Specification.Tpm/key.snk create mode 100644 src/lib/iTin.Core.Hardware/iTin.Core.Hardware/key.snk create mode 100644 src/lib/iTin.Core/iTin.Core.Interop/key.snk create mode 100644 src/lib/iTin.Core/iTin.Core/key.snk create mode 100644 src/test/iSMBIOS.ConsoleApp/key.snk diff --git a/CHANGELOG.md b/CHANGELOG.md index 3778787..7f77909 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,14 +1,14 @@ # Changelog All notable changes to this project will be documented in this file. -## 1.0.8 - +## [1.0.8] - 2019-08-23 ### Added - Added **iTin.Core.Hardware.Specification.Smbios** project for **SMBIOS** calls. - - Implements the full specification. + - Implements the fully specification(s). - - Now you can directly access the Smbios properties, to do this make the following call. + - Now you can directly access the SMBIOS properties, to do this make the following call. var smbios = SMBIOS.Instance.ImplementedStructures; @@ -26,10 +26,10 @@ All notable changes to this project will be documented in this file. · Dmi will have one property available: > DmiProperty.Bios.BiosRomSize - - Added **iTin.Core.Hardware.Specification.Tpm** project. - Includes TPM (Trusted Platform Module), used in SmbiosType043 [TPM Device] class. + - Minor changes. ### Changed @@ -49,6 +49,8 @@ All notable changes to this project will be documented in this file. - test - iSMBIOS.ConsoleApp [Console Test App] +- Assemblies with strong naming. + ### Removed - Unused variables. diff --git a/README.md b/README.md index b528d1b..cb99ae7 100644 --- a/README.md +++ b/README.md @@ -84,11 +84,19 @@ Call **DMI.Instance.Structures** for getting all SMBIOS structures availables. // Requires that the Slot Information structure exists in your system DmiStructureCollection structures = DMI.Instance.Structures; IDictionary systemSlots = structures.GetProperties(DmiProperty.SystemSlots.SlotId); - foreach (KeyValuePair systemSlot in systemSlots) + bool hasSystemSlots = systemSlots.Any(); + if (!hasSystemSlots) { - int element = systemSlot.Key; - object property = systemSlot.Value; - Console.WriteLine($" System Slot ({element}) > {property}"); + Console.WriteLine($" > There is no system slots information structure in this computer"); + } + else + { + foreach (KeyValuePair systemSlot in systemSlots) + { + int element = systemSlot.Key; + object property = systemSlot.Value; + Console.WriteLine($" System Slot ({element}) > {property}"); + } } 5. Prints all **SMBIOS** structures properties @@ -181,10 +189,10 @@ Call **DMI.Instance.Structures** for getting all SMBIOS structures availables. private static string GetFriendlyName(IPropertyKey value) { - string friendlyName = value.GetPropertyName(); - return string.IsNullOrEmpty(friendlyName) + string name = value.GetPropertyName(); + return string.IsNullOrEmpty(name) ? value.PropertyId.ToString() - : friendlyName; + : name; } # How can I send feedback!!! diff --git a/src/lib/iTin.Core.Hardware/iTin.Core.Hardware.Specification/iTin.Core.Hardware.Specification.Dmi/DMI.cs b/src/lib/iTin.Core.Hardware/iTin.Core.Hardware.Specification/iTin.Core.Hardware.Specification.Dmi/DMI.cs index 9c833ef..f15b2ed 100644 --- a/src/lib/iTin.Core.Hardware/iTin.Core.Hardware.Specification/iTin.Core.Hardware.Specification.Dmi/DMI.cs +++ b/src/lib/iTin.Core.Hardware/iTin.Core.Hardware.Specification/iTin.Core.Hardware.Specification.Dmi/DMI.cs @@ -6,8 +6,8 @@ namespace iTin.Core.Hardware.Specification using Dmi; /// - /// The Desktop Management Interface (DMI) ó La interfaz de administración de escritorio, marco estándar para la gestión y - /// seguimiento de componentes en un ordenador de sobremesa, portátil o servidor. + /// The Desktop Management Interface (DMI) or the desktop management interface, standard framework for management and + /// component tracking on a desktop, laptop or server. /// public sealed class DMI { diff --git a/src/lib/iTin.Core.Hardware/iTin.Core.Hardware.Specification/iTin.Core.Hardware.Specification.Dmi/Properties/AssemblyInfo.cs b/src/lib/iTin.Core.Hardware/iTin.Core.Hardware.Specification/iTin.Core.Hardware.Specification.Dmi/Properties/AssemblyInfo.cs index 76f389a..db4a817 100644 --- a/src/lib/iTin.Core.Hardware/iTin.Core.Hardware.Specification/iTin.Core.Hardware.Specification.Dmi/Properties/AssemblyInfo.cs +++ b/src/lib/iTin.Core.Hardware/iTin.Core.Hardware.Specification/iTin.Core.Hardware.Specification.Dmi/Properties/AssemblyInfo.cs @@ -6,11 +6,11 @@ // conjunto de atributos. Cambie estos valores de atributo para modificar la información // asociada con un ensamblado. [assembly: AssemblyTitle("iTin.Core.Hardware.Specification.Dmi")] -[assembly: AssemblyDescription("")] +[assembly: AssemblyDescription("The Desktop Management Interface (DMI) or the desktop management interface, standard framework for management and component tracking on a desktop, laptop or server.")] [assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] +[assembly: AssemblyCompany("iTin")] [assembly: AssemblyProduct("iTin.Core.Hardware.Specification.Dmi")] -[assembly: AssemblyCopyright("Copyright © 2019")] +[assembly: AssemblyCopyright("Copyright © 2018")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] diff --git a/src/lib/iTin.Core.Hardware/iTin.Core.Hardware.Specification/iTin.Core.Hardware.Specification.Dmi/iTin.Core.Hardware.Specification.Dmi.csproj b/src/lib/iTin.Core.Hardware/iTin.Core.Hardware.Specification/iTin.Core.Hardware.Specification.Dmi/iTin.Core.Hardware.Specification.Dmi.csproj index 670fa6b..d060fa0 100644 --- a/src/lib/iTin.Core.Hardware/iTin.Core.Hardware.Specification/iTin.Core.Hardware.Specification.Dmi/iTin.Core.Hardware.Specification.Dmi.csproj +++ b/src/lib/iTin.Core.Hardware/iTin.Core.Hardware.Specification/iTin.Core.Hardware.Specification.Dmi/iTin.Core.Hardware.Specification.Dmi.csproj @@ -30,6 +30,12 @@ prompt 4 + + true + + + key.snk + @@ -136,5 +142,8 @@ iTin.Core.Hardware.Specification.Tpm + + + \ No newline at end of file diff --git a/src/lib/iTin.Core.Hardware/iTin.Core.Hardware.Specification/iTin.Core.Hardware.Specification.Dmi/key.snk b/src/lib/iTin.Core.Hardware/iTin.Core.Hardware.Specification/iTin.Core.Hardware.Specification.Dmi/key.snk new file mode 100644 index 0000000000000000000000000000000000000000..58bf4e9464b0ac69352e755d4378871482688a8d GIT binary patch literal 596 zcmV-a0;~N80ssI2Bme+XQ$aES1ONa50098uMu~FS&^VV?lgw&>2}0 zhmZBqnn$#UjEb1>&r6LD1s(Y>otZ5vBcHGf*5#Fe3}(K~H~5psU!QH_FdC>;rKjmx z044Lkv82Xx5xQN4M40`V>7>L3ezOpaTJgfI<%i)mQl*LcBOPY_cPAO&{A-th#A z9o<+lY{1nv?bO3(hB(wosoz%T z3Eq2<%`NFz+qr}F*ybKZU-O)^#!B#EJ5`Vp2~`lXcb`K2Pv(?y3f$;oxGCQVbm-dN zeHixKK(lS~(bUQ9k;&q?38><7o8(S4>ZtT8gc9>Qr!QMqwGVa`Hq(J1v5$=#dCmlu z2ReSsYud-;9p{nMjFn6GZsu!P)SQrrQ?fm^da?}Zg_V@0j=k2Gh!VDb#PEoywyhjs z$%q%MvQ2i^zR}_$C-$fGmfF<`tR!X#GoH;}o2z>7GkZYc)9(G(8YK!nDTMB!H}uNY znK6S9At**YWo#uN%86#sBvT+zU%+Wovw&R&s7Wo3oHEyBPuW*z9Mm /// Specialization of the class that contains the logic to decode the System Enclosure or Chassis (Type 3) structure. /// - sealed class SmbiosType003 : SmbiosBaseType + internal sealed class SmbiosType003 : SmbiosBaseType { #region constructor/s diff --git a/src/lib/iTin.Core.Hardware/iTin.Core.Hardware.Specification/iTin.Core.Hardware.Specification.Smbios/SMBIOS/Structures/SmbiosType004 [Processor Information].cs b/src/lib/iTin.Core.Hardware/iTin.Core.Hardware.Specification/iTin.Core.Hardware.Specification.Smbios/SMBIOS/Structures/SmbiosType004 [Processor Information].cs index eb9ea07..b1bfa30 100644 --- a/src/lib/iTin.Core.Hardware/iTin.Core.Hardware.Specification/iTin.Core.Hardware.Specification.Smbios/SMBIOS/Structures/SmbiosType004 [Processor Information].cs +++ b/src/lib/iTin.Core.Hardware/iTin.Core.Hardware.Specification/iTin.Core.Hardware.Specification.Smbios/SMBIOS/Structures/SmbiosType004 [Processor Information].cs @@ -162,7 +162,7 @@ namespace iTin.Core.Hardware.Specification.Smbios /// /// Specialization of the class that contains the logic to decode the Processor Information (Type 4) structure. /// - sealed class SmbiosType004 : SmbiosBaseType + internal sealed class SmbiosType004 : SmbiosBaseType { #region constructor/s diff --git a/src/lib/iTin.Core.Hardware/iTin.Core.Hardware.Specification/iTin.Core.Hardware.Specification.Smbios/SMBIOS/Structures/SmbiosType005 [Memory Controller Information (Type 5, Obsolete)].cs b/src/lib/iTin.Core.Hardware/iTin.Core.Hardware.Specification/iTin.Core.Hardware.Specification.Smbios/SMBIOS/Structures/SmbiosType005 [Memory Controller Information (Type 5, Obsolete)].cs index dcaf306..fd5f411 100644 --- a/src/lib/iTin.Core.Hardware/iTin.Core.Hardware.Specification/iTin.Core.Hardware.Specification.Smbios/SMBIOS/Structures/SmbiosType005 [Memory Controller Information (Type 5, Obsolete)].cs +++ b/src/lib/iTin.Core.Hardware/iTin.Core.Hardware.Specification/iTin.Core.Hardware.Specification.Smbios/SMBIOS/Structures/SmbiosType005 [Memory Controller Information (Type 5, Obsolete)].cs @@ -80,7 +80,7 @@ namespace iTin.Core.Hardware.Specification.Smbios /// /// Specialization of the class that contains the logic to decode the Memory Controller Information (Type 5, Obsolete) structure. /// - sealed class SmbiosType005 : SmbiosBaseType + internal sealed class SmbiosType005 : SmbiosBaseType { #region constructor/s diff --git a/src/lib/iTin.Core.Hardware/iTin.Core.Hardware.Specification/iTin.Core.Hardware.Specification.Smbios/SMBIOS/Structures/SmbiosType018 [32-Bit Memory Error Information].cs b/src/lib/iTin.Core.Hardware/iTin.Core.Hardware.Specification/iTin.Core.Hardware.Specification.Smbios/SMBIOS/Structures/SmbiosType018 [32-Bit Memory Error Information].cs index 46b76a6..94d1368 100644 --- a/src/lib/iTin.Core.Hardware/iTin.Core.Hardware.Specification/iTin.Core.Hardware.Specification.Smbios/SMBIOS/Structures/SmbiosType018 [32-Bit Memory Error Information].cs +++ b/src/lib/iTin.Core.Hardware/iTin.Core.Hardware.Specification/iTin.Core.Hardware.Specification.Smbios/SMBIOS/Structures/SmbiosType018 [32-Bit Memory Error Information].cs @@ -63,7 +63,7 @@ namespace iTin.Core.Hardware.Specification.Smbios /// /// Specialization of the class that contains the logic to decode the 32-Bit Memory Error Information (Type 18) structure. /// - class SmbiosType018 : SmbiosBaseType + internal class SmbiosType018 : SmbiosBaseType { #region constructor/s diff --git a/src/lib/iTin.Core.Hardware/iTin.Core.Hardware.Specification/iTin.Core.Hardware.Specification.Smbios/SMBIOS/Structures/SmbiosType034 [Management Device].cs b/src/lib/iTin.Core.Hardware/iTin.Core.Hardware.Specification/iTin.Core.Hardware.Specification.Smbios/SMBIOS/Structures/SmbiosType034 [Management Device].cs index 263fced..1935303 100644 --- a/src/lib/iTin.Core.Hardware/iTin.Core.Hardware.Specification/iTin.Core.Hardware.Specification.Smbios/SMBIOS/Structures/SmbiosType034 [Management Device].cs +++ b/src/lib/iTin.Core.Hardware/iTin.Core.Hardware.Specification/iTin.Core.Hardware.Specification.Smbios/SMBIOS/Structures/SmbiosType034 [Management Device].cs @@ -36,7 +36,7 @@ namespace iTin.Core.Hardware.Specification.Smbios /// /// Specialization of the class that contains the logic to decode the Management Device (Type 34) structure. /// - sealed class SmbiosType034 : SmbiosBaseType + internal sealed class SmbiosType034 : SmbiosBaseType { #region Constructor/es diff --git a/src/lib/iTin.Core.Hardware/iTin.Core.Hardware.Specification/iTin.Core.Hardware.Specification.Smbios/iTin.Core.Hardware.Specification.Smbios.csproj b/src/lib/iTin.Core.Hardware/iTin.Core.Hardware.Specification/iTin.Core.Hardware.Specification.Smbios/iTin.Core.Hardware.Specification.Smbios.csproj index 3dccda2..0640560 100644 --- a/src/lib/iTin.Core.Hardware/iTin.Core.Hardware.Specification/iTin.Core.Hardware.Specification.Smbios/iTin.Core.Hardware.Specification.Smbios.csproj +++ b/src/lib/iTin.Core.Hardware/iTin.Core.Hardware.Specification/iTin.Core.Hardware.Specification.Smbios/iTin.Core.Hardware.Specification.Smbios.csproj @@ -34,6 +34,12 @@ 4 false + + true + + + key.snk + @@ -125,6 +131,7 @@ + diff --git a/src/lib/iTin.Core.Hardware/iTin.Core.Hardware.Specification/iTin.Core.Hardware.Specification.Smbios/key.snk b/src/lib/iTin.Core.Hardware/iTin.Core.Hardware.Specification/iTin.Core.Hardware.Specification.Smbios/key.snk new file mode 100644 index 0000000000000000000000000000000000000000..90b58aaa02ac7938dc5b58635a99a9c40c752388 GIT binary patch literal 596 zcmV-a0;~N80ssI2Bme+XQ$aES1ONa50096g^~(yv-?_#5^rOc?Nl%F;It>p4kE(xcL#&% z1_oB>U_VQ2eSYws?2+0|_R^4Yd8)dZxg$D-P6=)f93K9~nL83_vx|7&X zGC*(hi1qQ?MJ@nCCGq-FsYHg_&q}Qc`libyjj0~Q${jRxCqu9Fu|YB+46f#KwzLH; z`IJSf{W(J)0DR~N+pqs&j=KL1hpSI-U@{8g)6>$`p0BLDz7t`6_6OJuq2T;!9`!~f z%n#BFfNMW;d_88;JjreXBrHjs(R=Q*vJu%kUfmG9OPh|m$k)N0rVq3;TP3Dsl0eb? zPv=y6gX%-N)`l^S6jya?be;n&lRxiNgWHYYKJGdFpwMsp_4H6GshrulMx3MtlD z<&h`9u{@)fd%3oO#4Ul>JA#&>Zx(w-!cQ11(HV=1Epb)w3x;O{AGPwi&imSdGd$|{ zwTH6`gUXk=tP9WRZ1pkt#`ZnX{=WIoHcVIL6d64 false + + true + + + key.snk + @@ -49,6 +55,7 @@ + diff --git a/src/lib/iTin.Core.Hardware/iTin.Core.Hardware.Specification/iTin.Core.Hardware.Specification.Tpm/key.snk b/src/lib/iTin.Core.Hardware/iTin.Core.Hardware.Specification/iTin.Core.Hardware.Specification.Tpm/key.snk new file mode 100644 index 0000000000000000000000000000000000000000..c4b654e84b403994c75825577f63cba435bb1d40 GIT binary patch literal 596 zcmV-a0;~N80ssI2Bme+XQ$aES1ONa50098$>{5yBL}P{jyDao(G2nY$)iPXFM6r0x zMZ@Kf!!yNmyP_m}pm4o!lzd9AJ|x2Pz&nrTcHkN~xFZ?KH8gx4*4HVpfA}UMx+5s` z>p1&@XqSg%b^oY`U5DXX+_t@$If&0(f-jVh-dbGEf=tB6Z+)Uz!e14 z8I)dJ>$;~4uJzvU>0JSsjO~fQlRI0S!mZsNA?wnLL*71~&?Re*!bsG}ZuQbvN=bJY zoT~e?Uk6CFfyX&uiC(kS8#JcI3L(;&QMvl-pEiXA_9%?Rn8Ui1+4lhg`nKHp4t<3t z&b2y|Ym$O#eo_**S$d?aE^n#G%(vEb@Gg(V#2SyUUpgS%ymWej$pEGm& z_gjfDgQdP(kksGFNUs{-s%yK+K)D(JY%7w6577RIi<^y!`At;mPVSor3jd&!L81rB z;TdiHh2SCbeCp+~%*PHXy z)2*x3X%gDG9j>7h8lGn__Na16NzWZ+KO5RjPmXkrk3T}C!OF{sof_h05sf`b4U$X* zfLZpT)G2JHm}0pP%5s4leS^OKQ4 true + + true + + + key.snk + @@ -61,5 +67,8 @@ iTin.Core + + + \ No newline at end of file diff --git a/src/lib/iTin.Core.Hardware/iTin.Core.Hardware/key.snk b/src/lib/iTin.Core.Hardware/iTin.Core.Hardware/key.snk new file mode 100644 index 0000000000000000000000000000000000000000..6b7bb39f1de1d42562e9e5511e2fb6b8d83ecdcf GIT binary patch literal 596 zcmV-a0;~N80ssI2Bme+XQ$aES1ONa50098)RHcs4RsJhYN%C`>crcQdbjMBa3Y$FY zyp=mkt~7}a%d(lqcg!A?yylDZVZmT=*glRv9cpCSle zv&-bK(E)CEUUU4{)sRt7ww7P*iS61wSJ=RPJ|}E9QX~zF;#VokA3c-oQV+QFA^y*! zr^%NUz*3V~7cxRV9p0YfNn$CIYa7}pX)&?4&k$7_0Z}e6>-wOdakblK4gB-i95+~L z5QzuXFiZ);Qehh~!}y$pCtsf-<6KTtl)zhy8june{@dR1UBD*Y+0b}0U#td*E?UosA%Zv`g@GargMvgp0HKAn*# zUq9KwuO;rYHqS?vB)ZBrvtOJ3xwju6qMJBll40+E=GuA=reCL={tNEKP^jv~I00OO zh0p9skZB`9U0e@vO@c8(z1<8~oYNn98d*rcxk{PN&V0Fw7KDghO>19*sg5w9IJMpI zeD%HluMmUG+!L0f^;eiSE~|9sW#ttzs)PLiM}A^>h)5@49&yK0b?R`Ah}$_ng(&>_ iw~{pC@d8xfqOT{unFZ~@b)laf`;?a(cWo)Mx7o4dR3vTy literal 0 HcmV?d00001 diff --git a/src/lib/iTin.Core/iTin.Core.Interop/Properties/AssemblyInfo.cs b/src/lib/iTin.Core/iTin.Core.Interop/Properties/AssemblyInfo.cs index cb8649e..5c5bafb 100644 --- a/src/lib/iTin.Core/iTin.Core.Interop/Properties/AssemblyInfo.cs +++ b/src/lib/iTin.Core/iTin.Core.Interop/Properties/AssemblyInfo.cs @@ -6,11 +6,11 @@ // conjunto de atributos. Cambie estos valores de atributo para modificar la información // asociada con un ensamblado. [assembly: AssemblyTitle("iTin.Core.Interop")] -[assembly: AssemblyDescription("")] +[assembly: AssemblyDescription("Generic Win32 Interop Calls")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("iTin")] [assembly: AssemblyProduct("iTin.Core.Interop")] -[assembly: AssemblyCopyright("Copyright © 2017")] +[assembly: AssemblyCopyright("Copyright © 2017")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] diff --git a/src/lib/iTin.Core/iTin.Core.Interop/iTin.Core.Interop.csproj b/src/lib/iTin.Core/iTin.Core.Interop/iTin.Core.Interop.csproj index 7b0c816..ad6d1a2 100644 --- a/src/lib/iTin.Core/iTin.Core.Interop/iTin.Core.Interop.csproj +++ b/src/lib/iTin.Core/iTin.Core.Interop/iTin.Core.Interop.csproj @@ -35,6 +35,12 @@ false true + + true + + + key.snk + @@ -87,7 +93,9 @@ iTin.Core - + + + diff --git a/src/lib/iTin.Core/iTin.Core.Interop/key.snk b/src/lib/iTin.Core/iTin.Core.Interop/key.snk new file mode 100644 index 0000000000000000000000000000000000000000..4b6c16044b43169db803564798d47d17af6985ea GIT binary patch literal 596 zcmV-a0;~N80ssI2Bme+XQ$aES1ONa50098a+`MA(HZ*)cqE4yowqUr%`UaYN#C*3h z)lz=w{~Dj$P87RPOy-Ib=*&bkVdMn8V5`Ca-@Y6#=jLrg&WR7-!%*PZ>_x_vWF zc7`;8f9dT-22;gKeMv_DeG?_5-Cp^>6*v?TPFL^+NE&1Uw9H6;Uw-TE-aP6{s$qj^ zfyu#L1U(QoUbW`&Ne5LhOab46&jf0TN|KWNhWA1}rjMC-Zte1rCB|(M0j%IbwbZiG z%{`qn1ro|atYka+v(3aHcc(z?Fq=T*6RVtVc>C)VsDBOYx{#YC{}~i_A$4uJ#703X zHB^RaK_&8ojARz8B5LuMamCZqyvDhz-4!%|St?Da168parC$S$DKb%aN>E;i%dHZ$ ib*|r38^-6%5P$tMqYm0S+_R>*$|`FX6&>j4mD`4!7b5il literal 0 HcmV?d00001 diff --git a/src/lib/iTin.Core/iTin.Core/Properties/AssemblyInfo.cs b/src/lib/iTin.Core/iTin.Core/Properties/AssemblyInfo.cs index 301691a..1a6a495 100644 --- a/src/lib/iTin.Core/iTin.Core/Properties/AssemblyInfo.cs +++ b/src/lib/iTin.Core/iTin.Core/Properties/AssemblyInfo.cs @@ -10,7 +10,7 @@ [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("iTin")] [assembly: AssemblyProduct("iTin.Core")] -[assembly: AssemblyCopyright("Copyright © 2017")] +[assembly: AssemblyCopyright("Copyright © 2017")] [assembly: AssemblyTrademark("iTin")] [assembly: AssemblyCulture("")] @@ -32,5 +32,5 @@ // Puede especificar todos los valores o usar los números de compilación y de revisión predeterminados // mediante el carácter "*", como se muestra a continuación: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.1.0")] -[assembly: AssemblyFileVersion("1.0.1.0")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/src/lib/iTin.Core/iTin.Core/iTin.Core.csproj b/src/lib/iTin.Core/iTin.Core/iTin.Core.csproj index b2f5fc1..a9490d2 100644 --- a/src/lib/iTin.Core/iTin.Core/iTin.Core.csproj +++ b/src/lib/iTin.Core/iTin.Core/iTin.Core.csproj @@ -31,6 +31,12 @@ prompt 4 + + true + + + key.snk + @@ -81,7 +87,9 @@ Exception.Designer.cs - + + + diff --git a/src/lib/iTin.Core/iTin.Core/key.snk b/src/lib/iTin.Core/iTin.Core/key.snk new file mode 100644 index 0000000000000000000000000000000000000000..e6b80c05dc7af9b7a622dedbb330e1fc01f13397 GIT binary patch literal 596 zcmV-a0;~N80ssI2Bme+XQ$aES1ONa50096!WwsPW)h84MmaH$KWXPXfuYi%geH5g| zMU{t}{gAOJu6O||LDkpQmpMy@FvQ0%A()vTylc!PvW+1{k=fc~a&9HgE5m|?i=&pt z%Uu+Eb+d?4kP8*e7WD_54Zy-ry{O{4NZYI)1ue@5%Q!w9rnCr;fykB!HAZbR+1{!51rUS{eBOy>qV| z3)`M){m4Wk3v=mL-*M+N;*RC}6+I>dGlaOv-Ya?!AKpI&fpP`wr<%j8 z3A6-|QcLfMRtvHDLaZL0w)1qEJ_+B^@JMet_T=m~k_PodpqvvP*cW9VG>S3|pqrYp zYGN202*;qHm&mRU95iuF3OIN1N}PRE-yHDx*E9DsH*6p`4vkuOJug?g1S`)8av|)P z6R$X7Lv&L~Y6;W38x!$`=>+7iKp;w!p^Fhyj8?n`o^WL*k7CTl+ACr<7bCc)t?{^% zo2n$f4(EGz(Cbj3_M;&K{A1xbVO}FX0FO~k{7g3;>(oVK systemSlots = structures.GetProperties(DmiProperty.SystemSlots.SlotId); - foreach (KeyValuePair systemSlot in systemSlots) + bool hasSystemSlots = systemSlots.Any(); + if (!hasSystemSlots) { - int element = systemSlot.Key; - object property = systemSlot.Value; - Console.WriteLine($" > System Slot ({element}) > {property}"); + Console.WriteLine($" > There is no system slots information structure in this computer"); + } + else + { + foreach (KeyValuePair systemSlot in systemSlots) + { + int element = systemSlot.Key; + object property = systemSlot.Value; + Console.WriteLine($" > System Slot ({element}) > {property}"); + } } Console.ReadLine(); @@ -145,11 +154,11 @@ static void Main(string[] args) private static string GetFriendlyName(IPropertyKey value) { - string friendlyName = value.GetPropertyName(); + string name = value.GetPropertyName(); - return string.IsNullOrEmpty(friendlyName) + return string.IsNullOrEmpty(name) ? value.PropertyId.ToString() - : friendlyName; + : name; } } } diff --git a/src/test/iSMBIOS.ConsoleApp/Properties/AssemblyInfo.cs b/src/test/iSMBIOS.ConsoleApp/Properties/AssemblyInfo.cs index cefec2e..9d7fa09 100644 --- a/src/test/iSMBIOS.ConsoleApp/Properties/AssemblyInfo.cs +++ b/src/test/iSMBIOS.ConsoleApp/Properties/AssemblyInfo.cs @@ -5,12 +5,12 @@ // La información general de un ensamblado se controla mediante el siguiente // conjunto de atributos. Cambie estos valores de atributo para modificar la información // asociada con un ensamblado. -[assembly: AssemblyTitle("iTin.Core.Hardware.ConsoleApp")] -[assembly: AssemblyDescription("")] +[assembly: AssemblyTitle("iSMBIOS.ConsoleApp")] +[assembly: AssemblyDescription("SMBIOS Console Test App")] [assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("iTin.Core.Hardware.ConsoleApp")] -[assembly: AssemblyCopyright("Copyright © 2017")] +[assembly: AssemblyCompany("iTin")] +[assembly: AssemblyProduct("iSMBIOS.ConsoleApp")] +[assembly: AssemblyCopyright("Copyright © 2017")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -32,5 +32,5 @@ // Puede especificar todos los valores o usar los números de compilación y de revisión predeterminados // mediante el carácter "*", como se muestra a continuación: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.1.0")] -[assembly: AssemblyFileVersion("1.0.1.0")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/src/test/iSMBIOS.ConsoleApp/iSMBIOS.ConsoleApp.csproj b/src/test/iSMBIOS.ConsoleApp/iSMBIOS.ConsoleApp.csproj index b76311c..c233b91 100644 --- a/src/test/iSMBIOS.ConsoleApp/iSMBIOS.ConsoleApp.csproj +++ b/src/test/iSMBIOS.ConsoleApp/iSMBIOS.ConsoleApp.csproj @@ -50,6 +50,12 @@ + + true + + + key.snk + @@ -68,6 +74,7 @@ + diff --git a/src/test/iSMBIOS.ConsoleApp/key.snk b/src/test/iSMBIOS.ConsoleApp/key.snk new file mode 100644 index 0000000000000000000000000000000000000000..48960b457c49d03a8b02ecd22ffb39cebfa2af72 GIT binary patch literal 596 zcmV-a0;~N80ssI2Bme+XQ$aES1ONa500975Q4enQUIl6_=45dJzgLGqdMl|dY2 z7(O0Dd&QRzN^g#^iTAvTZMz0s4~$k=0iKyM>0gr(6U}KNPjy{T(^Wb7Ea%3 z>G2}yeuOMQ!F_!*HVZYZ)0!+dY`Zuol|x9TMcnIN5rD@6v4AP-6%qP+JQ$@W_;5(d2A*)fd7$eLA3AU&%X9n`(hj$g~(o#k~DpiF!cvn@

(A>o zp)@pG;#kM#6ktKS9G|CN{Y?En|LvZ{rj|lmYvb02Iye>~iO^|=6}5OzSLF`*DRll1 zYHDg?g1=>`Zn^j6Q5uUBuFY6fg4PP0M{4CdT-{a-og%w$Q49x#pPRHL)`OA;>dTL9 zZ6cOn@)i!^2W670xY0u$R1>! iy`VkSz@jl$N#;|d&RlurP1vvAA@X!ooQ3?ZH1ky}fg7^` literal 0 HcmV?d00001