Skip to content

Commit

Permalink
Updated package to target Umbraco 13 😎
Browse files Browse the repository at this point in the history
  • Loading branch information
abjerner committed Jan 6, 2024
1 parent a875565 commit cc8c667
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion debug.bat
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@echo off
dotnet build src/Skybrud.Umbraco.Redirects.Import/Skybrud.Umbraco.Redirects.Import.csproj --configuration Debug /t:rebuild /t:pack -p:PackageOutputPath=c:\nuget\Umbraco10
dotnet build src/Skybrud.Umbraco.Redirects.Import/Skybrud.Umbraco.Redirects.Import.csproj --configuration Debug /t:rebuild /t:pack -p:PackageOutputPath=c:\nuget\Umbraco13
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ public class RedirectsImportManifestFilter : IManifestFilter {

/// <inheritdoc />
public void Filter(List<PackageManifest> manifests) {

manifests.Add(new PackageManifest {
AllowPackageTelemetry = true,
PackageName = RedirectsImportPackage.Name,
Version = RedirectsImportPackage.InformationalVersion,
Version = RedirectsImportPackage.InformationalVersion.Split('+')[0],
PackageId = RedirectsImportPackage.Alias,
BundleOptions = BundleOptions.Independent,
Scripts = new[] {
$"/App_Plugins/{RedirectsImportPackage.Alias}/Scripts/App.js",
Expand All @@ -25,6 +27,7 @@ public void Filter(List<PackageManifest> manifests) {
$"/App_Plugins/{RedirectsImportPackage.Alias}/Styles/Default.css"
}
});

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Skybrud.Umbraco.Redirects.Exceptions;
using System.Linq;

namespace Skybrud.Umbraco.Redirects.Import;
namespace Skybrud.Umbraco.Redirects.Import;

public partial class RedirectsImportService {

Expand Down Expand Up @@ -42,7 +42,7 @@ public virtual DataTable ToDataTable(XLWorkbook workbook) {

// Iterate through the columns of the row
foreach (IXLCell cell in row.Cells(firstCell.Address.ColumnNumber, lastCell.Address.ColumnNumber)) {
table.Rows[^1][cell.WorksheetColumn().ColumnNumber() - 1] = cell.Value.GetText();
table.Rows[^1][cell.WorksheetColumn().ColumnNumber() - 1] = cell.Value.ToString();
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<LangVersion>10.0</LangVersion>
<TargetFramework>net6.0</TargetFramework>
<LangVersion>12.0</LangVersion>
<TargetFramework>net8.0</TargetFramework>
<StaticWebAssetBasePath>App_Plugins/$(AssemblyName)</StaticWebAssetBasePath>
<Nullable>enable</Nullable>
</PropertyGroup>

<PropertyGroup>
<VersionPrefix>4.0.2</VersionPrefix>
<VersionPrefix>13.0.0-alpha000</VersionPrefix>
<VersionSuffix Condition="'$(Configuration)'=='Debug'">build$([System.DateTime]::UtcNow.ToString(`yyyyMMddHHmm`))</VersionSuffix>
<Company>Limbo</Company>
<Authors>Anders Bjerner</Authors>
Expand All @@ -24,7 +24,7 @@
<PackageId>Skybrud.Umbraco.Redirects.Import</PackageId>
<PackageTags>Skybrud, Umbraco, Redirects, Import, Export, Limbo, Umbraco-Marketplace</PackageTags>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://packages.skybrud.dk/skybrud.umbraco.redirects.import/v4/</PackageProjectUrl>
<PackageProjectUrl>https://packages.skybrud.dk/skybrud.umbraco.redirects.import/v13/</PackageProjectUrl>
<PackageIcon>Limbo.png</PackageIcon>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/skybrud/Skybrud.Umbraco.Redirects.Import</RepositoryUrl>
Expand All @@ -35,10 +35,10 @@
<PackageReference Include="ClosedXml" Version="0.102.2" />
<PackageReference Include="Skybrud.Csv" Version="0.0.3" />
<PackageReference Include="Skybrud.Essentials" Version="1.1.54" />
<PackageReference Include="Skybrud.Umbraco.Redirects" Version="4.0.20" />
<PackageReference Include="Umbraco.Cms.Core" Version="[10.0.0,12.999)" />
<PackageReference Include="Umbraco.Cms.Web.Website" Version="[10.0.0,12.999)" />
<PackageReference Include="Umbraco.Cms.Web.BackOffice" Version="[10.0.0,12.999)" />
<PackageReference Include="Skybrud.Umbraco.Redirects" Version="13.0.2" />
<PackageReference Include="Umbraco.Cms.Core" Version="[13.0.0,13.999)" />
<PackageReference Include="Umbraco.Cms.Web.Website" Version="[13.0.0,13.999)" />
<PackageReference Include="Umbraco.Cms.Web.BackOffice" Version="[13.0.0,13.999)" />
</ItemGroup>

<!-- Include package icon for NuGet -->
Expand Down

0 comments on commit cc8c667

Please sign in to comment.