Skip to content

Scaffold multi-target Tekmetric NuGet library and CI packaging workflow - #1

Merged
chrpai merged 3 commits into
mainfrom
copilot/create-dotnet-standard-class-library
Jul 11, 2026
Merged

Scaffold multi-target Tekmetric NuGet library and CI packaging workflow#1
chrpai merged 3 commits into
mainfrom
copilot/create-dotnet-standard-class-library

Conversation

Copilot AI commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

This PR introduces a C# class library suitable for NuGet distribution and configures it to target both modern .NET (net10.0) and legacy .NET Framework (net45). It also adds a GitHub Actions pipeline to build and pack the library consistently.

  • Library scaffolding

    • Added a new SDK-style class library project under Tekmetric/.
    • Kept the surface minimal (Class1.cs) to establish the package baseline without adding extra API shape.
  • Targeting + package metadata

    • Updated project configuration to multi-target net10.0;net45.
    • Added package metadata (PackageId, Authors, Description, PackageReadmeFile).
    • Included repository README.md in the packed .nupkg.
    • Added Microsoft.NETFramework.ReferenceAssemblies for net45 builds in non-Windows environments.
  • GitHub Actions pipeline

    • Added .github/workflows/ci.yml to run restore/build/pack and publish package artifacts.
    • Set explicit workflow token permissions (contents: read) for least-privilege defaults.
  • Repository hygiene

    • Added .gitignore entries for bin/, obj/, and artifacts/ to avoid committing build outputs.
<PropertyGroup>
  <TargetFrameworks>net10.0;net45</TargetFrameworks>
  <PackageId>Tekmetric</PackageId>
  <PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net45'">
  <PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" PrivateAssets="All" />
</ItemGroup>
Original prompt

I want to create a .NET Standard class library authored in C#. It should support .NET 10.0 and .NET Framework 4.5. It will be a nuget package and needs a github actions pipeline.

Copilot AI changed the title [WIP] Add .NET Standard class library for NuGet package Scaffold multi-target Tekmetric NuGet library and CI packaging workflow Jul 11, 2026
Copilot AI requested a review from chrpai July 11, 2026 19:23
@chrpai
chrpai marked this pull request as ready for review July 11, 2026 19:31
@chrpai
chrpai merged commit b6e822e into main Jul 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants