diff --git a/.gitignore b/.gitignore index 3636aa8a..bd598afb 100644 --- a/.gitignore +++ b/.gitignore @@ -111,3 +111,10 @@ /Clients/BlogRazor/bin/Debug/net9.0 /BlogWebApp/BlogBlazor/bin/Debug/net9.0 /BlogWebApp/BlogBlazor/obj +/Sdk/Blog.Sdk/bin/Debug/net10.0 +/BlogWebApp/Services/Blog.CommonServices/bin/Debug/net10.0 +/BlogWebApp/Aspire/Blog.Aspire/Blog.Aspire.ServiceDefaults/bin/Debug/net10.0 +/Clients/BlogRazor/bin/Debug/net10.0 +/BlogWebApp/Tests/Blog.ServicesTests/bin/Debug/net10.0 +/BlogWebApp/Tests/Blog.UnitTests/bin/Debug/net10.0 +/Sdk/Blog.Sdk.ExampleUsage/bin/Debug/net10.0 diff --git a/BlogWebApp/Aspire/Blog.Aspire/Blog.Aspire.AppHost/Blog.Aspire.AppHost.csproj b/BlogWebApp/Aspire/Blog.Aspire/Blog.Aspire.AppHost/Blog.Aspire.AppHost.csproj index a1b93d29..d5804779 100644 --- a/BlogWebApp/Aspire/Blog.Aspire/Blog.Aspire.AppHost/Blog.Aspire.AppHost.csproj +++ b/BlogWebApp/Aspire/Blog.Aspire/Blog.Aspire.AppHost/Blog.Aspire.AppHost.csproj @@ -1,18 +1,18 @@  - + Exe - net9.0 + net10.0 enable enable 71670871-af4d-479a-9cab-951af46f8cf7 - - + + diff --git a/BlogWebApp/Aspire/Blog.Aspire/Blog.Aspire.ServiceDefaults/Blog.Aspire.ServiceDefaults.csproj b/BlogWebApp/Aspire/Blog.Aspire/Blog.Aspire.ServiceDefaults/Blog.Aspire.ServiceDefaults.csproj index 7f40da62..79d19adf 100644 --- a/BlogWebApp/Aspire/Blog.Aspire/Blog.Aspire.ServiceDefaults/Blog.Aspire.ServiceDefaults.csproj +++ b/BlogWebApp/Aspire/Blog.Aspire/Blog.Aspire.ServiceDefaults/Blog.Aspire.ServiceDefaults.csproj @@ -1,7 +1,7 @@ - net9.0 + net10.0 enable enable true @@ -10,13 +10,13 @@ - - - - - - - + + + + + + + diff --git a/BlogWebApp/Blog.Web/Blog.Web.csproj b/BlogWebApp/Blog.Web/Blog.Web.csproj index d12da3f9..334b9e82 100644 --- a/BlogWebApp/Blog.Web/Blog.Web.csproj +++ b/BlogWebApp/Blog.Web/Blog.Web.csproj @@ -1,7 +1,7 @@  - net9.0 + net10.0 true Latest false @@ -22,14 +22,14 @@ - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + diff --git a/BlogWebApp/Blog.Web/Controllers/V1/AccountsController.cs b/BlogWebApp/Blog.Web/Controllers/V1/AccountsController.cs index c65286a7..de0a22bd 100644 --- a/BlogWebApp/Blog.Web/Controllers/V1/AccountsController.cs +++ b/BlogWebApp/Blog.Web/Controllers/V1/AccountsController.cs @@ -13,15 +13,15 @@ using Blog.Services.Core.Utilities; using CommonServices.EmailServices.Interfaces; using EntityServices.ControllerContext; -using EntityServices.Identity.Auth; -using EntityServices.Identity.Registration; -using EntityServices.Identity.User; using Blog.Contracts.V1; using Blog.Contracts.V1.Requests.UsersRequests; using Blog.Contracts.V1.Responses.UsersResponses; using Blog.Contracts.V1.Responses.Chart; using Core.Consts; using Cache; +using EntityServices.EntityFrameworkServices.Identity.Auth; +using EntityServices.EntityFrameworkServices.Identity.Registration; +using EntityServices.EntityFrameworkServices.Identity.User; /// /// Accounts controller. diff --git a/BlogWebApp/Blog.Web/Controllers/V1/MessagesController.cs b/BlogWebApp/Blog.Web/Controllers/V1/MessagesController.cs index 844e3035..4cc3f793 100644 --- a/BlogWebApp/Blog.Web/Controllers/V1/MessagesController.cs +++ b/BlogWebApp/Blog.Web/Controllers/V1/MessagesController.cs @@ -1,5 +1,4 @@ using Blog.EntityServices.ControllerContext; -using Blog.EntityServices.Interfaces; namespace Blog.Web.Controllers.V1; @@ -16,6 +15,7 @@ namespace Blog.Web.Controllers.V1; using Blog.Contracts.V1.Responses; using Core.Consts; using Data.Specifications; +using EntityServices.Interfaces; /// /// Messages controller. diff --git a/BlogWebApp/Blog.Web/StartupConfigureServicesInstallers/ApplicationServicesInstaller.cs b/BlogWebApp/Blog.Web/StartupConfigureServicesInstallers/ApplicationServicesInstaller.cs index 605f48a0..3591d50f 100644 --- a/BlogWebApp/Blog.Web/StartupConfigureServicesInstallers/ApplicationServicesInstaller.cs +++ b/BlogWebApp/Blog.Web/StartupConfigureServicesInstallers/ApplicationServicesInstaller.cs @@ -1,6 +1,4 @@ -using Blog.EntityServices; - -namespace Blog.Web.StartupConfigureServicesInstallers; +namespace Blog.Web.StartupConfigureServicesInstallers; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Identity; @@ -23,11 +21,12 @@ namespace Blog.Web.StartupConfigureServicesInstallers; using CommonServices.EmailServices; using CommonServices.Interfaces; using EntityServices.ControllerContext; -using EntityServices.Identity.Auth; -using EntityServices.Identity.User; -using EntityServices.Identity.RefreshToken; -using EntityServices.Identity.Registration; using EntityServices.Interfaces; +using EntityServices.EntityFrameworkServices; +using EntityServices.EntityFrameworkServices.Identity.Auth; +using EntityServices.EntityFrameworkServices.Identity.RefreshToken; +using EntityServices.EntityFrameworkServices.Identity.Registration; +using EntityServices.EntityFrameworkServices.Identity.User; /// /// Application services installer. diff --git a/BlogWebApp/Data/Blog.Data.Core/Blog.Data.Core.csproj b/BlogWebApp/Data/Blog.Data.Core/Blog.Data.Core.csproj index 1dad205f..0207f449 100644 --- a/BlogWebApp/Data/Blog.Data.Core/Blog.Data.Core.csproj +++ b/BlogWebApp/Data/Blog.Data.Core/Blog.Data.Core.csproj @@ -1,11 +1,11 @@  - net9.0 + net10.0 - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/BlogWebApp/Data/Blog.Data.Models/Blog.Data.Models.csproj b/BlogWebApp/Data/Blog.Data.Models/Blog.Data.Models.csproj index ca8ddfc7..daacfc31 100644 --- a/BlogWebApp/Data/Blog.Data.Models/Blog.Data.Models.csproj +++ b/BlogWebApp/Data/Blog.Data.Models/Blog.Data.Models.csproj @@ -1,13 +1,13 @@  - net9.0 + net10.0 - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/BlogWebApp/Data/Blog.Data/Blog.Data.csproj b/BlogWebApp/Data/Blog.Data/Blog.Data.csproj index 2600116d..421a66c5 100644 --- a/BlogWebApp/Data/Blog.Data/Blog.Data.csproj +++ b/BlogWebApp/Data/Blog.Data/Blog.Data.csproj @@ -1,7 +1,7 @@  - net9.0 + net10.0 @@ -17,19 +17,19 @@ - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/BlogWebApp/Data/Blog.Data/Repository.cs b/BlogWebApp/Data/Blog.Data/Repository.cs index d2566254..334d543e 100644 --- a/BlogWebApp/Data/Blog.Data/Repository.cs +++ b/BlogWebApp/Data/Blog.Data/Repository.cs @@ -1,4 +1,4 @@ -// +// // Copyright (c) Blog. All rights reserved. // @@ -17,7 +17,7 @@ namespace Blog.Data; using System.Threading.Tasks; /// -/// Table methods. +/// Repository. /// /// TEntity. public class Repository : IRepository diff --git a/BlogWebApp/Services/Blog.CommonServices/Blog.CommonServices.csproj b/BlogWebApp/Services/Blog.CommonServices/Blog.CommonServices.csproj index a147bfef..c0d2d5f3 100644 --- a/BlogWebApp/Services/Blog.CommonServices/Blog.CommonServices.csproj +++ b/BlogWebApp/Services/Blog.CommonServices/Blog.CommonServices.csproj @@ -1,7 +1,7 @@ - net9.0 + net10.0 diff --git a/BlogWebApp/Services/Blog.Services.Core/Blog.Services.Core.csproj b/BlogWebApp/Services/Blog.Services.Core/Blog.Services.Core.csproj index 5ed07351..f740fd6e 100644 --- a/BlogWebApp/Services/Blog.Services.Core/Blog.Services.Core.csproj +++ b/BlogWebApp/Services/Blog.Services.Core/Blog.Services.Core.csproj @@ -1,19 +1,19 @@  - net9.0 + net10.0 - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + @@ -27,8 +27,4 @@ - - - - diff --git a/BlogWebApp/Services/Blog.Services/Blog.EntityServices.csproj b/BlogWebApp/Services/Blog.Services/Blog.EntityServices.csproj index c95a9afc..36a88b73 100644 --- a/BlogWebApp/Services/Blog.Services/Blog.EntityServices.csproj +++ b/BlogWebApp/Services/Blog.Services/Blog.EntityServices.csproj @@ -1,14 +1,14 @@  - net9.0 + net10.0 Blog.EntityServices Blog.EntityServices - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/BlogWebApp/Services/Blog.Services/ControllerContext/MyControllerContext.cs b/BlogWebApp/Services/Blog.Services/ControllerContext/MyControllerContext.cs index 16b8cb55..04c2d023 100644 --- a/BlogWebApp/Services/Blog.Services/ControllerContext/MyControllerContext.cs +++ b/BlogWebApp/Services/Blog.Services/ControllerContext/MyControllerContext.cs @@ -8,7 +8,7 @@ namespace Blog.EntityServices.ControllerContext; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Data.Models; -using Identity.User; +using EntityFrameworkServices.Identity.User; /// /// Controller context. diff --git a/BlogWebApp/Services/Blog.Services/CommentsService.cs b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/CommentsService.cs similarity index 98% rename from BlogWebApp/Services/Blog.Services/CommentsService.cs rename to BlogWebApp/Services/Blog.Services/EntityFrameworkServices/CommentsService.cs index cf528de8..6f9b4e89 100644 --- a/BlogWebApp/Services/Blog.Services/CommentsService.cs +++ b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/CommentsService.cs @@ -2,7 +2,7 @@ // Copyright (c) PlaceholderCompany. All rights reserved. // -namespace Blog.EntityServices; +namespace Blog.EntityServices.EntityFrameworkServices; using System.Linq; using System.Threading.Tasks; diff --git a/BlogWebApp/Services/Blog.Services/Identity/Auth/AuthService.cs b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Identity/Auth/AuthService.cs similarity index 98% rename from BlogWebApp/Services/Blog.Services/Identity/Auth/AuthService.cs rename to BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Identity/Auth/AuthService.cs index d0c8dbca..5e256c0d 100644 --- a/BlogWebApp/Services/Blog.Services/Identity/Auth/AuthService.cs +++ b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Identity/Auth/AuthService.cs @@ -2,7 +2,7 @@ // Copyright (c) PlaceholderCompany. All rights reserved. // -namespace Blog.EntityServices.Identity.Auth; +namespace Blog.EntityServices.EntityFrameworkServices.Identity.Auth; using System; using System.Linq; diff --git a/BlogWebApp/Services/Blog.Services/Identity/Auth/IAuthService.cs b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Identity/Auth/IAuthService.cs similarity index 96% rename from BlogWebApp/Services/Blog.Services/Identity/Auth/IAuthService.cs rename to BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Identity/Auth/IAuthService.cs index 207647af..d455c775 100644 --- a/BlogWebApp/Services/Blog.Services/Identity/Auth/IAuthService.cs +++ b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Identity/Auth/IAuthService.cs @@ -2,7 +2,7 @@ // Copyright (c) PlaceholderCompany. All rights reserved. // -namespace Blog.EntityServices.Identity.Auth; +namespace Blog.EntityServices.EntityFrameworkServices.Identity.Auth; using Data.Models; using Microsoft.AspNetCore.Identity; diff --git a/BlogWebApp/Services/Blog.Services/Identity/RefreshToken/IRefreshTokenService.cs b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Identity/RefreshToken/IRefreshTokenService.cs similarity index 91% rename from BlogWebApp/Services/Blog.Services/Identity/RefreshToken/IRefreshTokenService.cs rename to BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Identity/RefreshToken/IRefreshTokenService.cs index 748ba8b8..5de4104a 100644 --- a/BlogWebApp/Services/Blog.Services/Identity/RefreshToken/IRefreshTokenService.cs +++ b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Identity/RefreshToken/IRefreshTokenService.cs @@ -2,7 +2,7 @@ // Copyright (c) PlaceholderCompany. All rights reserved. // -namespace Blog.EntityServices.Identity.RefreshToken; +namespace Blog.EntityServices.EntityFrameworkServices.Identity.RefreshToken; using System.Threading.Tasks; diff --git a/BlogWebApp/Services/Blog.Services/Identity/RefreshToken/RefreshTokenService.cs b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Identity/RefreshToken/RefreshTokenService.cs similarity index 97% rename from BlogWebApp/Services/Blog.Services/Identity/RefreshToken/RefreshTokenService.cs rename to BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Identity/RefreshToken/RefreshTokenService.cs index b8d19a64..f541e04e 100644 --- a/BlogWebApp/Services/Blog.Services/Identity/RefreshToken/RefreshTokenService.cs +++ b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Identity/RefreshToken/RefreshTokenService.cs @@ -2,7 +2,7 @@ // Copyright (c) PlaceholderCompany. All rights reserved. // -namespace Blog.EntityServices.Identity.RefreshToken; +namespace Blog.EntityServices.EntityFrameworkServices.Identity.RefreshToken; using System.Linq; using System.Threading.Tasks; diff --git a/BlogWebApp/Services/Blog.Services/Identity/Registration/IRegistrationService.cs b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Identity/Registration/IRegistrationService.cs similarity index 93% rename from BlogWebApp/Services/Blog.Services/Identity/Registration/IRegistrationService.cs rename to BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Identity/Registration/IRegistrationService.cs index 890e8a45..869286b9 100644 --- a/BlogWebApp/Services/Blog.Services/Identity/Registration/IRegistrationService.cs +++ b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Identity/Registration/IRegistrationService.cs @@ -2,7 +2,7 @@ // Copyright (c) PlaceholderCompany. All rights reserved. // -namespace Blog.EntityServices.Identity.Registration; +namespace Blog.EntityServices.EntityFrameworkServices.Identity.Registration; using Data.Models; using Microsoft.AspNetCore.Identity; diff --git a/BlogWebApp/Services/Blog.Services/Identity/Registration/RegistrationService.cs b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Identity/Registration/RegistrationService.cs similarity index 96% rename from BlogWebApp/Services/Blog.Services/Identity/Registration/RegistrationService.cs rename to BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Identity/Registration/RegistrationService.cs index edf0de44..41b54d05 100644 --- a/BlogWebApp/Services/Blog.Services/Identity/Registration/RegistrationService.cs +++ b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Identity/Registration/RegistrationService.cs @@ -2,7 +2,7 @@ // Copyright (c) PlaceholderCompany. All rights reserved. // -namespace Blog.EntityServices.Identity.Registration; +namespace Blog.EntityServices.EntityFrameworkServices.Identity.Registration; using System; using System.Text.RegularExpressions; diff --git a/BlogWebApp/Services/Blog.Services/Identity/User/IUserService.cs b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Identity/User/IUserService.cs similarity index 98% rename from BlogWebApp/Services/Blog.Services/Identity/User/IUserService.cs rename to BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Identity/User/IUserService.cs index 1d40ef9a..31d55464 100644 --- a/BlogWebApp/Services/Blog.Services/Identity/User/IUserService.cs +++ b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Identity/User/IUserService.cs @@ -2,7 +2,7 @@ // Copyright (c) PlaceholderCompany. All rights reserved. // -namespace Blog.EntityServices.Identity.User; +namespace Blog.EntityServices.EntityFrameworkServices.Identity.User; using Contracts.V1.Responses.Chart; using Core.Infrastructure.Pagination; diff --git a/BlogWebApp/Services/Blog.Services/Identity/User/UserService.cs b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Identity/User/UserService.cs similarity index 99% rename from BlogWebApp/Services/Blog.Services/Identity/User/UserService.cs rename to BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Identity/User/UserService.cs index 1fa7fa2f..7695c194 100644 --- a/BlogWebApp/Services/Blog.Services/Identity/User/UserService.cs +++ b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Identity/User/UserService.cs @@ -2,7 +2,7 @@ // Copyright (c) PlaceholderCompany. All rights reserved. // -namespace Blog.EntityServices.Identity.User; +namespace Blog.EntityServices.EntityFrameworkServices.Identity.User; using AutoMapper; using Contracts.V1.Responses.Chart; diff --git a/BlogWebApp/Services/Blog.Services/Interfaces/ICommentsService.cs b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Interfaces/ICommentsService.cs similarity index 100% rename from BlogWebApp/Services/Blog.Services/Interfaces/ICommentsService.cs rename to BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Interfaces/ICommentsService.cs diff --git a/BlogWebApp/Services/Blog.Services/Interfaces/IMessagesService.cs b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Interfaces/IMessagesService.cs similarity index 100% rename from BlogWebApp/Services/Blog.Services/Interfaces/IMessagesService.cs rename to BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Interfaces/IMessagesService.cs diff --git a/BlogWebApp/Services/Blog.Services/Interfaces/IPostsService.cs b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Interfaces/IPostsService.cs similarity index 100% rename from BlogWebApp/Services/Blog.Services/Interfaces/IPostsService.cs rename to BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Interfaces/IPostsService.cs diff --git a/BlogWebApp/Services/Blog.Services/Interfaces/IPostsTagsRelationsService.cs b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Interfaces/IPostsTagsRelationsService.cs similarity index 95% rename from BlogWebApp/Services/Blog.Services/Interfaces/IPostsTagsRelationsService.cs rename to BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Interfaces/IPostsTagsRelationsService.cs index d68f1786..4e7db37e 100644 --- a/BlogWebApp/Services/Blog.Services/Interfaces/IPostsTagsRelationsService.cs +++ b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Interfaces/IPostsTagsRelationsService.cs @@ -12,7 +12,7 @@ namespace Blog.EntityServices.Interfaces; /// /// Posts tags relations service interface. /// -/// +/// public interface IPostsTagsRelationsService : IGeneralService { /// diff --git a/BlogWebApp/Services/Blog.Services/Interfaces/IProfileService.cs b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Interfaces/IProfileService.cs similarity index 100% rename from BlogWebApp/Services/Blog.Services/Interfaces/IProfileService.cs rename to BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Interfaces/IProfileService.cs diff --git a/BlogWebApp/Services/Blog.Services/Interfaces/ITagsService.cs b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Interfaces/ITagsService.cs similarity index 94% rename from BlogWebApp/Services/Blog.Services/Interfaces/ITagsService.cs rename to BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Interfaces/ITagsService.cs index 69c939ef..a82800ff 100644 --- a/BlogWebApp/Services/Blog.Services/Interfaces/ITagsService.cs +++ b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Interfaces/ITagsService.cs @@ -14,7 +14,7 @@ namespace Blog.EntityServices.Interfaces; /// /// Tags service interface. /// -/// +/// public interface ITagsService : IGeneralService { /// diff --git a/BlogWebApp/Services/Blog.Services/MessagesService.cs b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/MessagesService.cs similarity index 91% rename from BlogWebApp/Services/Blog.Services/MessagesService.cs rename to BlogWebApp/Services/Blog.Services/EntityFrameworkServices/MessagesService.cs index 1d0ea8ea..c9e50317 100644 --- a/BlogWebApp/Services/Blog.Services/MessagesService.cs +++ b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/MessagesService.cs @@ -2,12 +2,12 @@ // Copyright (c) PlaceholderCompany. All rights reserved. // -namespace Blog.EntityServices; +namespace Blog.EntityServices.EntityFrameworkServices; +using Interfaces; using Data.Models; using Data.Repository; using GeneralService; -using Interfaces; /// /// Messages service. diff --git a/BlogWebApp/Services/Blog.Services/PostsService.cs b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/PostsService.cs similarity index 83% rename from BlogWebApp/Services/Blog.Services/PostsService.cs rename to BlogWebApp/Services/Blog.Services/EntityFrameworkServices/PostsService.cs index 3189c506..c08a9a99 100644 --- a/BlogWebApp/Services/Blog.Services/PostsService.cs +++ b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/PostsService.cs @@ -2,9 +2,12 @@ // Copyright (c) PlaceholderCompany. All rights reserved. // -namespace Blog.EntityServices; +using Blog.Services.Core.Dtos.Exports; + +namespace Blog.EntityServices.EntityFrameworkServices; using AutoMapper; +using Interfaces; using Blog.Services.Core; using Blog.Services.Core.Dtos; using Blog.Services.Core.Dtos.Posts; @@ -15,7 +18,6 @@ namespace Blog.EntityServices; using Data.Repository; using Data.Specifications; using GeneralService; -using Interfaces; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; @@ -39,8 +41,8 @@ public class PostsService( IRepository repo, ICommentsService commentsService, IMapper mapper, - IPostsTagsRelationsService postsTagsRelationsService, - IExportsService exportsService) + IPostsTagsRelationsService postsTagsRelationsService) + //IExportsService exportsService) : GeneralService(repo), IPostsService { /// @@ -61,7 +63,7 @@ public class PostsService( /// /// The exports service. /// - private readonly IExportsService exportsService = exportsService; + // private readonly IExportsService exportsService = exportsService; /// public async Task GetPostAsync(int id) @@ -288,4 +290,59 @@ public async Task GetPostsActivity() }) .ToListAsync(), }; + + /// + public async Task ExportPostsToExcel(PostsSearchParametersDto searchParameters) + { + try + { + var posts = await GetPostsAsync(searchParameters); + + var exportRequest = new ExportDataIntoExcelDto + { + Headers = + [ + new ("Title"), + new ("Description"), + new ("Content"), + new ("Author"), + new ("Seen"), + new ("Likes"), + new ("Dislikes"), + new ("ImageUrl"), + new ("Tags"), + new ("Comments count") + ], + Rows = [] + }; + + foreach (var post in posts.Posts) + { + var tags = string.Empty; + _ = post.Tags.Select(x => tags = string.IsNullOrEmpty(tags) ? x.Title : $"{tags}, {x.Title}"); + + var dataTable = new DataTable(); + var row = dataTable.NewRow(); + row[0] = post.Title; + row[1] = post.Description; + row[2] = post.Content; + row[3] = $"{post.Author.FirstName} {post.Author.LastName}({post.Author.Email})"; + row[4] = post.Seen; + row[5] = post.Likes; + row[6] = post.Dislikes; + row[7] = post.ImageUrl; + row[8] = tags; + row[9] = post.Comments.Count; + + exportRequest.Rows.Add(row); + } + + return null; //this.exportsService.ExportDataIntoExcel(exportRequest); + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + } } \ No newline at end of file diff --git a/BlogWebApp/Services/Blog.Services/PostsTagsRelationsService.cs b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/PostsTagsRelationsService.cs similarity index 98% rename from BlogWebApp/Services/Blog.Services/PostsTagsRelationsService.cs rename to BlogWebApp/Services/Blog.Services/EntityFrameworkServices/PostsTagsRelationsService.cs index d330f1cc..f03bf0d8 100644 --- a/BlogWebApp/Services/Blog.Services/PostsTagsRelationsService.cs +++ b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/PostsTagsRelationsService.cs @@ -2,16 +2,16 @@ // Copyright (c) PlaceholderCompany. All rights reserved. // -namespace Blog.EntityServices; +namespace Blog.EntityServices.EntityFrameworkServices; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; +using Interfaces; using Data.Models; using Data.Repository; using GeneralService; -using Interfaces; /// /// Posts tags relations service. diff --git a/BlogWebApp/Services/Blog.Services/ProfileService.cs b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/ProfileService.cs similarity index 95% rename from BlogWebApp/Services/Blog.Services/ProfileService.cs rename to BlogWebApp/Services/Blog.Services/EntityFrameworkServices/ProfileService.cs index 72e5a64d..628e2603 100644 --- a/BlogWebApp/Services/Blog.Services/ProfileService.cs +++ b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/ProfileService.cs @@ -2,7 +2,7 @@ // Copyright (c) PlaceholderCompany. All rights reserved. // -namespace Blog.EntityServices; +namespace Blog.EntityServices.EntityFrameworkServices; using System.Linq; using System.Threading.Tasks; @@ -39,7 +39,7 @@ public async Task GetProfile(int profileId) { var profile = await this.Table.Where(x => x.Id == profileId).Include(x => x.User).FirstOrDefaultAsync(); var user = this.mapper.Map(profile.User); - + return user; } } \ No newline at end of file diff --git a/BlogWebApp/Services/Blog.Services/Security/Authorization/BlogAuthorizeAttribute.cs b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Security/Authorization/BlogAuthorizeAttribute.cs similarity index 93% rename from BlogWebApp/Services/Blog.Services/Security/Authorization/BlogAuthorizeAttribute.cs rename to BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Security/Authorization/BlogAuthorizeAttribute.cs index 794f0f24..8957fcd0 100644 --- a/BlogWebApp/Services/Blog.Services/Security/Authorization/BlogAuthorizeAttribute.cs +++ b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Security/Authorization/BlogAuthorizeAttribute.cs @@ -2,7 +2,7 @@ // Copyright (c) PlaceholderCompany. All rights reserved. // -namespace Blog.EntityServices.Security.Authorization; +namespace Blog.EntityServices.EntityFrameworkServices.Security.Authorization; using Core.Consts; using Microsoft.AspNetCore.Authorization; diff --git a/BlogWebApp/Services/Blog.Services/Security/Authorization/PermissionsHandler.cs b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Security/Authorization/PermissionsHandler.cs similarity index 95% rename from BlogWebApp/Services/Blog.Services/Security/Authorization/PermissionsHandler.cs rename to BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Security/Authorization/PermissionsHandler.cs index 7ca496d9..ee729347 100644 --- a/BlogWebApp/Services/Blog.Services/Security/Authorization/PermissionsHandler.cs +++ b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Security/Authorization/PermissionsHandler.cs @@ -2,9 +2,10 @@ // Copyright (c) PlaceholderCompany. All rights reserved. // -namespace Blog.EntityServices.Security.Authorization; +namespace Blog.EntityServices.EntityFrameworkServices.Security.Authorization; using System.Threading.Tasks; +using Security; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; diff --git a/BlogWebApp/Services/Blog.Services/Security/Authorization/PermissionsPolicyProvider.cs b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Security/Authorization/PermissionsPolicyProvider.cs similarity index 97% rename from BlogWebApp/Services/Blog.Services/Security/Authorization/PermissionsPolicyProvider.cs rename to BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Security/Authorization/PermissionsPolicyProvider.cs index 4eb7d29b..c44d3b00 100644 --- a/BlogWebApp/Services/Blog.Services/Security/Authorization/PermissionsPolicyProvider.cs +++ b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Security/Authorization/PermissionsPolicyProvider.cs @@ -2,7 +2,7 @@ // Copyright (c) PlaceholderCompany. All rights reserved. // -namespace Blog.EntityServices.Security.Authorization; +namespace Blog.EntityServices.EntityFrameworkServices.Security.Authorization; using Core.Consts; using Microsoft.AspNetCore.Authorization; diff --git a/BlogWebApp/Services/Blog.Services/Security/Authorization/PermissionsRequirement.cs b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Security/Authorization/PermissionsRequirement.cs similarity index 91% rename from BlogWebApp/Services/Blog.Services/Security/Authorization/PermissionsRequirement.cs rename to BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Security/Authorization/PermissionsRequirement.cs index 13efa42e..cd9f8add 100644 --- a/BlogWebApp/Services/Blog.Services/Security/Authorization/PermissionsRequirement.cs +++ b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Security/Authorization/PermissionsRequirement.cs @@ -2,7 +2,7 @@ // Copyright (c) PlaceholderCompany. All rights reserved. // -namespace Blog.EntityServices.Security.Authorization; +namespace Blog.EntityServices.EntityFrameworkServices.Security.Authorization; using Microsoft.AspNetCore.Authorization; diff --git a/BlogWebApp/Services/Blog.Services/Security/EncryptionService.cs b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Security/EncryptionService.cs similarity index 98% rename from BlogWebApp/Services/Blog.Services/Security/EncryptionService.cs rename to BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Security/EncryptionService.cs index 5226b928..b808a1fb 100644 --- a/BlogWebApp/Services/Blog.Services/Security/EncryptionService.cs +++ b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Security/EncryptionService.cs @@ -2,7 +2,7 @@ // Copyright (c) PlaceholderCompany. All rights reserved. // -namespace Blog.EntityServices.Security; +namespace Blog.EntityServices.EntityFrameworkServices.Security; using System; using System.Security.Cryptography; diff --git a/BlogWebApp/Services/Blog.Services/Security/IEncryptionService.cs b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Security/IEncryptionService.cs similarity index 96% rename from BlogWebApp/Services/Blog.Services/Security/IEncryptionService.cs rename to BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Security/IEncryptionService.cs index 1f7c4770..c77e44fb 100644 --- a/BlogWebApp/Services/Blog.Services/Security/IEncryptionService.cs +++ b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Security/IEncryptionService.cs @@ -2,7 +2,7 @@ // Copyright (c) PlaceholderCompany. All rights reserved. // -namespace Blog.EntityServices.Security; +namespace Blog.EntityServices.EntityFrameworkServices.Security; /// /// Encryption service. diff --git a/BlogWebApp/Services/Blog.Services/Security/IPermissionService.cs b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Security/IPermissionService.cs similarity index 85% rename from BlogWebApp/Services/Blog.Services/Security/IPermissionService.cs rename to BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Security/IPermissionService.cs index 1edb4719..a3db8ae0 100644 --- a/BlogWebApp/Services/Blog.Services/Security/IPermissionService.cs +++ b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Security/IPermissionService.cs @@ -2,7 +2,7 @@ // Copyright (c) PlaceholderCompany. All rights reserved. // -namespace Blog.EntityServices.Security; +namespace Blog.EntityServices.EntityFrameworkServices.Security; /// /// Permission service interface. diff --git a/BlogWebApp/Services/Blog.Services/Security/PermissionService.cs b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Security/PermissionService.cs similarity index 96% rename from BlogWebApp/Services/Blog.Services/Security/PermissionService.cs rename to BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Security/PermissionService.cs index 6ffc20f3..bca79c46 100644 --- a/BlogWebApp/Services/Blog.Services/Security/PermissionService.cs +++ b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/Security/PermissionService.cs @@ -2,7 +2,7 @@ // Copyright (c) PlaceholderCompany. All rights reserved. // -namespace Blog.EntityServices.Security; +namespace Blog.EntityServices.EntityFrameworkServices.Security; using Data.Models; using Blog.Services.Core.Caching; diff --git a/BlogWebApp/Services/Blog.Services/TagsService.cs b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/TagsService.cs similarity index 98% rename from BlogWebApp/Services/Blog.Services/TagsService.cs rename to BlogWebApp/Services/Blog.Services/EntityFrameworkServices/TagsService.cs index 6fc51a6a..3bb09d7e 100644 --- a/BlogWebApp/Services/Blog.Services/TagsService.cs +++ b/BlogWebApp/Services/Blog.Services/EntityFrameworkServices/TagsService.cs @@ -2,7 +2,7 @@ // Copyright (c) PlaceholderCompany. All rights reserved. // -namespace Blog.EntityServices; +namespace Blog.EntityServices.EntityFrameworkServices; using System.Linq; using System.Threading.Tasks; diff --git a/BlogWebApp/Tests/Blog.IntegrationTests/Blog.IntegrationTests.csproj b/BlogWebApp/Tests/Blog.IntegrationTests/Blog.IntegrationTests.csproj index 3e11fbbd..54d918ce 100644 --- a/BlogWebApp/Tests/Blog.IntegrationTests/Blog.IntegrationTests.csproj +++ b/BlogWebApp/Tests/Blog.IntegrationTests/Blog.IntegrationTests.csproj @@ -1,23 +1,23 @@  - net9.0 + net10.0 false - + - - - + + + - + runtime; build; native; contentfiles; analyzers; buildtransitive all - + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/BlogWebApp/Tests/Blog.ServicesTests/Blog.ServicesTests.csproj b/BlogWebApp/Tests/Blog.ServicesTests/Blog.ServicesTests.csproj index df4b83ba..e44cc5df 100644 --- a/BlogWebApp/Tests/Blog.ServicesTests/Blog.ServicesTests.csproj +++ b/BlogWebApp/Tests/Blog.ServicesTests/Blog.ServicesTests.csproj @@ -1,21 +1,21 @@  - net9.0 + net10.0 false - + - + runtime; build; native; contentfiles; analyzers; buildtransitive all - + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/BlogWebApp/Tests/Blog.ServicesTests/EntityServices/CommentsServiceTests.cs b/BlogWebApp/Tests/Blog.ServicesTests/EntityServices/EntityFrameworkServices/CommentsServiceTests.cs similarity index 99% rename from BlogWebApp/Tests/Blog.ServicesTests/EntityServices/CommentsServiceTests.cs rename to BlogWebApp/Tests/Blog.ServicesTests/EntityServices/EntityFrameworkServices/CommentsServiceTests.cs index 970648c4..97f312c9 100644 --- a/BlogWebApp/Tests/Blog.ServicesTests/EntityServices/CommentsServiceTests.cs +++ b/BlogWebApp/Tests/Blog.ServicesTests/EntityServices/EntityFrameworkServices/CommentsServiceTests.cs @@ -7,8 +7,6 @@ using Blog.Data.Models; using Blog.Data.Repository; using Blog.Data.Specifications; -using Blog.EntityServices; -using Blog.EntityServices.Interfaces; using Microsoft.EntityFrameworkCore; using Moq; using System; @@ -16,9 +14,11 @@ using System.Linq; using System.Threading.Tasks; using Blog.Data.Specifications.Base; +using Blog.EntityServices.EntityFrameworkServices; using Xunit; +using Blog.EntityServices.Interfaces; -namespace Blog.ServicesTests.EntityServices; +namespace Blog.ServicesTests.EntityServices.EntityFrameworkServices; /// /// Comments service tests. diff --git a/BlogWebApp/Tests/Blog.ServicesTests/EntityServices/MessagesServiceTests.cs b/BlogWebApp/Tests/Blog.ServicesTests/EntityServices/EntityFrameworkServices/MessagesServiceTests.cs similarity index 99% rename from BlogWebApp/Tests/Blog.ServicesTests/EntityServices/MessagesServiceTests.cs rename to BlogWebApp/Tests/Blog.ServicesTests/EntityServices/EntityFrameworkServices/MessagesServiceTests.cs index 379e8c60..ee9a245b 100644 --- a/BlogWebApp/Tests/Blog.ServicesTests/EntityServices/MessagesServiceTests.cs +++ b/BlogWebApp/Tests/Blog.ServicesTests/EntityServices/EntityFrameworkServices/MessagesServiceTests.cs @@ -7,8 +7,7 @@ using Blog.Data.Models; using Blog.Data.Repository; using Blog.Data.Specifications; -using Blog.EntityServices; -using Blog.EntityServices.Interfaces; +using Blog.EntityServices.EntityFrameworkServices; using Microsoft.EntityFrameworkCore; using Moq; using System; @@ -17,8 +16,9 @@ using System.Threading.Tasks; using Blog.Data.Specifications.Base; using Xunit; +using Blog.EntityServices.Interfaces; -namespace Blog.ServicesTests.EntityServices; +namespace Blog.ServicesTests.EntityServices.EntityFrameworkServices; /// /// Messages service tests. diff --git a/BlogWebApp/Tests/Blog.ServicesTests/EntityServices/PostTagRelationsServiceTests.cs b/BlogWebApp/Tests/Blog.ServicesTests/EntityServices/EntityFrameworkServices/PostTagRelationsServiceTests.cs similarity index 99% rename from BlogWebApp/Tests/Blog.ServicesTests/EntityServices/PostTagRelationsServiceTests.cs rename to BlogWebApp/Tests/Blog.ServicesTests/EntityServices/EntityFrameworkServices/PostTagRelationsServiceTests.cs index d76a56a5..20235135 100644 --- a/BlogWebApp/Tests/Blog.ServicesTests/EntityServices/PostTagRelationsServiceTests.cs +++ b/BlogWebApp/Tests/Blog.ServicesTests/EntityServices/EntityFrameworkServices/PostTagRelationsServiceTests.cs @@ -7,7 +7,7 @@ using Blog.Data.Models; using Blog.Data.Repository; using Blog.Data.Specifications.Base; -using Blog.EntityServices; +using Blog.EntityServices.EntityFrameworkServices; using Blog.EntityServices.Interfaces; using Microsoft.EntityFrameworkCore; using Moq; @@ -17,7 +17,7 @@ using System.Threading.Tasks; using Xunit; -namespace Blog.ServicesTests.EntityServices; +namespace Blog.ServicesTests.EntityServices.EntityFrameworkServices; /// /// Post tag relations service tests. diff --git a/BlogWebApp/Tests/Blog.ServicesTests/EntityServices/PostsServiceTests.cs b/BlogWebApp/Tests/Blog.ServicesTests/EntityServices/EntityFrameworkServices/PostsServiceTests.cs similarity index 99% rename from BlogWebApp/Tests/Blog.ServicesTests/EntityServices/PostsServiceTests.cs rename to BlogWebApp/Tests/Blog.ServicesTests/EntityServices/EntityFrameworkServices/PostsServiceTests.cs index 0cfddbd5..1b0081d4 100644 --- a/BlogWebApp/Tests/Blog.ServicesTests/EntityServices/PostsServiceTests.cs +++ b/BlogWebApp/Tests/Blog.ServicesTests/EntityServices/EntityFrameworkServices/PostsServiceTests.cs @@ -8,8 +8,7 @@ using Blog.Data.Models; using Blog.Data.Repository; using Blog.Data.Specifications; -using Blog.EntityServices; -using Blog.EntityServices.Interfaces; +using Blog.EntityServices.EntityFrameworkServices; using Microsoft.EntityFrameworkCore; using Moq; using System; @@ -18,8 +17,9 @@ using System.Threading.Tasks; using Blog.Data.Specifications.Base; using Xunit; +using Blog.EntityServices.Interfaces; -namespace Blog.ServicesTests.EntityServices; +namespace Blog.ServicesTests.EntityServices.EntityFrameworkServices; /// /// Posts service tests. diff --git a/BlogWebApp/Tests/Blog.ServicesTests/EntityServices/ProfileServiceTests.cs b/BlogWebApp/Tests/Blog.ServicesTests/EntityServices/EntityFrameworkServices/ProfileServiceTests.cs similarity index 99% rename from BlogWebApp/Tests/Blog.ServicesTests/EntityServices/ProfileServiceTests.cs rename to BlogWebApp/Tests/Blog.ServicesTests/EntityServices/EntityFrameworkServices/ProfileServiceTests.cs index 24f06479..0c9645fe 100644 --- a/BlogWebApp/Tests/Blog.ServicesTests/EntityServices/ProfileServiceTests.cs +++ b/BlogWebApp/Tests/Blog.ServicesTests/EntityServices/EntityFrameworkServices/ProfileServiceTests.cs @@ -8,8 +8,7 @@ using Blog.Data.Models; using Blog.Data.Repository; using Blog.Data.Specifications; -using Blog.EntityServices; -using Blog.EntityServices.Interfaces; +using Blog.EntityServices.EntityFrameworkServices; using Microsoft.EntityFrameworkCore; using Moq; using System; @@ -19,8 +18,9 @@ using Blog.Data.Specifications.Base; using Xunit; using ProfileModel = Blog.Data.Models.Profile; +using Blog.EntityServices.Interfaces; -namespace Blog.ServicesTests.EntityServices; +namespace Blog.ServicesTests.EntityServices.EntityFrameworkServices; /// /// Profile service tests. diff --git a/BlogWebApp/Tests/Blog.ServicesTests/EntityServices/TagsServiceTests.cs b/BlogWebApp/Tests/Blog.ServicesTests/EntityServices/EntityFrameworkServices/TagsServiceTests.cs similarity index 99% rename from BlogWebApp/Tests/Blog.ServicesTests/EntityServices/TagsServiceTests.cs rename to BlogWebApp/Tests/Blog.ServicesTests/EntityServices/EntityFrameworkServices/TagsServiceTests.cs index 19f13198..466cb7dd 100644 --- a/BlogWebApp/Tests/Blog.ServicesTests/EntityServices/TagsServiceTests.cs +++ b/BlogWebApp/Tests/Blog.ServicesTests/EntityServices/EntityFrameworkServices/TagsServiceTests.cs @@ -7,8 +7,7 @@ using Blog.Data.Models; using Blog.Data.Repository; using Blog.Data.Specifications; -using Blog.EntityServices; -using Blog.EntityServices.Interfaces; +using Blog.EntityServices.EntityFrameworkServices; using Microsoft.EntityFrameworkCore; using Moq; using System; @@ -17,8 +16,9 @@ using System.Threading.Tasks; using Blog.Data.Specifications.Base; using Xunit; +using Blog.EntityServices.Interfaces; -namespace Blog.ServicesTests.EntityServices; +namespace Blog.ServicesTests.EntityServices.EntityFrameworkServices; /// /// Tags service tests. diff --git a/BlogWebApp/Tests/Blog.UnitTests/Blog.UnitTests.csproj b/BlogWebApp/Tests/Blog.UnitTests/Blog.UnitTests.csproj index 2f471e4c..812e7599 100644 --- a/BlogWebApp/Tests/Blog.UnitTests/Blog.UnitTests.csproj +++ b/BlogWebApp/Tests/Blog.UnitTests/Blog.UnitTests.csproj @@ -1,22 +1,22 @@  - net9.0 + net10.0 false - - - + + + - + runtime; build; native; contentfiles; analyzers; buildtransitive all - + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/Clients/BlogRazor/BlogRazor.csproj b/Clients/BlogRazor/BlogRazor.csproj index b8b98fab..91485148 100644 --- a/Clients/BlogRazor/BlogRazor.csproj +++ b/Clients/BlogRazor/BlogRazor.csproj @@ -1,16 +1,16 @@ - net9.0 + net10.0 false Linux ..\..\BlogWebApp - - - + + + diff --git a/Sdk/Blog.Sdk.ExampleUsage/Blog.Sdk.ExampleUsage.csproj b/Sdk/Blog.Sdk.ExampleUsage/Blog.Sdk.ExampleUsage.csproj index 1f059d7b..4340f623 100644 --- a/Sdk/Blog.Sdk.ExampleUsage/Blog.Sdk.ExampleUsage.csproj +++ b/Sdk/Blog.Sdk.ExampleUsage/Blog.Sdk.ExampleUsage.csproj @@ -1,7 +1,7 @@ - net9.0 + net10.0 diff --git a/Sdk/Blog.Sdk/Blog.Sdk.csproj b/Sdk/Blog.Sdk/Blog.Sdk.csproj index b6f60378..f38b400c 100644 --- a/Sdk/Blog.Sdk/Blog.Sdk.csproj +++ b/Sdk/Blog.Sdk/Blog.Sdk.csproj @@ -1,11 +1,11 @@ - net9.0 + net10.0 - + diff --git a/Shared/Blog.Contracts/Blog.Contracts.csproj b/Shared/Blog.Contracts/Blog.Contracts.csproj index ffda0f62..899e13e2 100644 --- a/Shared/Blog.Contracts/Blog.Contracts.csproj +++ b/Shared/Blog.Contracts/Blog.Contracts.csproj @@ -1,7 +1,7 @@ - net9.0 + net10.0 diff --git a/Shared/Blog.Core/Blog.Core.csproj b/Shared/Blog.Core/Blog.Core.csproj index c9d4433a..14bfb4d8 100644 --- a/Shared/Blog.Core/Blog.Core.csproj +++ b/Shared/Blog.Core/Blog.Core.csproj @@ -1,7 +1,7 @@ - net9.0 + net10.0 @@ -12,9 +12,9 @@ - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive