Skip to content

Commit 1fe567d

Browse files
Changes required to create and use CodeProject.AI.Modules.SDK Nuget package
1 parent c6af53d commit 1fe567d

File tree

9 files changed

+218
-16
lines changed

9 files changed

+218
-16
lines changed

modules/ObjectDetectionYOLOv5Net/ObjectDetectionYOLOv5Net.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
</PropertyGroup>
8484

8585
<ItemGroup>
86+
<PackageReference Include="CodeProject.AI.Module.SDK" Version="1.0.1" />
8687
<PackageReference Include="Microsoft.ML.OnnxRuntime" Version="1.16.3" Condition="'$(GpuType)'=='CPU'" />
8788
<PackageReference Include="Microsoft.ML.OnnxRuntime.Gpu" Version="1.16.3" Condition="'$(GpuType)'=='CUDA'" />
8889
<PackageReference Include="Microsoft.ML.OnnxRuntime.OpenVino" Version="1.13.1-dev-20221026-1209-861125ccb" Condition="'$(GpuType)'=='OpenVINO'" />
@@ -118,7 +119,6 @@
118119

119120
<ItemGroup>
120121
<Content Include="favicon.ico" />
121-
<ProjectReference Include="..\..\src\SDK\NET\NET.csproj" />
122122
<Content Update="explore.html" />
123123
</ItemGroup>
124124

src/SDK/NET/NET.csproj

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,25 @@
66
<PropertyGroup>
77
<Name>CodeProject.AI SDK</Name>
88
<RootNamespace>CodeProject.AI.SDK</RootNamespace>
9-
<AssemblyName>CodeProject.AI.SDK</AssemblyName>
9+
<AssemblyName>CodeProject.AI.Module.SDK</AssemblyName>
1010
<ImplicitUsings>enable</ImplicitUsings>
1111
<Nullable>enable</Nullable>
1212
<Platform>AnyCPU</Platform>
1313
<TargetFramework>net7.0</TargetFramework>
1414
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
1515
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
1616
<Title>CodeProject.AI Module SDK</Title>
17-
<Description>Support for creating CodeProject.AI Server Modules in .NET</Description>
17+
<Description>SDK for creating CodeProject.AI Server Modules in .NET</Description>
1818
<PackageProjectUrl>https://www.codeproject.com/AI</PackageProjectUrl>
19+
<Authors>CodeProject</Authors>
20+
<Company />
21+
<Copyright>CodeProject 2024</Copyright>
22+
<RepositoryUrl>https://www.github.com/CodeProject/CodeProject.AI-Server</RepositoryUrl>
23+
<RepositoryType>git</RepositoryType>
24+
<PackageTags>CodeProject.AI; AI;</PackageTags>
25+
<Version>1.0.1</Version>
26+
<PackageLicenseFile>license.md</PackageLicenseFile>
27+
<PackageReadmeFile>readme.md</PackageReadmeFile>
1928
</PropertyGroup>
2029

2130
<!-- Common Release properties -->
@@ -52,4 +61,15 @@
5261
<PackageReference Include="System.Diagnostics.PerformanceCounter" Version="7.0.0" />
5362
</ItemGroup>
5463

64+
<ItemGroup>
65+
<None Update="license.md">
66+
<Pack>True</Pack>
67+
<PackagePath>\</PackagePath>
68+
</None>
69+
<None Update="readme.md">
70+
<Pack>True</Pack>
71+
<PackagePath>\</PackagePath>
72+
</None>
73+
</ItemGroup>
74+
5575
</Project>

src/SDK/NET/license.md

Lines changed: 171 additions & 0 deletions
Large diffs are not rendered by default.

src/SDK/NET/readme.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# CodeProject.AI.Module.SDK
2+
3+
Version: 1.0.1
4+
5+
This is the SDK for the CodeProject.AI.Module. It provides a set of classes and interfaces to help you build your own AI modules.
6+
7+
## Installation
8+
9+
Add the CodeProject.AI.Module.SDK NuGet package to your project.
10+
11+
## Overview
12+
Comming soon...
13+
14+
15+
## Usage
16+
Comming soon...
17+
18+
19+
## Change Log
20+
1.0.1 - Initial Release

src/SDK/NET/sign-nuget.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dotnet nuget sign bin/Release/CodeProject.AI.Module.SDK.1.0.1.nupkg --certificate-fingerprint 460f1f0bb84891b110aac4fd071b6a3c2931cc2b --timestamper http://timestamp.digicert.com

src/demos/modules/DotNetLongProcess/DotNetLongProcess.csproj

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
</PropertyGroup>
6161

6262
<ItemGroup>
63+
<PackageReference Include="CodeProject.AI.Module.SDK" Version="1.0.1" />
6364
<PackageReference Include="SkiaSharp" Version="2.88.6" />
6465
<PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.0" />
6566
</ItemGroup>
@@ -89,10 +90,6 @@
8990
<Content Include="favicon.ico" />
9091
</ItemGroup>
9192

92-
<ItemGroup>
93-
<ProjectReference Include="..\..\..\SDK\NET\NET.csproj" />
94-
</ItemGroup>
95-
9693
<ItemGroup>
9794
<None Update="explore.html">
9895
<CopyToOutputDirectory>Always</CopyToOutputDirectory>

src/demos/modules/DotNetSimple/DotNetSimple.csproj

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151

5252
<ItemGroup>
5353
<!-- Common packages required on all GPU types -->
54+
<PackageReference Include="CodeProject.AI.Module.SDK" Version="1.0.1" />
5455
<PackageReference Include="Yolov8.Net" Version="1.1.4" />
5556
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.4" />
5657
<PackageReference Include="SkiaSharp" Version="2.88.6" />
@@ -92,10 +93,6 @@
9293
<Content Include="favicon.ico" />
9394
</ItemGroup>
9495

95-
<ItemGroup>
96-
<ProjectReference Include="..\..\..\SDK\NET\NET.csproj" />
97-
</ItemGroup>
98-
9996
<ItemGroup>
10097
<None Update="explore.html">
10198
<CopyToOutputDirectory>Always</CopyToOutputDirectory>

src/server/Server.csproj

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ https://learn.microsoft.com/en-us/visualstudio/msbuild/property-functions?view=v
8181
</ItemGroup>
8282

8383
<ItemGroup>
84+
<PackageReference Include="CodeProject.AI.Module.SDK" Version="1.0.1" />
8485
<PackageReference Include="Microsoft.Extensions.Hosting.Systemd" Version="7.0.0" />
8586
<PackageReference Include="Microsoft.Extensions.Hosting.WindowsServices" Version="7.0.0" />
8687
<PackageReference Include="Microsoft.Extensions.Logging" Version="7.0.0" />
@@ -89,10 +90,6 @@ https://learn.microsoft.com/en-us/visualstudio/msbuild/property-functions?view=v
8990
<PackageReference Include="System.Diagnostics.PerformanceCounter" Version="7.0.0" />
9091
</ItemGroup>
9192

92-
<ItemGroup>
93-
<ProjectReference Include="..\SDK\NET\NET.csproj" />
94-
</ItemGroup>
95-
9693
<ItemGroup>
9794
<Content Update="wwwroot\assets\bootstrap.bundle.min.js">
9895
<CopyToOutputDirectory>Always</CopyToOutputDirectory>

tests/QueueServiceTests/CodeProject.AI.API.Server.Backend.Tests.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
</ItemGroup>
2727

2828
<ItemGroup>
29-
<ProjectReference Include="..\..\src\SDK\NET\NET.csproj" />
3029
<ProjectReference Include="..\..\src\server\Server.csproj" />
3130
</ItemGroup>
3231

0 commit comments

Comments
 (0)