Skip to content

Modernize project#35

Merged
jvandertil merged 5 commits intoReflectionMagic:masterfrom
0xced:net6.0
Jun 9, 2023
Merged

Modernize project#35
jvandertil merged 5 commits intoReflectionMagic:masterfrom
0xced:net6.0

Conversation

@0xced
Copy link
Copy Markdown
Collaborator

@0xced 0xced commented Jun 6, 2023

  1. Update target frameworks
  • Drop .NET Standard below 2.0
  • Update .NET Framework from 4.5 to 4.6.2
  • Add .NET 6
  1. Cleanup projects and code

  2. Add global.json

@0xced 0xced force-pushed the net6.0 branch 2 times, most recently from c662fe7 to ebce4b2 Compare June 7, 2023 08:26
@0xced
Copy link
Copy Markdown
Collaborator Author

0xced commented Jun 7, 2023

I have made several other modernizations:

  • Bumped version to 5.0.0 (because dropping target frameworks is a breaking change)
  • Improved NuGet packaging (add the README file in the pacakge and use non deprecated MSBuild properties)
  • Removed obsolete methods. It's been 4 years and nobody complained (the obsolete warning explicitly asked to open an issue on GitHub)
  • Added SourceLink support

I can also help if you want to setup GitHub actions to build + test + deploy a new version of the NuGet package.

0xced added 5 commits June 7, 2023 10:29
1. Update target frameworks
* Drop .NET Standard below 2.0
* Update .NET Framework from 4.5 to 4.6.2
* Add .NET 6

2. Cleanup projects and code

3. Add global.json
Dropping target frameworks is a breaking change, so the major version must be incremented.

Also, `AssemblyName` can be removed since it defaults to the project name.
* Remove redundant `PackageId` (it defaults to `AssemblyName` which itself defaults to the project name)
* Use `PackageLicenseExpression` instead of the deprecated `PackageLicenseUrl`
* Pack the README file
They have been obsolete for 4 years so a new major version is the opportunity to get rid of them.
Also improve the build-nuget script to validate the produced nupkg file.
@davidebbo
Copy link
Copy Markdown
Collaborator

@0xced Doing the GitHub action would be great, and good learning for me. BTW, I emailed you yesterday, asking if you wanted to become contributor, given the limited active support that I can provide.

@jvandertil
Copy link
Copy Markdown
Collaborator

I already have an Azure pipelines for this, but I should modernize it a bit. Maybe a GitHub pipeline makes more sense, but we'll see. I'll give this a run through locally and then push out a new version to NuGet later today :)

@jvandertil jvandertil merged commit 6c6bd6c into ReflectionMagic:master Jun 9, 2023
@davidebbo
Copy link
Copy Markdown
Collaborator

Thanks @jvandertil ! I'm meeting with @0xced at 9pm cest (I think your time zone too?). Would you like to join? I messaged you on twitter as well.

@0xced 0xced deleted the net6.0 branch June 9, 2023 19:08
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.

3 participants