-
Notifications
You must be signed in to change notification settings - Fork 6
upgraded to .NET 9.0 and some fixes #20
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
base: main
Are you sure you want to change the base?
Conversation
The target framework for the project has been updated from .NET 6.0 (net6.0) to .NET 9.0 (net9.0). This change is reflected in the <TargetFramework> element within the project file (OpenLibraryNET.csproj).
Updated target frameworks to net9.0 for multiple projects: - OpenLibraryNET.Diagnostics.csproj - OpenLibraryNET.GeneratorAttributes.csproj - OpenLibraryNET.RemoveGeneratorAttributes.csproj - OpenLibraryNET.SourceGenerators.csproj - OpenLibraryNET.Tests.csproj - OpenLibraryNET.csproj Modified method signatures in IOLMyBooksLoader.cs and OLMyBooksLoader.cs to include additional parameters: - TryGetWantToReadAsync - GetWantToReadAsync - TryGetCurrentlyReadingAsync - GetCurrentlyReadingAsync - TryGetAlreadyReadAsync - GetAlreadyReadAsync Enhanced OpenLibraryUtility.BuildMyBooksUri to accept and include additional parameters in URI construction. Ensured OpenLibraryUtility.cs returns default value for empty JSON responses. Updated OpenLibraryNET.csproj to use $(TargetFramework) variable for dynamic paths in Analyzer and PostBuild sections. Added using System.Diagnostics; directive to OpenLibraryUtility.cs.
|
I dont know about changing the target framework to 9.0 -- ive been using this in a Unity project and afaik Unity still doesnt support 9.0 (though that mightve changed with Unity6? not sure) Is there a specific reason you updated it? |
|
I am working with .NET Maui and pushing into the beta of .NET 9.0 for some of the latest features. I don't think it would be an issue to switch it to .NET 8.0 the currently supported version that's not beta. I can do that and try it out if you like. Could also consider having a 9.0 beta of openlibrary.net but let the 8.0 be production if that's not to hard. |
Reorganized using directives in OpenLibraryClient.cs for better clarity. Added OperationKeyHandler class for handling HTTP requests with resilience context. Introduced httpClientName constant for HttpClient naming. Added _cookieContainer field for cookie management. Updated OpenLibraryClient constructor to accept optional configuration actions. Configured ServiceCollection to build a service provider for HttpClient setup. HttpClient is now created using IHttpClientFactory from the service provider.
This commit introduces the OpenLibrary.NET library into the MyNextBook project, updating the application configuration in `MauiProgram.cs` to include `IOpenLibraryService`. UI components in `App.xaml` and `AppShell.xaml` have been modified for improved navigation and command binding. The `MainPageViewModel.cs` now interacts with the OpenLibrary API, enhancing user authentication and data retrieval logic. A new `SeriesTemplates.xaml` file has been added for displaying series items, and an `ErrorHandler.cs` class has been introduced for centralized error logging using Sentry. The `OpenLibraryService.cs` has been expanded to support user login and data retrieval with resilience strategies for HTTP requests. Additionally, the project file `MyNextBook.csproj` has been updated to include necessary references for the OpenLibrary.NET library.
- Bump Visual Studio version to 17.14.35906.104. - Add new OpenLibrary.NET projects: generator attributes, diagnostics, source generators, and remove generator attributes. - Enhance AppShell.xaml with tab icons and layout adjustments. - Improve SeriesTemplates.xaml for better layout and data binding. - Change Series class namespace and introduce OlWorkDataExt record. - Update dependency injection in MauiProgram.cs to use `AddScoped`. - Refactor OpenLibraryService with new properties and methods for book management. - Adjust MyNextBook.csproj to include new project references and target net10.0. - Revise Styles.xaml for improved UI consistency with DevExpress themes. - Update AndroidManifest.xml for new theme compatibility. - Refine error handling in MainPageViewModel.cs and MainPage.xaml. - Change OpenLibrary.NET project files to target net10.0. - Enhance EqualsGenerator and GetHashCodeGenerator for better code generation. - Refactor OpenLibrary.NET data classes to use partial records for extensibility. - Improve logging and resilience handling in OpenLibraryClient.cs.
|
Parâmetros adicionados à API do MyBooks.
|
Added parameters to MyBooks api.
Upgraded to .net 9.0