-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GitReleaseManager doesn't run under .NET 7.0 - need to remove support for .NET 4.8 #530
Comments
seems an update to the current of automapper should fix it AutoMapper/AutoMapper#4163 |
@SimonCropp hmm, this is an interesting one... We recently ignored a Dependabot PR to update AutoMapper: Since it isn't compatible with the current projects target frameworks. I would need to dig in and figure out exactly what would be required to get that update in. What exactly is it that it is falling up on? |
Same happening for me. It's failing to export the release notes (with and without |
I just experienced this issue as well. If I understand correctly, it seems there's an issue in the older version of AutoMapper we are referencing when used under .net7. The obvious solution is to upgrade to a more recent version of AutoMapper but they dropped support for Another possibility could be to pin the .NET SDK to 6.x.x. I haven't tried this because I no longer have .NET SDK version 6 installed on my laptop. To be clear: I only experience this on my laptop, not on the CI environment. I suspect the difference is that .NET 6 is not on my machine while it probably is installed in the CI environment. |
I upgraded AutoMapper to the latest release and this had the following consequences:
If loosing compatibility with net48 is not desirable, maybe we could look into my previous suggestion of pinning the .NET SDK to version 6. However, I don't see this as a long term solution because sooner of later we'll want to upgrade the SDK. Otherwise, maybe we could look into switching to an alternative mapping nuget package? @gep13 I'm more than willing to investigate further and to submit a PR but I need some direction. Do you think dropping net48 is acceptable? If not, should I investigate pinning the SDK or should I search for an alternative to AutoMapper? |
Same here. GHA Runner logs, if required: https://github.com/mkevenaar/php_print_ipp/actions/runs/6811642874/job/18522396621#step:10:93 |
Myself and @AdmiringWorm met today to discuss this, and what we thought would be the course of action. We have come up with a plan that we think will work, but we are also happy to take some feedback if folks think there are other things to discuss... Long story short, we still want to have both a .NET Global Tool version, and a Chocolatey package version of GitReleaseManager. Given the requirement to update to the latest version of AutoMapper, this means that we lose support for .NET Standard 2.0, and instead need to use at least .NET Standard 2.1. If we do that, we can no longer use .NET Framework 4.8. And it we do that, we lose the ability to create an application that will work directly on Windows via the Chocolatey package. So, having said all of that, here is the plan... Switch the projects to target the following:
The Cli project will then switch to creating a Standalone Application, which will. then be bundled into the Chocolatey Package, and be deployed from there. To allow this to work as expected, the nuspec file will be updated to remove the dependency on the .NET 4.8 package. The release notes will need to be updated to make this change clear, to ensure that everyone is aware of the change. |
Quick update: I'm experiencing this problem again on my machine despite the fact that installing .NET6 seemed to have fixed the problem a few days ago. This highlights the fact that the only long term solution is what is being implemented in PR #545. |
🎉 This issue has been resolved in version 0.16.0 🎉 The release is available on: Your GitReleaseManager bot 📦🚀 |
https://github.com/VerifyTests/Verify/actions/runs/6254973775/job/16983521929
will look into is more and add details as i find them.
The text was updated successfully, but these errors were encountered: