-
Notifications
You must be signed in to change notification settings - Fork 4
[BR-5446] Migrate Gibe.Umbraco.Blog to .NET 10.0 #32
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: v13/master
Are you sure you want to change the base?
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| <Solution> | ||
| <Configurations> | ||
| <BuildType Name="Admin" /> | ||
| <BuildType Name="Debug" /> | ||
| <BuildType Name="Release" /> | ||
| </Configurations> | ||
| <Folder Name="/Solution Items/"> | ||
| <File Path="Readme.md" /> | ||
| <File Path="VERSION.txt" /> | ||
| </Folder> | ||
| <Project Path="Gibe.Umbraco.Blog.Tests/Gibe.Umbraco.Blog.Tests.csproj"> | ||
| <BuildType Solution="Admin|*" Project="Release" /> | ||
| </Project> | ||
| <Project Path="Gibe.Umbraco.Blog/Gibe.Umbraco.Blog.csproj" /> | ||
| </Solution> |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,23 +1,23 @@ | ||||||
| <Project Sdk="Microsoft.NET.Sdk"> | ||||||
|
|
||||||
| <PropertyGroup> | ||||||
| <TargetFramework>net6.0</TargetFramework> | ||||||
| <TargetFramework>net10.0</TargetFramework> | ||||||
| </PropertyGroup> | ||||||
| <PropertyGroup> | ||||||
| <PackageId>Gibe.Umbraco.V10.Blog</PackageId> | ||||||
| <PackageVersion>10.0.0</PackageVersion> | ||||||
| <PackageId>Gibe.Umbraco.V13.Blog</PackageId> | ||||||
| <PackageVersion>13.0.0</PackageVersion> | ||||||
|
Comment on lines
+4
to
+8
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nitpick: technically, v13 is net8...though I suppose it should be able to run in a net10 runtime, but you'd have to make sure you updated the net version to 10 - if we use this in the content store we should validate that? |
||||||
| <PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance> | ||||||
| <PackageTags>Gibe Umbraco Blog</PackageTags> | ||||||
| <Authors>Gibe Digital Ltd</Authors> | ||||||
| <Version>10.0.0</Version> | ||||||
| <Version>13.0.0</Version> | ||||||
| </PropertyGroup> | ||||||
|
|
||||||
| <PropertyGroup Condition="'$(TargetFramework)' == 'net6.0'"> | ||||||
| <DefineConstants>NET6,NET6</DefineConstants> | ||||||
| <PropertyGroup> | ||||||
| <DefineConstants>NET10,NET10</DefineConstants> | ||||||
|
||||||
| <DefineConstants>NET10,NET10</DefineConstants> | |
| <DefineConstants>NET10</DefineConstants> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still need the constants now we're not dual targetting?
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| namespace Gibe.Umbraco.Blog.Models | ||
| { | ||
| public class BlogSettings : IBlogSettings | ||
| { | ||
| public string IndexName { get; set; } = "ExternalIndex"; | ||
|
|
||
| public string BlogPostDocumentTypeAlias { get; set; } = "blogPost"; | ||
| public string BlogSectionDocumentTypeAlias { get; set; } = "blogSection"; | ||
|
|
||
| public string UserPickerPropertyEditorAlias { get; set; } = "Umbraco.UserPicker"; | ||
|
|
||
| public string UserPickerName { get; set; } = "User Picker - All Users"; | ||
| } | ||
| } |
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -12,7 +12,6 @@ | |||||||
| using Microsoft.Extensions.Options; | ||||||||
| using Umbraco.Cms.Core.Composing; | ||||||||
| using Umbraco.Cms.Core.DependencyInjection; | ||||||||
| using Umbraco.Cms.Core.Logging.Viewer; | ||||||||
| using Umbraco.Extensions; | ||||||||
|
|
||||||||
| namespace Gibe.Umbraco.Blog | ||||||||
|
|
@@ -21,9 +20,12 @@ public static class NetCoreServicesExtensions | |||||||
| { | ||||||||
| public static void AddGibeBlog<T>(this IServiceCollection services) where T : class, IBlogPostModel | ||||||||
| { | ||||||||
| services.AddOptions<BlogSettings>() | ||||||||
| .BindConfiguration("Gibe:Umbraco:Blog") | ||||||||
| .ValidateOnStart(); | ||||||||
|
||||||||
| .ValidateOnStart(); | |
| .ValidateOnStart(); | |
| services.AddSingleton<IBlogSettings>(sp => sp.GetRequiredService<IOptions<BlogSettings>>().Value); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 10.0.0 | ||
| 13.0.0 | ||
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this constant at all any more?