Skip to content

Commit d696190

Browse files
committed
Configured dotnet projects for nuget packaging
1 parent 9764ef2 commit d696190

File tree

10 files changed

+93
-1
lines changed

10 files changed

+93
-1
lines changed

dotnet/HardwareManifestPlugin/HardwareManifestPlugin/HardwareManifestPlugin.csproj

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,33 @@
44
<TargetFramework>net6.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
7+
<Authors>NSA Cybersecurity Directorate</Authors>
8+
<PackageId>paccor.HardwareManifestPlugin</PackageId>
9+
<PackageVersion>1.0.0</PackageVersion>
10+
<PackageTags>paccor;platform;certificate;hardware;manifest;interface</PackageTags>
11+
<PackageReadmeFile>README.md</PackageReadmeFile>
12+
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
13+
<PackageIcon>icon.png</PackageIcon>
14+
<!--Source Link github.com/dotnet/sourcelink -->
15+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
16+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
17+
<IncludeSymbols>true</IncludeSymbols>
18+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
719
</PropertyGroup>
820
<ItemGroup>
921
<PackageReference Include="PlatformCertificate.Proto" Version="1.0.0" />
1022
<PackageReference Include="SWIDFromXSD" Version="1.0.0" />
1123
</ItemGroup>
24+
25+
<ItemGroup>
26+
<!--Source Link -->
27+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All"/>
28+
</ItemGroup>
29+
30+
<ItemGroup>
31+
<!--Package resources -->
32+
<None Include="..\..\..\LICENSE.md" Pack="true" PackagePath="LICENSE.md" />
33+
<None Include="..\..\..\images\paccorpluginslogoicon.png" Pack="true" PackagePath="icon.png" />
34+
<None Include="README.md" Pack="true" PackagePath="\" />
35+
</ItemGroup>
1236
</Project>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
paccor is a popular solution for creating the TCG Platform Certificate. The platform certificate enables traceability in the hardware supply chain of a computing device.
2+
3+
4+
This HardwareManifestPlugin is an experimental feature that can be used to extend the [HIRS .NET Provisioner](https://github.com/nsacyber/hirs/). The IHardwareManifest interface, within this package, defines the parameters necessary to customize hardware evidence collection by the Provisioner client.
5+
6+
7+
See the paccor.paccor_scripts nuget package for an example implementation.
8+
9+

dotnet/HardwareManifestPlugin/HardwareManifestPluginManager/HardwareManifestPluginManager.csproj

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@
44
<TargetFramework>net6.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
7+
<Authors>NSA Cybersecurity Directorate</Authors>
8+
<PackageId>paccor.HardwareManifestPluginManager</PackageId>
9+
<PackageVersion>1.0.0</PackageVersion>
10+
<PackageTags>paccor;platform;certificate;hardware;manifest;plugin;manager</PackageTags>
11+
<PackageReadmeFile>README.md</PackageReadmeFile>
12+
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
13+
<PackageIcon>icon.png</PackageIcon>
14+
<!--Source Link github.com/dotnet/sourcelink -->
15+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
16+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
17+
<IncludeSymbols>true</IncludeSymbols>
18+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
719
</PropertyGroup>
820

921
<ItemGroup>
@@ -15,4 +27,14 @@
1527
<ProjectReference Include="..\HardwareManifestPlugin\HardwareManifestPlugin.csproj" />
1628
</ItemGroup>
1729

30+
<ItemGroup>
31+
<!--Source Link -->
32+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All"/>
33+
</ItemGroup>
34+
<ItemGroup>
35+
<!--Package resources -->
36+
<None Include="..\..\..\LICENSE.md" Pack="true" PackagePath="LICENSE.md" />
37+
<None Include="..\..\..\images\paccorpluginslogoicon.png" Pack="true" PackagePath="icon.png" />
38+
<None Include="README.md" Pack="true" PackagePath="\" />
39+
</ItemGroup>
1840
</Project>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
paccor is a popular solution for creating the TCG Platform Certificate. The platform certificate enables traceability in the hardware supply chain of a computing device.
2+
3+
4+
This HardwareManifestPluginManager is an experimental feature that is intended to allow multiple clients to utilize Hardware Manifest plugins. The [IHardwareManifest interface](https://www.nuget.org/packages/paccor.HardwareManifestPlugin), available on nuget.org, defines the parameters necessary to customize hardware evidence collection.
5+
6+
7+
See the [HIRS .NET Provisioner](https://github.com/nsacyber/hirs/) code on github for an example implementation.
8+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
paccor is a popular solution for creating the TCG Platform Certificate. The platform certificate enables traceability in the hardware supply chain of a computing device.
2+
3+
4+
This hardware manifest plugin encapsulates paccor's shell scripts into a .NET package. This allows paccor's hardware evidence collection to be integrated into any .NET program that can [manage](https://www.nuget.org/packages/paccor.HardwareManifestPluginManager) the [IHardwareManifest interface](https://www.nuget.org/packages/paccor.HardwareManifestPlugin).
5+
6+
See the [HIRS .NET Provisioner](https://github.com/nsacyber/hirs/) code on github for an example usage of this plugin.
7+

dotnet/paccor_scripts/paccor_scripts/paccor_scripts.csproj

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<RuntimeIdentifiers>linux-x64;win-x64</RuntimeIdentifiers>
8+
<Authors>NSA Cybersecurity Directorate</Authors>
9+
<PackageId>paccor.paccor_scripts</PackageId>
10+
<PackageVersion>1.0.0</PackageVersion>
11+
<PackageTags>paccor;platform;certificate;hardware;manifest;scripts;component;class;registry;evidence;collection</PackageTags>
12+
<PackageReadmeFile>README.md</PackageReadmeFile>
13+
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
14+
<PackageIcon>icon.png</PackageIcon>
15+
<!--Source Link github.com/dotnet/sourcelink -->
16+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
17+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
18+
<IncludeSymbols>true</IncludeSymbols>
19+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
820
</PropertyGroup>
921

1022
<Target Name="CopyFiles" BeforeTargets="PreBuildEvent">
@@ -23,8 +35,18 @@
2335
</ItemGroup>
2436
</Target>
2537

26-
2738
<ItemGroup>
2839
<ProjectReference Include="..\..\HardwareManifestPlugin\HardwareManifestPlugin\HardwareManifestPlugin.csproj" />
2940
</ItemGroup>
41+
42+
<ItemGroup>
43+
<!--Source Link -->
44+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All"/>
45+
</ItemGroup>
46+
<ItemGroup>
47+
<!--Package resources -->
48+
<None Include="..\..\..\LICENSE.md" Pack="true" PackagePath="LICENSE.md" />
49+
<None Include="..\..\..\images\paccorpluginslogoicon.png" Pack="true" PackagePath="icon.png" />
50+
<None Include="README.md" Pack="true" PackagePath="\" />
51+
</ItemGroup>
3052
</Project>

images/paccorlogohdr.png

1.61 MB
Loading

images/paccorlogoicon.png

29 KB
Loading

images/paccorpluginslogohdr.png

1.75 MB
Loading

images/paccorpluginslogoicon.png

31.1 KB
Loading

0 commit comments

Comments
 (0)