Skip to content

Commit

Permalink
Assemblies with strong naming. Update nuget package and README.md and…
Browse files Browse the repository at this point in the history
… CHANGELOG.md files
  • Loading branch information
iAJTin committed Aug 23, 2019
1 parent 205cfb2 commit 7f344b4
Show file tree
Hide file tree
Showing 30 changed files with 140 additions and 57 deletions.
10 changes: 6 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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;

Expand All @@ -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
Expand All @@ -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.

Expand Down
22 changes: 15 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<int, object> systemSlots = structures.GetProperties(DmiProperty.SystemSlots.SlotId);
foreach (KeyValuePair<int, object> 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<int, object> systemSlot in systemSlots)
{
int element = systemSlot.Key;
object property = systemSlot.Value;
Console.WriteLine($" System Slot ({element}) > {property}");
}
}

5. Prints all **SMBIOS** structures properties
Expand Down Expand Up @@ -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!!!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ namespace iTin.Core.Hardware.Specification
using Dmi;

/// <summary>
/// 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.
/// </summary>
public sealed class DMI
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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("")]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>true</SignAssembly>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>key.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down Expand Up @@ -136,5 +142,8 @@
<Name>iTin.Core.Hardware.Specification.Tpm</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="key.snk" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
// 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("iDMI")]
[assembly: AssemblyDescription("iDMI is a lightweight implementation that allows us to obtain the SMBIOS information")]
[assembly: AssemblyTitle("iTin.Core.Hardware.Specification.Smbios")]
[assembly: AssemblyDescription("System Management BIOS (SMBIOS). Standard format of the data collected by the BIOS. SMBIOS defines this information in a series of data tables, where information about system components such as memory, peripheral devices, expansion cards, inventory label and operating system is collected.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("iTin")]
[assembly: AssemblyProduct("iDMI")]
[assembly: AssemblyProduct("iTin.Core.Hardware.Specification.Smbios")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
Expand All @@ -32,7 +32,7 @@
// 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")]

[assembly: InternalsVisibleTo("iTin.Core.Hardware.Specification.Dmi")]
[assembly: InternalsVisibleTo("iTin.Core.Hardware.Specification.Dmi, PublicKey=0024000004800000940000000602000000240000525341310004000001000100e1468972d9d038975693cc6a7e2669eb61e1868495ec1a034b878ff5d19a47b4878c8a98f0cf4b8d0f051df92f9d992d2a239fb00bd6e595800c66becd37f893c75f9f6de2301aa855a5a7e9590025f3bfb1a4c67311ba5d854498fd99ec0bc0672e4224321dd0995a5a43cf9f1d3846da0dae6b9a70b878345277127bf529d6")]
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ namespace iTin.Core.Hardware.Specification.Smbios
/// <summary>
/// Specialization of the <see cref="T:iTin.Core.Hardware.Specification.Smbios.SmbiosBaseType" /> class that contains the logic to decode the System Enclosure or Chassis (Type 3) structure.
/// </summary>
sealed class SmbiosType003 : SmbiosBaseType
internal sealed class SmbiosType003 : SmbiosBaseType
{
#region constructor/s

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ namespace iTin.Core.Hardware.Specification.Smbios
/// <summary>
/// Specialization of the <see cref="T:iTin.Core.Hardware.Specification.Smbios.SmbiosBaseType" /> class that contains the logic to decode the Processor Information (Type 4) structure.
/// </summary>
sealed class SmbiosType004 : SmbiosBaseType
internal sealed class SmbiosType004 : SmbiosBaseType
{
#region constructor/s

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ namespace iTin.Core.Hardware.Specification.Smbios
/// <summary>
/// Specialization of the <see cref="T:iTin.Core.Hardware.Specification.Smbios.SmbiosBaseType" /> class that contains the logic to decode the Memory Controller Information (Type 5, Obsolete) structure.
/// </summary>
sealed class SmbiosType005 : SmbiosBaseType
internal sealed class SmbiosType005 : SmbiosBaseType
{
#region constructor/s

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ namespace iTin.Core.Hardware.Specification.Smbios
/// <summary>
/// Specialization of the <see cref="T:iTin.Core.Hardware.Specification.Smbios.SmbiosBaseType" /> class that contains the logic to decode the 32-Bit Memory Error Information (Type 18) structure.
/// </summary>
class SmbiosType018 : SmbiosBaseType
internal class SmbiosType018 : SmbiosBaseType
{
#region constructor/s

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace iTin.Core.Hardware.Specification.Smbios
/// <summary>
/// Specialization of the <see cref="T:iTin.Core.Hardware.Specification.Smbios.SmbiosBaseType" /> class that contains the logic to decode the Management Device (Type 34) structure.
/// </summary>
sealed class SmbiosType034 : SmbiosBaseType
internal sealed class SmbiosType034 : SmbiosBaseType
{
#region Constructor/es

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>true</SignAssembly>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>key.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down Expand Up @@ -125,6 +131,7 @@
<None Include="%40Documents\SMBIOS\SMBIOS 3.1.0.pdf" />
<None Include="%40Documents\SMBIOS\SMBIOS 3.1.1.pdf" />
<None Include="%40Documents\SMBIOS\SMBIOS 3.2.0.pdf" />
<None Include="key.snk" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\iTin.Core\iTin.Core\iTin.Core.csproj">
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
// 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("iDMI")]
[assembly: AssemblyDescription("iDMI is a lightweight implementation that allows us to obtain the SMBIOS information")]
[assembly: AssemblyTitle("iTin.Core.Hardware.Specification.Tpm")]
[assembly: AssemblyDescription("Includes TPM (Trusted Platform Module)")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("iTin")]
[assembly: AssemblyProduct("iDMI")]
[assembly: AssemblyProduct("iTin.Core.Hardware.Specification.Tpm")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
Expand All @@ -32,7 +32,16 @@
// 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")]

[assembly: InternalsVisibleTo("iTin.Core.Hardware.Specification.Dmi")]
[assembly: InternalsVisibleTo("iTin.Core.Hardware.Specification.Dmi, PublicKey = 002400000480000094" +
"0000000602000000240000525341310004000" +
"001000100bf8c25fcd44838d87e245ab35bf7" +
"3ba2615707feea295709559b3de903fb95a93" +
"3d2729967c3184a97d7b84c7547cd87e435b5" +
"6bdf8621bcb62b59c00c88bd83aa62c4fcdd4" +
"712da72eec2533dc00f8529c3a0bbb4103282" +
"f0d894d5f34e9f0103c473dce9f4b457a5dee" +
"fd8f920d8681ed6dfcb0a81e96bd9b176525a" +
"26e0b3")]
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>true</SignAssembly>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>key.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand All @@ -49,6 +55,7 @@
<None Include="%40Documents\TPM\TCG-TPM-Vendor-ID-Registry-Version-1.01-Revision-1.00.pdf" />
<None Include="%40Documents\TPM\TPM Main Part 2 TPM Structures 1.2.pdf" />
<None Include="%40Documents\TPM\TPM-Rev-2.0-Part-2-Structures-01.38.pdf" />
<None Include="key.snk" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\iTin.Core\iTin.Core\iTin.Core.csproj">
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyDescription("Hardware Interop Calls")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyCompany("iTin")]
[assembly: AssemblyProduct("iTin.Core.Hardware")]
[assembly: AssemblyCopyright("Copyright © 2019")]
[assembly: AssemblyCopyright("Copyright © 2019")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@
<WarningLevel>4</WarningLevel>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>true</SignAssembly>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>key.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down Expand Up @@ -61,5 +67,8 @@
<Name>iTin.Core</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="key.snk" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -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("")]

Expand Down
10 changes: 9 additions & 1 deletion src/lib/iTin.Core/iTin.Core.Interop/iTin.Core.Interop.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@
<Prefer32Bit>false</Prefer32Bit>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>true</SignAssembly>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>key.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down Expand Up @@ -87,7 +93,9 @@
<Name>iTin.Core</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup />
<ItemGroup>
<None Include="key.snk" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>
Expand Down
Binary file added src/lib/iTin.Core/iTin.Core.Interop/key.snk
Binary file not shown.
6 changes: 3 additions & 3 deletions src/lib/iTin.Core/iTin.Core/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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("")]

Expand All @@ -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")]
10 changes: 9 additions & 1 deletion src/lib/iTin.Core/iTin.Core/iTin.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>true</SignAssembly>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>key.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down Expand Up @@ -81,7 +87,9 @@
<LastGenOutput>Exception.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<ItemGroup />
<ItemGroup>
<None Include="key.snk" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>
Expand Down
Binary file added src/lib/iTin.Core/iTin.Core/key.snk
Binary file not shown.
Loading

0 comments on commit 7f344b4

Please sign in to comment.