Skip to content

Commit

Permalink
csproj files
Browse files Browse the repository at this point in the history
  • Loading branch information
iadgovuser29 committed Jan 10, 2025
1 parent 7d0159e commit 9c0566a
Show file tree
Hide file tree
Showing 22 changed files with 76 additions and 685 deletions.
5 changes: 5 additions & 0 deletions dotnet/ComponentClassRegistry/Pcie/Pcie.Shared.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<Project>
<PropertyGroup>
<Version>0.5.0</Version>
</PropertyGroup>
</Project>
7 changes: 4 additions & 3 deletions dotnet/ComponentClassRegistry/Pcie/Pcie.csproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="Pcie.Shared.props" />

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RuntimeIdentifiers>linux-x64;win-x64</RuntimeIdentifiers>
<Authors>NSA Cybersecurity Directorate</Authors>
<PackageId>paccor.ComponentClassRegistry.Pcie</PackageId>
<PackageVersion>1.0.0</PackageVersion>
<PackageId>paccor.pcie</PackageId>
<PackageVersion>$(Version)</PackageVersion><!--Defined in shared props file-->
<PackageTags>paccor;platform;certificate;hardware;manifest;component;class;registry;pci;pcie;evidence;collection</PackageTags>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
Expand All @@ -34,5 +36,4 @@
<None Include="..\..\..\images\paccorpluginslogoicon.png" Pack="true" PackagePath="icon.png" />
<None Include="README.md" Pack="true" PackagePath="\" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Pcie;
public sealed class PcieHardwareManifestPlugin : HardwareManifestPluginBase {
public static readonly string TraitDescription = "PCIe-based Component Class Registry";
public static readonly string TraitDescriptionUri = "https://trustedcomputinggroup.org/wp-content/uploads/TCG_PCIe_Component_Class_Registry_v1_r18_pub10272021.pdf";
public static readonly string PluginName = "paccor.componentclassregistry.pcie";
public static readonly string PluginName = "paccor.pcie";
public static readonly string PluginDescription = "Collect hardware identifiers according to the PCIe Component Class Registry.";

public PcieHardwareManifestPlugin() {
Expand Down
4 changes: 3 additions & 1 deletion dotnet/ComponentClassRegistry/PcieCli/PcieCli.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\Pcie\Pcie.Shared.props" />

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<RuntimeIdentifiers>linux-x64;win-x64</RuntimeIdentifiers>
<PackageVersion>$(Version)</PackageVersion><!--Defined in shared props file-->
<StartupObject>PcieCli.PcieCli</StartupObject>
<PublishSingleFile>true</PublishSingleFile>
<ImplicitUsings>enable</ImplicitUsings>
Expand All @@ -14,5 +17,4 @@
<ProjectReference Include="..\CliLib\CliLib.csproj" />
<ProjectReference Include="..\Pcie\Pcie.csproj" />
</ItemGroup>

</Project>
5 changes: 5 additions & 0 deletions dotnet/ComponentClassRegistry/Smbios/Smbios.Shared.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<Project>
<PropertyGroup>
<Version>0.5.0</Version>
</PropertyGroup>
</Project>
22 changes: 21 additions & 1 deletion dotnet/ComponentClassRegistry/Smbios/Smbios.csproj
Original file line number Diff line number Diff line change
@@ -1,15 +1,35 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="Smbios.Shared.props" />

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<RuntimeIdentifiers>linux-x64;win-x64</RuntimeIdentifiers>
<Nullable>enable</Nullable>
<RuntimeIdentifiers>linux-x64;win-x64</RuntimeIdentifiers>
<Authors>NSA Cybersecurity Directorate</Authors>
<PackageId>paccor.smbios</PackageId>
<PackageVersion>$(Version)</PackageVersion><!--Defined in shared props file-->
<PackageTags>paccor;platform;certificate;hardware;manifest;component;class;registry;smbios;evidence;collection</PackageTags>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<PackageIcon>icon.png</PackageIcon>
<!--Source Link github.com/dotnet/sourcelink -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="paccor.HardwareManifestPlugin" Version="2.0.5" />
<PackageReference Include="System.Management" Version="8.0.0" />
</ItemGroup>

<ItemGroup>
<!--Package resources -->
<None Include="..\..\..\LICENSE.md" Pack="true" PackagePath="LICENSE.md" />
<None Include="..\..\..\images\paccorpluginslogoicon.png" Pack="true" PackagePath="icon.png" />
<None Include="README.md" Pack="true" PackagePath="\" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Smbios;
public sealed class SmbiosHardwareManifestPlugin : HardwareManifestPluginBase {
public static readonly string TraitDescription = "SMBIOS-based Component Class Registry";
public static readonly string TraitDescriptionUri = "https://trustedcomputinggroup.org/wp-content/uploads/SMBIOS-Component-Class-Registry_v1.01_finalpublication.pdf";
public static readonly string PluginName = "paccor.componentclassregistry.smbios";
public static readonly string PluginName = "paccor.smbios";
public static readonly string PluginDescription = "Collect hardware identifiers according to the SMBIOS Component Class Registry.";

public SmbiosHardwareManifestPlugin() {
Expand Down
4 changes: 3 additions & 1 deletion dotnet/ComponentClassRegistry/SmbiosCli/SmbiosCli.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\Smbios\Smbios.Shared.props" />

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<RuntimeIdentifiers>linux-x64;win-x64</RuntimeIdentifiers>
<PackageVersion>$(Version)</PackageVersion><!--Defined in shared props file-->
<StartupObject>SmbiosCli.SmbiosCli</StartupObject>
<PublishSingleFile>true</PublishSingleFile>
<ImplicitUsings>enable</ImplicitUsings>
Expand All @@ -14,5 +17,4 @@
<ProjectReference Include="..\CliLib\CliLib.csproj" />
<ProjectReference Include="..\Smbios\Smbios.csproj" />
</ItemGroup>

</Project>
3 changes: 3 additions & 0 deletions dotnet/ComponentClassRegistry/SmbiosCli/src/Program.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
using CliLib;
using Smbios;
using System.Reflection;
using System.Runtime.InteropServices;

namespace SmbiosCli;
public class SmbiosCli {
public static int Main(string[] args) {
int returnCode = (int)ClientExitCodes.SUCCESS;

Version? version = Assembly.GetExecutingAssembly().GetName().Version;

if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) {
// Linux requires sudo
int result = CliOptions.IsUserPrivileged();
Expand Down
5 changes: 5 additions & 0 deletions dotnet/ComponentClassRegistry/Storage/Storage.Shared.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<Project>
<PropertyGroup>
<Version>0.5.0</Version>
</PropertyGroup>
</Project>
33 changes: 21 additions & 12 deletions dotnet/ComponentClassRegistry/Storage/Storage.csproj
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="Storage.Shared.props" />

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RuntimeIdentifiers>linux-x64;win-x64</RuntimeIdentifiers>
<Authors>NSA Cybersecurity Directorate</Authors>
<PackageId>paccor.storage</PackageId>
<PackageVersion>$(Version)</PackageVersion><!--Defined in shared props file-->
<PackageTags>paccor;platform;certificate;hardware;manifest;component;class;registry;storage;ata;scsi;nvme;evidence;collection</PackageTags>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<PackageIcon>icon.png</PackageIcon>
<!--Source Link github.com/dotnet/sourcelink -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

<ItemGroup>
<Compile Remove="src\StorageLinux.cs" />
<Compile Remove="src\StorageLinuxConstants.cs" />
<Compile Remove="src\StorageLinuxImports.cs" />
<Compile Remove="src\StorageLinuxStructs.cs" />
<Compile Remove="src\StorageWin.cs" />
<Compile Remove="src\StorageWinConstants.cs" />
<Compile Remove="src\StorageWinHelpers.cs" />
<Compile Remove="src\StorageWinImports.cs" />
<Compile Remove="src\StorageWinStructs.cs" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="paccor.HardwareManifestPlugin" Version="2.0.5" />
</ItemGroup>
Expand All @@ -28,4 +31,10 @@
<ProjectReference Include="..\StorageNvme\StorageNvme.csproj" />
</ItemGroup>

<ItemGroup>
<!--Package resources -->
<None Include="..\..\..\LICENSE.md" Pack="true" PackagePath="LICENSE.md" />
<None Include="..\..\..\images\paccorpluginslogoicon.png" Pack="true" PackagePath="icon.png" />
<None Include="README.md" Pack="true" PackagePath="\" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Storage;
public class StorageHardwareManifestPlugin : HardwareManifestPluginBase {
public static readonly string TraitDescription = "Storage Component Class Registry";
public static readonly string TraitDescriptionUri = "https://trustedcomputinggroup.org/wp-content/uploads/Storage-Component-Class-Registry-Version-1.0-Revision-22_pub.pdf";
public static readonly string PluginName = "paccor.componentclassregistry.storage";
public static readonly string PluginName = "paccor.storage";
public static readonly string PluginDescription = "Collect hardware identifiers according to the Storage Component Class Registry.";

public StorageHardwareManifestPlugin() {
Expand Down
107 changes: 0 additions & 107 deletions dotnet/ComponentClassRegistry/Storage/src/StorageLinux.cs

This file was deleted.

20 changes: 0 additions & 20 deletions dotnet/ComponentClassRegistry/Storage/src/StorageLinuxConstants.cs

This file was deleted.

13 changes: 0 additions & 13 deletions dotnet/ComponentClassRegistry/Storage/src/StorageLinuxImports.cs

This file was deleted.

14 changes: 0 additions & 14 deletions dotnet/ComponentClassRegistry/Storage/src/StorageLinuxStructs.cs

This file was deleted.

Loading

0 comments on commit 9c0566a

Please sign in to comment.