Repository navigation
Target netstandard2.0 and net462; publish from CI - #2
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Retargets
SIL.ExCSStonetstandard2.0andnet462so it can bereferenced 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.csprojis an SDK project targetingnetstandard2.0andnet462. Thenet40,net45, andnet451assets are dropped. Theassembly is still signed with
ExCSS.snk.dotnet pack. The metadata moved fromNuSpec/SIL.ExCSS.nuspecinto the project file. The.nugetfolderis removed.
net462andnet8.0with NUnit 3.Parser.generated.csandParserX.cswere never in the old projectfile, so they are excluded from compilation. They stay in the repo.
pull request. It publishes to nuget.org when a tag named
v<Version>is pushed, and fails if the tag does not match
<Version>inExCSS.csproj.Compatibility with 2.0.2
net40DLL is presentwith the same signature in both new builds. Apart from the assembly
version, the only difference is the
BeforeFieldInitflag on sixtypes, which comes from the newer compiler.
083c9b8a05122ede).ToString(false)andToString(true)gives identical output from2.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 onnet462and 73 onnet8.0.dotnet pack:SIL.ExCSS.2.1.0.nupkgcontainslib/net462/ExCSS.dll,lib/netstandard2.0/ExCSS.dll, andreadme.md.Before the first release
https://github.com/sillsdev/ExCSS,so the repo should be transferred to sillsdev before
v2.1.0istagged.
SILLSDEV_PUBLISH_NUGET_ORGorganization secretmust cover the
SIL.ExCSSpackage, or the publish step fails.🤖 Generated with Claude Code