-
-
Notifications
You must be signed in to change notification settings - Fork 287
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
TestcontainersBuilder deprecation #750
Comments
I am sorry for the inconvenience, by using the module builder you cannot get ride of the obsolete warning yet 😬. Since the generic and module builder sharing the same syntax, we can not distinguish between them and use the obsolete flag for one but not the other. With the next release
If the warnings bothers you, I would recommend to disable it for now: #pragma warning disable 618
private readonly TestcontainerDatabase _postgresqlContainer = new TestcontainersBuilder<PostgreSqlTestcontainer>()
#pragma warning restore 618
If you heavily rely on modules, it might make sense to wait until 2.5.0 is available. 2.4.0 Is a kind of intermediate release that contains necessary preparations. Sorry again. |
@HofmeisterAn thanks for the speedy reply. No problem, was just wondering what I needed to do, I will leave it as it is, and change it once And thanks for the library, really helpful. |
I agree that the message is unfortunate after looking at it again. I will try to complete the migration ASAP. |
FYI: You will find the refactored modules here. We will publish them as NuGets soon as the other modules got replaced. |
Hi, maybe it's just me, but the deprecation seems a bit confusing, if I change the following:
to:
I'm still getting the "obsolete" warning, what do I need to do?
Thanks
The text was updated successfully, but these errors were encountered: