Skip to content

Target netstandard2.0 and net462; publish from CI - #2

Merged
jasonleenaylor merged 1 commit into
masterfrom
sdk-netstandard
Nov 24, 2026
Merged

jasonleenaylor merged 1 commit into
masterfrom
sdk-netstandard

Conversation

@jasonleenaylor

Copy link
Copy Markdown
Collaborator

Summary

Retargets SIL.ExCSS to netstandard2.0 and net462 so it can be
referenced from .NET Standard and .NET 8 projects. liblcm needs this for
the dictionary configuration move (sillsdev/FieldWorks#1259). The
package version becomes 2.1.0.

Changes

  • ExCSS.csproj is an SDK project targeting netstandard2.0 and
    net462. The net40, net45, and net451 assets are dropped. The
    assembly is still signed with ExCSS.snk.
  • The package is built with dotnet pack. The metadata moved from
    NuSpec/SIL.ExCSS.nuspec into the project file. The .nuget folder
    is removed.
  • The tests are an SDK project on net462 and net8.0 with NUnit 3.
  • The .NET 3.5 projects are removed.
  • Parser.generated.cs and ParserX.cs were never in the old project
    file, so they are excluded from compilation. They stay in the repo.
  • A GitHub Actions workflow builds, tests, and packs on every push and
    pull request. It publishes to nuget.org when a tag named v<Version>
    is pushed, and fails if the tag does not match <Version> in
    ExCSS.csproj.

Compatibility with 2.0.2

  • Every type and member of the published 2.0.2 net40 DLL is present
    with the same signature in both new builds. Apart from the assembly
    version, the only difference is the BeforeFieldInit flag on six
    types, which comes from the newer compiler.
  • The public key token is unchanged (083c9b8a05122ede).
  • Parsing the four test stylesheets and rendering them with
    ToString(false) and ToString(true) gives identical output from
    2.0.2 and both new builds.

Testing

  • dotnet build ExCSS.sln -c Release: 0 warnings, 0 errors.
  • dotnet test ExCSS.sln -c Release: 73 passed on net462 and 73 on
    net8.0.
  • dotnet pack: SIL.ExCSS.2.1.0.nupkg contains
    lib/net462/ExCSS.dll, lib/netstandard2.0/ExCSS.dll, and
    readme.md.

Before the first release

  • The package metadata points at https://github.com/sillsdev/ExCSS,
    so the repo should be transferred to sillsdev before v2.1.0 is
    tagged.
  • The token behind the SILLSDEV_PUBLISH_NUGET_ORG organization secret
    must cover the SIL.ExCSS package, or the publish step fails.

🤖 Generated with Claude Code

Convert ExCSS.csproj to an SDK project that targets netstandard2.0
and net462, so SIL.ExCSS can be referenced from .NET Standard and
.NET 8 projects. The net40, net45, and net451 assets are dropped.
The assembly stays signed with ExCSS.snk and the version becomes
2.1.0.

Package with dotnet pack. The SIL.ExCSS metadata moves from
NuSpec/SIL.ExCSS.nuspec into the project file, and the .nuget
folder and nuget.exe packing are removed.

Convert the tests to an SDK project on net462 and net8.0 with
NUnit 3. Remove the .NET 3.5 projects.

Parser.generated.cs and ParserX.cs were never part of the old
project file, so they are excluded from compilation.

Add a GitHub Actions workflow that builds, tests, and packs on
every push and pull request, and publishes to nuget.org when a
tag named v<Version> is pushed.

Co-Authored-By: Claude <noreply@anthropic.com>
@jasonleenaylor
jasonleenaylor merged commit 0282fa5 into master Nov 24, 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.

1 participant