Skip to content
Merged

v8.5 #660

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Description>Content utilities for html and markdown</Description>
<Version>8.4.0</Version>
<Version>8.5.0</Version>
<TargetFramework>net8.0</TargetFramework>
<Authors>Joe Audette</Authors>
<PackageTags>cloudscribe;blog,content</PackageTags>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Description>Bootstrap 4 pre-compiled views for cloudscribe Core and SimpleContent integration</Description>
<Version>8.4.0</Version>
<Version>8.5.0</Version>
<TargetFramework>net8.0</TargetFramework>
<Authors>Joe Audette</Authors>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using System;
using System.Reflection;
using cloudscribe.Versioning;
using cloudscribe.Web.Common;

namespace cloudscribe.Core.SimpleContent.CompiledViews.Bootstrap5
{
public class VersionProvider : IVersionProvider
{
public string Name { get { return "cloudscribe.Core.SimpleContent.CompiledViews.Bootstrap5"; } }

public Guid ApplicationId { get { return new Guid("f93067b4-919d-4910-acd1-4b3b1c210ecf"); } }

public Version CurrentVersion
{

get
{

var version = new Version(2, 0, 0, 0);
var versionString = typeof(CloudscribeCommonResources).Assembly.GetCustomAttribute<AssemblyFileVersionAttribute>().Version;
if (!string.IsNullOrWhiteSpace(versionString))
{
Version.TryParse(versionString, out version);
}

return version;
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Description>Bootstrap 5 pre-compiled views for cloudscribe Core and SimpleContent integration</Description>
<Version>8.4.0</Version>
<Version>8.5.0</Version>
<TargetFramework>net8.0</TargetFramework>
<Authors>Joe Audette</Authors>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
Expand Down
3 changes: 2 additions & 1 deletion src/cloudscribe.Core.SimpleContent/StartupExtenstions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using cloudscribe.SimpleContent.Models;
using cloudscribe.SimpleContent.Web.Design;
using cloudscribe.SimpleContent.Web.TagHelpers;
using cloudscribe.Versioning;
using cloudscribe.Web.Navigation.Caching;
using Microsoft.AspNetCore.Authorization;
using Microsoft.Extensions.Configuration;
Expand Down Expand Up @@ -34,7 +35,7 @@ public static IServiceCollection AddCloudscribeCoreIntegrationForSimpleContent(
services.AddScoped<ITreeCacheKeyResolver, SiteNavigationCacheKeyResolver>();
services.AddScoped<IHandleRoleUpdated, HandleRoleUpdated>();
services.AddScoped<IHandleRoleDeleted, HandleRoleDeleted>();

services.AddScoped<IVersionProvider, VersionProvider>();

if (configuration != null)
{
Expand Down
38 changes: 38 additions & 0 deletions src/cloudscribe.Core.SimpleContent/VersionProvider.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
using cloudscribe.Core.SimpleContent.Integration;
using cloudscribe.Versioning;
using cloudscribe.Web.Common;
using System;
using System.Reflection;

namespace cloudscribe.Core.SimpleContent
{
public class VersionProvider : IVersionProvider
{
private Assembly assembly = typeof(AuthorNameResolver).Assembly;

public string Name
{
get { return assembly.GetName().Name; }

}

public Guid ApplicationId { get { return new Guid("f94177b4-919d-4910-acd1-4b3b1c210ecf"); } }

public Version CurrentVersion
{

get
{

var version = new Version(2, 0, 0, 0);
var versionString = typeof(CloudscribeCommonResources).Assembly.GetCustomAttribute<AssemblyFileVersionAttribute>().Version;
if (!string.IsNullOrWhiteSpace(versionString))
{
Version.TryParse(versionString, out version);
}

return version;
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Description>integration library for integrating cloudscribe SimpleContent with cloudscribe Core multi-tenant web app foundation</Description>
<Version>8.4.0</Version>
<Version>8.5.0</Version>
<TargetFramework>net8.0</TargetFramework>
<Authors>Joe Audette</Authors>
<PackageTags>cloudscribe;blog</PackageTags>
Expand All @@ -29,12 +29,12 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="cloudscribe.Core.Models" Version="8.4.0" />
<PackageReference Include="cloudscribe.Core.Identity" Version="8.4.0" />
<PackageReference Include="cloudscribe.Core.Web" Version="8.4.0" />
<PackageReference Include="cloudscribe.Web.Common" Version="8.4.0" />
<PackageReference Include="cloudscribe.FileManager.Web" Version="8.4.0" />
<PackageReference Include="cloudscribe.Syndication.Web" Version="8.4.0" />
<PackageReference Include="cloudscribe.Core.Models" Version="8.5.0" />
<PackageReference Include="cloudscribe.Core.Identity" Version="8.5.0" />
<PackageReference Include="cloudscribe.Core.Web" Version="8.5.0" />
<PackageReference Include="cloudscribe.Web.Common" Version="8.5.0" />
<PackageReference Include="cloudscribe.FileManager.Web" Version="8.5.0" />
<PackageReference Include="cloudscribe.Syndication.Web" Version="8.5.0" />

<PackageReference Include="Microsoft.Extensions.FileProviders.Embedded" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Localization" Version="8.0.0" />
Expand Down
2 changes: 1 addition & 1 deletion src/cloudscribe.MetaWeblog/cloudscribe.MetaWeblog.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Description>a re-useable implementation of the metaweblog api for asp.net core</Description>
<Version>8.4.0</Version>
<Version>8.5.0</Version>
<TargetFramework>net8.0</TargetFramework>
<Authors>Joe Audette</Authors>
<PackageTags>cloudscribe;metaweblog;api;asp.net core</PackageTags>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Description>Bootstrap 4 pre-compiled views for cloudscribe.SimpleContent.Web</Description>
<Version>8.4.0</Version>
<Version>8.5.0</Version>
<TargetFramework>net8.0</TargetFramework>
<Authors>Joe Audette</Authors>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using cloudscribe.Versioning;
using cloudscribe.Web.Common;
using System;
using System.Reflection;

namespace cloudscribe.SimpleContent.CompiledViews.Bootstrap5
{
public class VersionProvider : IVersionProvider
{
public string Name { get { return "cloudscribe.SimpleContent.CompiledViews.Bootstrap5"; } }

public Guid ApplicationId { get { return new Guid("f94067b4-919d-4910-acd1-4b3b1c210ecf"); } }

public Version CurrentVersion
{

get
{

var version = new Version(2, 0, 0, 0);
var versionString = typeof(CloudscribeCommonResources).Assembly.GetCustomAttribute<AssemblyFileVersionAttribute>().Version;
if (!string.IsNullOrWhiteSpace(versionString))
{
Version.TryParse(versionString, out version);
}

return version;
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Description>Bootstrap 5 pre-compiled views for cloudscribe.SimpleContent.Web</Description>
<Version>8.4.0</Version>
<Version>8.5.0</Version>
<TargetFramework>net8.0</TargetFramework>
<Authors>Joe Audette</Authors>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Description>A set of Content Templates for cloudscribe.SimpleContent using Bootstrap 4</Description>
<Version>8.4.0</Version>
<Version>8.5.0</Version>
<TargetFramework>net8.0</TargetFramework>
<Authors>Joe Audette</Authors>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using cloudscribe.SimpleContent.ContentTemplates.Configuration;
using cloudscribe.SimpleContent.ContentTemplates.Bootstrap5;
using cloudscribe.SimpleContent.ContentTemplates.Configuration;
using cloudscribe.SimpleContent.ContentTemplates.Services;
using cloudscribe.SimpleContent.Models;
using cloudscribe.Versioning;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection.Extensions;

Expand All @@ -26,7 +28,7 @@ IConfiguration configuration

services.Configure<ImageWithContentOptions>(configuration.GetSection("ContentTemplateSettings:ImageWithContentOptions"));
services.TryAddScoped<IImageWithContentOptionsProvider, ConfigImageWithContentOptionsProvider>();

services.AddScoped<IVersionProvider, VersionProvider>();



Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
using cloudscribe.Versioning;
using cloudscribe.Web.Common;
using System;
using System.Reflection;

namespace cloudscribe.SimpleContent.ContentTemplates.Bootstrap5
{
public class VersionProvider : IVersionProvider
{
private Assembly assembly = typeof(ContentTemplateResources).Assembly;

public string Name
{
get { return assembly.GetName().Name; }

}

public Guid ApplicationId { get { return new Guid("f94167b4-919d-4910-acd1-4b3b1c210ecf"); } }

public Version CurrentVersion
{

get
{

var version = new Version(2, 0, 0, 0);
var versionString = typeof(CloudscribeCommonResources).Assembly.GetCustomAttribute<AssemblyFileVersionAttribute>().Version;
if (!string.IsNullOrWhiteSpace(versionString))
{
Version.TryParse(versionString, out version);
}

return version;
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Description>A set of Content Templates for cloudscribe.SimpleContent using Bootstrap 5</Description>
<Version>8.4.0</Version>
<Version>8.5.0</Version>
<TargetFramework>net8.0</TargetFramework>
<Authors>Joe Audette</Authors>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Description>cloudscribe.SimpleContent.MetaWeblog Class Library</Description>
<Version>8.4.0</Version>
<Version>8.5.0</Version>
<TargetFramework>net8.0</TargetFramework>
<Authors>Joe Audette</Authors>
<PackageTags>cloudscribe;metaweblog;blog;cms</PackageTags>
Expand All @@ -26,9 +26,9 @@

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="8.0.0" />
<PackageReference Include="cloudscribe.DateTimeUtils" Version="8.4.0" />
<PackageReference Include="cloudscribe.Web.Navigation" Version="8.4.0" />
<PackageReference Include="cloudscribe.Versioning" Version="8.4.0" />
<PackageReference Include="cloudscribe.DateTimeUtils" Version="8.5.0" />
<PackageReference Include="cloudscribe.Web.Navigation" Version="8.5.0" />
<PackageReference Include="cloudscribe.Versioning" Version="8.5.0" />
</ItemGroup>
<ItemGroup>
<None Include="README.md" Pack="true" PackagePath="/" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Description>cloudscribe.SimpleContent.Models Class Library</Description>
<Version>8.4.0</Version>
<Version>8.5.0</Version>
<TargetFramework>net8.0</TargetFramework>
<Authors>Joe Audette</Authors>
<PackageTags>cloudscribe;blog;cms</PackageTags>
Expand All @@ -25,7 +25,7 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>

<PackageReference Include="cloudscribe.Pagination.Models" Version="8.4.0" />
<PackageReference Include="cloudscribe.Pagination.Models" Version="8.5.0" />

<PackageReference Include="System.Security.Claims" Version="4.3.0" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Description>base package - Entity Framework Core implementation of cloudscribe SimpleContent commands and queries</Description>
<Version>8.4.0</Version>
<Version>8.5.0</Version>
<TargetFramework>net8.0</TargetFramework>
<Authors>Joe Audette</Authors>
<PackageTags>cloudscribe;commands;queries;ef</PackageTags>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Description>MSSQL Entity Framework Core implementation of cloudscribe SimpleContent commands and queries</Description>
<Version>8.4.0</Version>
<Version>8.5.0</Version>
<TargetFramework>net8.0</TargetFramework>
<Authors>Joe Audette</Authors>
<PackageTags>cloudscribe;commands;queries;ef</PackageTags>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Description>MySQL Entity Framework Core implementation of cloudscribe SimpleContent commands and queries</Description>
<Version>8.4.0</Version>
<Version>8.5.0</Version>
<TargetFramework>net8.0</TargetFramework>
<Authors>Joe Audette</Authors>
<PackageTags>cloudscribe;commands;queries;ef</PackageTags>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Description>PostgreSql Entity Framework Core implementation of cloudscribe SimpleContent commands and queries</Description>
<Version>8.4.0</Version>
<Version>8.5.0</Version>
<TargetFramework>net8.0</TargetFramework>
<Authors>Joe Audette</Authors>
<PackageTags>cloudscribe;commands;queries;ef</PackageTags>
Expand All @@ -28,7 +28,7 @@
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.0" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="8.0.0" />
<PackageReference Include="cloudscribe.EFCore.PostgreSql.Conventions" Version="8.4.0" />
<PackageReference Include="cloudscribe.EFCore.PostgreSql.Conventions" Version="8.5.0" />
</ItemGroup>
<ItemGroup>
<None Include="README.md" Pack="true" PackagePath="/" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Description>SQLite Entity Framework Core implementation of cloudscribe SimpleContent commands and queries</Description>
<Version>8.4.0</Version>
<Version>8.5.0</Version>
<TargetFramework>net8.0</TargetFramework>
<Authors>Joe Audette</Authors>
<PackageTags>cloudscribe;commands;queries;ef</PackageTags>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Description>cloudscribe.SimpleContent.Storage implemented with NoDb file system storage</Description>
<Version>8.4.0</Version>
<Version>8.5.0</Version>
<TargetFramework>net8.0</TargetFramework>
<Authors>Joe Audette</Authors>
<PackageTags>cloudscribe;blog;json</PackageTags>
Expand Down
Loading
Loading