diff --git a/README.md b/README.md
index 3dacef7..adaf65d 100644
--- a/README.md
+++ b/README.md
@@ -75,6 +75,10 @@ When you only need the source url of the iframe in the embed code you can do the
## Changelog
+### 12.0.0
+
+- Support for Umbraco 12
+
### 11.0.0
- Support for Umbraco 11
diff --git a/Utilities/CreateNugetPackages.ps1 b/Utilities/CreateNugetPackages.ps1
index ae97a37..b953374 100644
--- a/Utilities/CreateNugetPackages.ps1
+++ b/Utilities/CreateNugetPackages.ps1
@@ -4,11 +4,15 @@ $directoryBuildProps = [xml](Get-Content -Path "$SourceDir\Directory.Build.props
$version = $directoryBuildProps.Project.PropertyGroup.VersionPrefix;
Write-Host "Package version: $version";
-$dateTime = get-date -Format "yyyyMMddhhmmss"
+$dateTime = get-date -Format "yyyyMMddHHmmss"
Write-Host "Version suffix $dateTime"
-dotnet pack $SourceDir\$PackageName.sln -c Debug -o $TestSitesFolder\nuget --version-suffix "$dateTime"
+if (Test-Path -Path $TestSitesFolder\nuget) {
+ Remove-Item -LiteralPath $TestSitesFolder\nuget -Force -Recurse
+}
+
+dotnet pack $SourceDir\$SolutionName.sln -c Debug -o $TestSitesFolder\nuget --version-suffix "$dateTime"
cd "$TestSitesFolder\$TestProjectName"
diff --git a/Utilities/SetupTestSite.ps1 b/Utilities/SetupTestSite.ps1
index 857b742..266133e 100644
--- a/Utilities/SetupTestSite.ps1
+++ b/Utilities/SetupTestSite.ps1
@@ -16,7 +16,7 @@
Write-Host $CurrentDir
Write-Host "Installing Umbraco templates"
- dotnet new install Umbraco.Templates
+ dotnet new --install Umbraco.Templates
Write-Host "Creating Umbraco site"
cd $Destination
@@ -24,7 +24,7 @@
cd "$Destination\$ProjectName"
- dotnet add package Umbraco.TheStarterKit --version $CmsVersion --source https://api.nuget.org/v3/index.json
+ dotnet add package Umbraco.TheStarterKit --version $StarterKitVersion --source https://api.nuget.org/v3/index.json
dotnet build
@@ -37,7 +37,7 @@
$newNode.InnerText = '../Nuget'
$propertyGroup.Node.AppendChild($newNode)
$xml.Save("$Destination\$ProjectName\$ProjectName.csproj")
-
+
cd $CurrentDir
}
@@ -47,8 +47,10 @@ $CurrentDir = Split-Path $MyInvocation.MyCommand.Path
Write-Host "Cleaning up existing test site"
-if (Test-Path -Path $TestSitesFolder) {
- Remove-Item -LiteralPath $TestSitesFolder -Force -Recurse
+$TestSitePath = "$TestSitesFolder\$TestProjectName"
+
+if (Test-Path -Path $TestSitePath) {
+ Remove-Item -LiteralPath $TestSitePath -Force -Recurse
}
New-Item -Path $RootDir -Name $TestSitesFolderName -ItemType "directory"
diff --git a/Utilities/Variables.ps1 b/Utilities/Variables.ps1
index 79b8b8b..cb57e61 100644
--- a/Utilities/Variables.ps1
+++ b/Utilities/Variables.ps1
@@ -1,7 +1,9 @@
$RootDir = Split-Path -Path $CurrentDir -Parent
$TestSitesFolderName = "testsites"
$TestSitesFolder = "$RootDir\$TestSitesFolderName"
-$TestProjectName = "OEmbedPickerSite"
+$TestProjectName = "V12"
$PackageName = "Dawoe.OEmbedPickerPropertyEditor"
+$SolutionName = "Dawoe.OEmbedPickerPropertyEditor"
$SourceDir = "$RootDir\src"
-$UmbracoVersion = "11.0.0"
\ No newline at end of file
+$UmbracoVersion = "12.0.0"
+$StarterKitVersion = "11.0.0"
\ No newline at end of file
diff --git a/appveyor.yml b/appveyor.yml
index aaf675e..6053989 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -1,7 +1,7 @@
image: Visual Studio 2022
# Version format
-version: 11.0.0.{build}
+version: 12.0.0.{build}
branches:
only:
diff --git a/src/Directory.Build.props b/src/Directory.Build.props
index 2fa2f13..14ec263 100644
--- a/src/Directory.Build.props
+++ b/src/Directory.Build.props
@@ -5,8 +5,8 @@
-
-
+
+
@@ -27,9 +27,9 @@
git
Copyright © Dave Woestenborghs and contributors.
MIT
- 11.0.0
- 11.0.0
- 11.0.0
+ 12.0.0
+ 12.0.0
+ 12.0.0
diff --git a/umbraco-marketplace.json b/umbraco-marketplace.json
index 1c1f01a..90dfbcb 100644
--- a/umbraco-marketplace.json
+++ b/umbraco-marketplace.json
@@ -31,5 +31,5 @@
"PackageType": "Package",
"PackagesByAuthor": [ "Our.Umbraco.MultilanguageTextbox" ],
"Tags": [ "embed", "media" ],
- "Title": "OEmbed Picker Property Editorv"
+ "Title": "OEmbed Picker Property Editor"
}
\ No newline at end of file