-
Notifications
You must be signed in to change notification settings - Fork 593
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
[REVERTED] Use file-scoped namesapces in RabbitMQ.Client project #1202
[REVERTED] Use file-scoped namesapces in RabbitMQ.Client project #1202
Conversation
@ArminShoeibi thank you for taking the time. What's the minimum .NET requirement with this change? I see it requires C# 10 but we express requirements in terms of .NET release series. I am not sure we can drop 4.7 at this point, although there were recent discussions about going to 4.8 or 5.0. Using old style namespaces in tests and examples is OK. We need to understand what this PR means for version requirements before merging. |
I see our tests already target .NET 6.0. Nice. RUNNING_TESTS.md is now up-to-date for May 2022, with the potential exception of running individual tests. @ArminShoeibi I'm quite sure the failing tests you see require a locally running RabbitMQ
|
All tests pass on this branch as well:
|
Found the supported minimum version discussion: #1189. |
Oh I got it, So I needed a RabbitMQ node on my localhost |
@ArminShoeibi @lukebakken should we backport this to I can spend some time on doing that if you agree (and no one else volunteers!) |
I'm okay with it. |
I run into
as soon as I change any or all <TargetFrameworks>net6.0;netstandard2.0</TargetFrameworks>
<LangVersion>latest</LangVersion> on the |
I concluded that we should revert this. It's a nice feature but it makes backports of PRs between branches impossible unless they all use it, and it requires C# 10, which means all branches we support in any capacity won't be able to adopt it for a good year if not two. |
This reverts commit 894a296.
…amespaces" This reverts commit 1713f50, reversing changes made to f8c7b9d. It's a nice feature but it makes it impossible to backport things from main to 7.x and 6.x unless those branches also adopt it. So file-scoped namespaces are not necessary worth the backporting pain for library maintainers. Conflicts: projects/RabbitMQ.Client/client/api/DefaultEndpointResolver.cs projects/RabbitMQ.Client/client/impl/AutorecoveringConnection.Recording.cs projects/RabbitMQ.Client/client/impl/SocketFrameHandler.cs
Proposed Changes
Hi there folks.
this merge request changes old namespaces to file-scoped namespaces in RabbitMQ.Client project.
if we want to change other projects such as tests and samples we need to drop net4.7.2 support.
Types of Changes
What types of changes does your code introduce to this project?
Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that apply. You can also fill these out after creatingthe PR. If you're unsure about any of them, don't hesitate to ask on the
mailing list. We're here to help! This is simply a reminder of what we are
going to look for before merging your code.
CONTRIBUTING.md
documentFurther Comments
Tests of net472
Before:
After:
Tests of net6.0
Before:
After: