Info
Version: | 6.7.1 |
Author(s): | wordpress.org, iolevel |
Last Update: | Thursday, February 20, 2025 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://github.com/iolevel/wpdotnet-sdk |
NuGet Url: | https://www.nuget.org/packages/Peachpied.WordPress.Build.Plugin |
Install
Install-Package Peachpied.WordPress.Build.Plugin
dotnet add package Peachpied.WordPress.Build.Plugin
paket add Peachpied.WordPress.Build.Plugin
Peachpied.WordPress.Build.Plugin Download (Unzip the "nupkg" after downloading)
Dependencies
.NETStandard 2.0
No dependencies.
No dependencies.
Usage:
1.
Create project XML file "{{slug_id}}.msbuildproj" in the plugin/theme folder:
A. For a plugin:
<Project Sdk="PeachPied.WordPress.Build.Plugin/"></Project>
B. For a theme:
<Project Sdk="PeachPied.WordPress.Build.Plugin/"><PropertyGroup><WpContentTarget>themes</WpContentTarget></PropertyGroup></Project>
2. Build or pack the project:
dotnet build
dotnet pack
3.
Reference the project/package from web application, see "PeachPied.WordPress.AspNetCore" for running the WordPress on ASP.NET Core.