Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
999b3c5
Remove Pikaday and deprecate DnnDatePicker
bdukes Mar 17, 2026
a64b36d
Bump dotnet-sdk from 10.0.200 to 10.0.201
dependabot[bot] Mar 18, 2026
8001aed
[Automated] CI build 124855 changes
Mar 19, 2026
6f89a9d
Merge pull request #7138 from dnnsoftware/automated/ci-124855
valadas Mar 19, 2026
054a740
Nest set of react projects converted to RS Build
donker Mar 14, 2026
0cf47d6
Fixing taxonomy project
donker Mar 14, 2026
a28dad9
Fix to themes project
donker Mar 14, 2026
b6be34f
Fix scheduler project
donker Mar 14, 2026
87230d7
Fix the extensions project
donker Mar 14, 2026
08027b8
Migrate export-bundle project to rsbuild
donker Mar 14, 2026
327f267
Migrate the react common library
donker Mar 14, 2026
49b19b1
Migrate dnn-users-exportables project
donker Mar 14, 2026
0229a62
Migrate the dnn-sites-list-view project
donker Mar 14, 2026
93c3020
Fixes
donker Mar 16, 2026
115bbc3
Use npm_lifecycle_event to determine whether a production build is be…
donker Mar 16, 2026
6dcbdc1
Running through the PB and fixing all other errors showing up in the …
donker Mar 16, 2026
dea3c49
Do the licensing module as well even though we don't use it.
donker Mar 16, 2026
22355c7
Fix build warning
donker Mar 16, 2026
c3d5ecb
Ignore my Cursor rules
donker Mar 16, 2026
0c01111
Centralize rsbuild configuration for PB modules
donker Mar 17, 2026
1afe775
Move PB generated content ignores
donker Mar 17, 2026
1eea05c
Ignore module generated content from rsbuild
donker Mar 17, 2026
8ec49f2
Check and improve Users and Sites subprojects
donker Mar 17, 2026
809bd3c
Fixes
donker Mar 17, 2026
1f5575e
Update Dnn.AdminExperience/ClientSide/modules.rsbuild.config.ts
donker Mar 17, 2026
c88775e
Revert changes to admin logs file
donker Mar 17, 2026
ed35c2c
Reverting unnecessary changes
donker Mar 17, 2026
3d2b473
Update Dnn.AdminExperience/Dnn.PersonaBar.Extensions/admin/personaBar…
donker Mar 17, 2026
815ecd3
Fixes
donker Mar 17, 2026
1adb048
One more
donker Mar 17, 2026
c42954a
Change approach to making the web.config that goes into the release p…
donker Mar 11, 2026
6924e6b
Update Dnn.CakeUtils to tackle file locking issues
donker Mar 11, 2026
f1a60c1
Use ParseAssemblies from Dnn.CakeUtils 2.1.4
bdukes Mar 13, 2026
8a76193
Use CI-aware helpers from Cake (#7142)
bdukes Mar 21, 2026
26a1c8a
Bump github/codeql-action from 4.33.0 to 4.34.1
dependabot[bot] Mar 20, 2026
be7c3d9
Rebased
valadas Mar 25, 2026
ff363ee
Updated release with generated files
valadas Mar 25, 2026
c46ccc5
Merge pull request #7153 from dnnsoftware/release/10.3.0
valadas Mar 25, 2026
fbe04fd
Update DNN version options in bug report template
valadas Mar 25, 2026
c0a35e4
Bump react-router in Dnn.ContactList.SpaReact
bdukes Mar 18, 2026
f489591
Bump ajv from 8.17.1 to 8.18.0
bdukes Mar 18, 2026
b2bf506
Bump vite in Dnn.ContactList.SpaReact
bdukes Mar 18, 2026
d1fd1bd
Use sass-embedded over sass
bdukes Mar 18, 2026
a1385b2
Bump js-yaml from 4.1.0 to 4.1.1
bdukes Mar 18, 2026
d5af4bd
Bump nx and minimatch
bdukes Mar 18, 2026
95152bf
Remove usage of utils package
bdukes Mar 18, 2026
083774a
Bump svgo from 4.0.0 to 4.0.1
bdukes Mar 18, 2026
18092a8
Bump typescript-eslint
bdukes Mar 18, 2026
2afed9b
Bump storybook
bdukes Mar 18, 2026
1fb0e4d
Bump typescript and tsx
bdukes Mar 18, 2026
cd03dc4
Bump ESLint and plugins
bdukes Mar 18, 2026
9dcd591
Bump stencil
bdukes Mar 18, 2026
aa7d998
Bump dnn-elements from 0.29.0 to 0.29.2
bdukes Mar 18, 2026
a883ed9
Bump postcss, less, cssnano, and autoprefixer
bdukes Mar 18, 2026
8c252c8
Bump zip-lib
bdukes Mar 18, 2026
cc4c1b8
Bump rsbuild
bdukes Mar 20, 2026
f37c42c
Bump yarn from 4.12.0 to 4.13.0
bdukes Mar 20, 2026
3dc7009
Bump react-widgets from 5.8.4 to 5.8.6
bdukes Mar 18, 2026
784e129
Bump jest and babel-jest
bdukes Mar 18, 2026
215d89b
Bump react-redux from 8.1.1 to 8.1.3
bdukes Mar 18, 2026
6ae693d
Bump dayjs from 1.11.18 to 1.11.20
bdukes Mar 18, 2026
a11f7bf
Bump dompurify from 3.3.2 to 3.3.3
bdukes Mar 18, 2026
2804cc4
Bump esbuild from 0.27.0 to 0.27.4
bdukes Mar 18, 2026
edda1a6
Bump glob from 13.0.0 to 13.0.6
bdukes Mar 18, 2026
8ffe712
Bump globals from 16.4.0 to 16.5.0
bdukes Mar 18, 2026
884d382
Bump html-react-parser to 5.2.17
bdukes Mar 18, 2026
3544641
Bump lerna from 9.0.0 to 9.0.7
bdukes Mar 18, 2026
b35b2e6
Bump nanoid from 5.1.6 to 5.1.7
bdukes Mar 18, 2026
ae29f86
Bump redux-mock-store from 1.5.4 to 1.5.5
bdukes Mar 18, 2026
e30bffd
Bump socket.io-parser from 4.2.4 to 4.2.6
bdukes Mar 18, 2026
18fe99c
Bump flatted from 3.4.1 to 3.4.2
bdukes Mar 20, 2026
036439c
Remove dist folders
bdukes Mar 20, 2026
a5309bc
Remove unused webpack references
bdukes Mar 20, 2026
87c18a2
Remove babel
bdukes Mar 20, 2026
54f5d4d
Bump tar to 7.5.11
bdukes Mar 20, 2026
2476fc5
yarn dedupe
bdukes Mar 20, 2026
47a2793
Bump nx & minimatch
bdukes Mar 20, 2026
e9fe783
Bump @eslint/compat from 1.4.1 to 2.0.3
bdukes Mar 23, 2026
391e64a
Bump zip-lib from 1.2.2 to 1.3.0
bdukes Mar 23, 2026
79f3584
Bump vite from 8.0.0 to 8.0.1
bdukes Mar 23, 2026
6a2e28d
Bump storybook from 10.2.19 to 10.3.1
bdukes Mar 23, 2026
b215b08
Bump @rsbuild/plugin-svgr from 1.2.0 to 1.3.1
bdukes Mar 25, 2026
9d0993f
Bump stencil packages
bdukes Mar 25, 2026
1bb1af9
Bump storybook from 10.3.1 to 10.3.3
bdukes Mar 25, 2026
5e2c8a5
Bump typescript-eslint from 8.57.1 to 8.57.2
bdukes Mar 25, 2026
7a1e55c
Bump zip-lib from 1.3.0 to 1.3.1
bdukes Mar 25, 2026
7ae9ea9
Bump vite from 8.0.1 to 8.0.2 in sample module
bdukes Mar 25, 2026
cd4b734
Fix error serializing UserProfile to XML
bdukes Mar 25, 2026
beb96fa
[Automated] CI build 125134 changes
Mar 25, 2026
ecc36da
Merge pull request #7162 from dnnsoftware/automated/ci-125134
valadas Mar 25, 2026
6ef882a
Bump picomatch in the npm_and_yarn group across 1 directory
dependabot[bot] Mar 25, 2026
4c90143
Replace old style sass with new style sass if statements
donker Mar 26, 2026
b70b8b1
Merge pull request #7165 from dnnsoftware/dependabot/npm_and_yarn/npm…
valadas Mar 26, 2026
cbff51c
Merge branch 'develop' into sass-if-fix
valadas Mar 26, 2026
4f33452
Merge pull request #7167 from donker/sass-if-fix
valadas Mar 26, 2026
e9463e4
Move the CreateWebConfig task to the end of the packaging task
donker Mar 26, 2026
0349886
Allow LinkClick algorithm fallback
bdukes Mar 25, 2026
a1ee24a
Bump axios from 1.13.1 to 1.13.6
bdukes Mar 25, 2026
996f391
yarn dedupe
bdukes Mar 25, 2026
6b2d258
Bump github/codeql-action from 4.34.1 to 4.35.1
dependabot[bot] Mar 27, 2026
7dd2837
Merge pull request #7172 from dnnsoftware/dependabot/github_actions/g…
valadas Mar 30, 2026
4000877
Bump handlebars in the npm_and_yarn group across 1 directory
dependabot[bot] Mar 29, 2026
59240f2
Merge branch 'develop' into bump-axios
mitchelsellers Mar 31, 2026
181cc07
Merge pull request #7164 from bdukes/bump-axios
valadas Mar 31, 2026
db231ac
Merge branch 'develop' into linkclick-fallback
mitchelsellers Mar 31, 2026
f65687f
Merge pull request #7169 from bdukes/linkclick-fallback
mitchelsellers Mar 31, 2026
4d84b25
Update caniuse database
github-actions[bot] Apr 1, 2026
9fd55d1
Fix OutputPath of SimpleWebFarmCachingProvider after the migration to…
dimarobert Mar 31, 2026
30220c6
Fix Package task not running for SimpleWebFarmCachingProvider
bdukes Apr 1, 2026
dfb436d
Merge pull request #7177 from bdukes/fix-simple-web-farm-caching-prov…
mitchelsellers Apr 1, 2026
7783a36
Bump globals from 16.5.0 to 17.4.0
dependabot[bot] Apr 2, 2026
9029ebf
Bump @typescript-eslint/parser from 8.57.2 to 8.58.0
dependabot[bot] Apr 2, 2026
bc9c729
Remove DLLs from source code repository (#7182)
bdukes Apr 4, 2026
985ec8e
Bump lodash in the npm_and_yarn group across 1 directory
dependabot[bot] Apr 4, 2026
d5166ed
Merge pull request #7188 from dnnsoftware/dependabot/npm_and_yarn/npm…
valadas Apr 6, 2026
6719725
FIX: Site crawler regex improvement #7191
johnhenley Apr 7, 2026
7895e96
Bump vite in the npm_and_yarn group across 1 directory
dependabot[bot] Apr 7, 2026
b137b7c
Apply suggestion from @bdukes
johnhenley Apr 8, 2026
1f01b25
Apply suggestion from @bdukes
johnhenley Apr 8, 2026
0325fb6
Merge branch 'develop' into issue-search-regex-7191
johnhenley Apr 8, 2026
7bf3d3f
Apply suggestion from @bdukes
johnhenley Apr 8, 2026
eb942ad
Merge branch 'issue-search-regex-7191' of https://github.com/johnhenl…
johnhenley Apr 8, 2026
bcb5f46
Merge pull request #7192 from johnhenley/issue-search-regex-7191
mitchelsellers Apr 8, 2026
17a40ec
Fixed a viewstate managment issues with DnnTab webcontrol
valadas Apr 14, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions .github/BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ If you wish to make changes to that project, please keep this in mind.

DNN uses the following technologies to create a working build:
1. MSBuild. This is Microsoft Visual Studio's built in mechanism to compile C#. It can also run auxiliary tasks (like packaging the included modules). These tasks are specified in `.build` and `.targets` files and can leverage .net assemblies to do its magic. Almost all central MSBuild code is in the `Build/BuildScripts` folder. Main folder location settings can be found in the `DNN_Platform.build` file in the root of the repository which can be overridden using a `DNN_Platform.local.build` file at the same location.
2. Webpack. The "Admin Experience" (which is the project that contains the UI for managing DNN) contains a number of client-side Javascript projects (mostly React projects). These are built using Webpack. Webpack is triggered in the main build process in the `Build/BuildScripts/AEModule.build` script. But it can be run on individual projects if you need to.
2. Rsbuild. The "Admin Experience" (which is the project that contains the UI for managing DNN) contains a number of client-side Javascript projects (mostly React projects). These are built using Rsbuild. Rsbuild is triggered in the main build process in the `Build/BuildScripts/AEModule.build` script. But it can be run on individual projects if you need to.
3. [Cake Build](https://cakebuild.net/). This uses C# code to run build tasks. We use Cake for orchestrating the entire build process (e.g. packaging of the platform) and for auxiliary tasks like creating a dev site. All Cake scripts are found in the `Build/Cake` folder. After Cake first runs it bootstraps itself and creates the `tools` folder where the various assemblies can be found. Note the scripts use the [DNN Cake Utils](https://github.com/DNNCommunity/Dnn.CakeUtils) assembly to do the heavy lifting.

## Build to create packages

This process uses Cake. Open Powershell at the root of the repository folder and enter:
This process uses Cake. Open PowerShell at the root of the repository folder and enter:

```
.\build.ps1
Expand Down Expand Up @@ -115,7 +115,7 @@ To build the .net projects to the right location, you'll need to create your ove
Once you've created this file every time you click "rebuild" in Visual Studio on a project (or the solution) you'll see the content change in your dev site.
**Note**: You may have to restart Visual Studio for this new build file to take effect.

For the Webpack projects it is set up to read from the `settings.local.json` file and use the `WebsitePath` to copy generated js files to their right place.
For the Rsbuild projects it is set up to read from the `settings.local.json` file and use the `WebsitePath` to copy generated js files to their right place.

## Build React Projects

Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ body:
**NOTE:** _If your version is not listed, please upgrade to the latest version. If you cannot upgrade at this time, please open a [Discussion](https://github.com/dnnsoftware/Dnn.Platform/discussions) instead._
multiple: true
options:
- 10.2.3 (latest release)
- 10.3.0 (latest release)
- develop build (unreleased)
validations:
required: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ossf-scorecard.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Scorecard supply-chain security"
name: "Scorecard supply-chain security"
on:
# For Branch-Protection check. Only the default branch is supported. See
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
Expand Down Expand Up @@ -56,6 +56,6 @@ jobs:
# Upload the results to GitHub's code scanning dashboard (optional).
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
- name: "Upload to code-scanning"
uses: "github/codeql-action/upload-sarif@b1bff81932f5cdfc8695c7752dcee935dcd061c8" # v4.33.0
uses: "github/codeql-action/upload-sarif@c10b8064de6f491fea524254123dbe5e09572f13" # v4.35.1
with:
sarif_file: "results.sarif"
10 changes: 3 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ UpgradeLog*.XML
# Node
node_modules/

# AI Assistants
.cursor/

############
## DNN
############
Expand Down Expand Up @@ -148,10 +151,3 @@ yarn-error.log

/DotNetNuke.Internal.SourceGenerators/bin/
/DNN Platform/Tests/DotNetNuke.Tests.SourceGenerators/Snapshots/*.received.*
/Dnn.AdminExperience/Dnn.PersonaBar.Extensions/admin/personaBar/Dnn.Pages/scripts/bundles/
/Dnn.AdminExperience/Dnn.PersonaBar.Extensions/admin/personaBar/Dnn.Roles/scripts/bundles/
/Dnn.AdminExperience/Dnn.PersonaBar.Extensions/admin/personaBar/Dnn.Prompt/css/Prompt.css
/Dnn.AdminExperience/Dnn.PersonaBar.Extensions/admin/personaBar/Dnn.Roles/css/Roles.css
/Dnn.AdminExperience/Dnn.PersonaBar.Extensions/admin/personaBar/Dnn.Security/css/Security.css
/Dnn.AdminExperience/Dnn.PersonaBar.Extensions/admin/personaBar/Dnn.Seo/css/Seo.css
/Dnn.AdminExperience/Dnn.PersonaBar.Extensions/admin/personaBar/Dnn.Servers/css/Servers.css
2 changes: 1 addition & 1 deletion Build/BuildScripts/AEPackage.targets
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<CompressCss>True</CompressCss>
<UseResourceZipWorkingDirectory>True</UseResourceZipWorkingDirectory>
</PropertyGroup>

<Import Project="Package.Targets" />
Expand Down
32 changes: 3 additions & 29 deletions Build/BuildScripts/Package.targets
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<DotNetNukeMSBuildTasksLib>$(BuildScriptsPath)\DotNetNuke.MSBuild.Tasks.dll</DotNetNukeMSBuildTasksLib>
<YuiLib>$(BuildScriptsPath)\Yahoo.Yui.Compressor.MsBuild.dll</YuiLib>
</PropertyGroup>

<UsingTask TaskName="ExtensionPackager" TaskFactory="RoslynCodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.Core.dll">
Expand Down Expand Up @@ -35,8 +34,6 @@
</Code>
</Task>
</UsingTask>
<UsingTask AssemblyFile="$(YuiLib)" TaskName="CssCompressorTask" />
<!--<UsingTask AssemblyFile="$(YuiLib)" TaskName="JavaScriptCompressorTask" />-->

<Target Name="Package" Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
<XmlPeek Namespaces="&lt;Namespace Prefix='n' Uri='http://schemas.microsoft.com/developer/msbuild/2003' /&gt;"
Expand All @@ -49,9 +46,9 @@
</Output>
</ExtensionPackager>

<CallTarget Condition="'$(CompressCss)' == 'True'" Targets="Minification" />
<CallTarget Condition="'$(UseResourceZipWorkingDirectory)' == 'True'" Targets="RezipResources" />
<Copy SourceFiles="$(DNNFileName).dnn" DestinationFolder="$(MSBuildProjectDirectory)\Package" />
<Zip Condition="'$(CompressCss)' != 'True'" Files="@(Resources)" WorkingDirectory="$(MSBuildProjectDirectory)" ZipFileName="$(MSBuildProjectDirectory)\Package\Resources.zip" />
<Zip Condition="'$(UseResourceZipWorkingDirectory)' != 'True'" Files="@(Resources)" WorkingDirectory="$(MSBuildProjectDirectory)" ZipFileName="$(MSBuildProjectDirectory)\Package\Resources.zip" />

<ItemGroup>
<LicenseFiles Include="license.txt"/>
Expand All @@ -74,37 +71,14 @@
<RemoveDir Directories="$(MSBuildProjectDirectory)\Package" ContinueOnError="WarnAndContinue" />
</Target>

<Target Name="Minification">

<Target Name="RezipResources">
<MakeDir Directories="$(MSBuildProjectDirectory)\Package"/>
<Zip Files="@(Resources)" WorkingDirectory="$(MSBuildProjectDirectory)" ZipFileName="$(MSBuildProjectDirectory)\Package\Resources.zip" />
<Unzip ZipFileName="$(MSBuildProjectDirectory)\Package\Resources.zip" TargetDirectory="$(MSBuildProjectDirectory)\Package\Resources" />
<Delete Files="$(MSBuildProjectDirectory)\Package\Resources.zip" />
<ItemGroup>
<!--<_JSFilesToMinify Include="$(MSBuildProjectDirectory)\Package\Resources\**\*.js" Exclude="$(MSBuildProjectDirectory)\Package\Resources\**\*.min.js" />-->
<_Step2FilesToZip Include="$(MSBuildProjectDirectory)\Package\Resources\**\*" />
</ItemGroup>
<!--
<Message Text="Compressing Javascript files" Importance="high" />
<JavaScriptCompressorTask Files="@(_JSFilesToMinify)" ContinueOnError="WarnAndContinue" />
-->

<ItemGroup>
<_CSSFilesToCompress Include="$(MSBuildProjectDirectory)\*\*.css;$(MSBuildProjectDirectory)\*\*\*.css;$(MSBuildProjectDirectory)\*\*\*\*.css;$(MSBuildProjectDirectory)\*\*\*\*\*.css;" Exclude="Package\**\*;**\node_modules\**;**\WebApps\**" />
</ItemGroup>
<Message Text="Compressing the following CSS files:" Importance="high" />
<Message Text="%(_CSSFilesToCompress.Identity)" Importance="high" />

<CssCompressorTask
SourceFiles="@(_CSSFilesToCompress)"
DeleteSourceFiles="false"
OutputFile="$(MSBuildProjectDirectory)\Package\Resources\%(RecursiveDir)%(Filename)%(Extension)"
CompressionType="Standard"
LoggingType="Info"
PreserveComments="false"
LineBreakPosition="-1"
Condition="@(_CSSFilesToCompress->Count())!=0"
/>

<Zip Files="@(_Step2FilesToZip)" WorkingDirectory="$(ResourceZipWorkingDirectory)"
ZipFileName="$(MSBuildProjectDirectory)\Package\Resources.zip" />
Expand Down
Binary file removed Build/BuildScripts/Yahoo.Yui.Compressor.MsBuild.dll
Binary file not shown.
Binary file removed Build/BuildScripts/Yahoo.Yui.Compressor.dll
Binary file not shown.
8 changes: 7 additions & 1 deletion Build/Context.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
namespace DotNetNuke.Build
{
using System;
using System.Globalization;
using System.IO;

using Cake.Common;
using Cake.Common.Build;
using Cake.Common.Diagnostics;
using Cake.Common.IO;
using Cake.Common.IO.Paths;
Expand Down Expand Up @@ -63,7 +65,11 @@ public Context(ICakeContext context)
this.Settings = LoadSettings(context, settingsFile);
this.WriteSettings(context, settingsFile);

this.BuildId = context.EnvironmentVariable("BUILD_BUILDID") ?? "0";
this.BuildId = context.AzurePipelines().IsRunningOnAzurePipelines
? context.AzurePipelines().Environment.Build.Id.ToString(CultureInfo.InvariantCulture)
: context.GitHubActions().IsRunningOnGitHubActions
? context.GitHubActions().Environment.Workflow.RunId
: "0";
context.Information($"BuildId: {this.BuildId}");
this.BuildNumber = string.Empty;
this.ProductVersion = string.Empty;
Expand Down
2 changes: 1 addition & 1 deletion Build/Symbols/DotNetNuke_Symbols.dnn
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<dotnetnuke type="Package" version="5.0">
<packages>
<package name="DotNetNuke_Symbols" type="Library" version="10.02.04" >
<package name="DotNetNuke_Symbols" type="Library" version="10.03.01" >
<friendlyName>DNN Platform Symbols</friendlyName>
<description>This package contains Debug Symbols and Intellisense files for DNN Platform.</description>
<owner>
Expand Down
21 changes: 0 additions & 21 deletions Build/Tasks/CopyWebConfig.cs

This file was deleted.

14 changes: 11 additions & 3 deletions Build/Tasks/CreateGitHubPullRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ namespace DotNetNuke.Build.Tasks
using System.Text.RegularExpressions;

using Cake.Common;
using Cake.Common.Build;
using Cake.Common.Diagnostics;
using Cake.Core;
using Cake.Core.IO;
Expand Down Expand Up @@ -61,7 +62,11 @@ public override void Run(Context context)
return;
}

var sourceBranch = context.EnvironmentVariable("BUILD_SOURCEBRANCH") ?? string.Empty;
var sourceBranch = context.AzurePipelines().IsRunningOnAzurePipelines
? context.AzurePipelines().Environment.Repository.SourceBranch
: context.GitHubActions().IsRunningOnGitHubActions
? context.GitHubActions().Environment.Workflow.Ref
: string.Empty;
context.Information("CreateGitHubPullRequest: BUILD_SOURCEBRANCH is '{0}'.", sourceBranch);
if (!IsTargetedBranch(sourceBranch))
{
Expand All @@ -78,8 +83,11 @@ public override void Run(Context context)
}

// owner/repo – e.g. "dnnsoftware/Dnn.Platform"
var repoSlug = context.EnvironmentVariable("BUILD_REPOSITORY_NAME")
?? throw new CakeException("BUILD_REPOSITORY_NAME environment variable is not set.");
var repoSlug = context.AzurePipelines().IsRunningOnAzurePipelines
? context.AzurePipelines().Environment.Repository.RepoName
: context.GitHubActions().IsRunningOnGitHubActions
? context.GitHubActions().Environment.Workflow.Repository
: throw new CakeException("BUILD_REPOSITORY_NAME environment variable is not set.");

var parts = repoSlug.Split('/');
if (parts.Length != 2)
Expand Down
1 change: 1 addition & 0 deletions Build/Tasks/OtherPackages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ namespace DotNetNuke.Build.Tasks
[IsDependentOn(typeof(PackageSharpZipLib))]
[IsDependentOn(typeof(PackageMicrosoftExtensionsDependencyInjection))]
[IsDependentOn(typeof(PackageMicrosoftWebInfrastructure))]
[IsDependentOn(typeof(PackageMicrosoftCodeDomProvidersDotNetCompilerPlatform))]
public sealed class OtherPackages : FrostingTask<Context>
{
private static readonly string[] IncludeAll = ["**/*",];
Expand Down
10 changes: 2 additions & 8 deletions Build/Tasks/PackageAspNetMvc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,5 @@
namespace DotNetNuke.Build.Tasks;

/// <summary>A cake task to generate the ASP.NET MVC package.</summary>
public sealed class PackageAspNetMvc : PackageComponentTask
{
/// <summary>Initializes a new instance of the <see cref="PackageAspNetMvc"/> class.</summary>
public PackageAspNetMvc()
: base("AspNetMvc", "System.Web.Mvc.dll", "Microsoft.AspNetMvc")
{
}
}
public sealed class PackageAspNetMvc()
: PackageComponentTaskBase("AspNetMvc", "System.Web.Mvc.dll", "Microsoft.AspNetMvc");
10 changes: 2 additions & 8 deletions Build/Tasks/PackageAspNetWebApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,5 @@
namespace DotNetNuke.Build.Tasks;

/// <summary>A cake task to generate the ASP.NET Web API package.</summary>
public sealed class PackageAspNetWebApi : PackageComponentTask
{
/// <summary>Initializes a new instance of the <see cref="PackageAspNetWebApi"/> class.</summary>
public PackageAspNetWebApi()
: base("AspNetWebApi", "System.Web.Http.dll", "Microsoft.AspNetWebApi")
{
}
}
public sealed class PackageAspNetWebApi()
: PackageComponentTaskBase("AspNetWebApi", "System.Web.Http.dll", "Microsoft.AspNetWebApi");
10 changes: 2 additions & 8 deletions Build/Tasks/PackageAspNetWebPages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,5 @@
namespace DotNetNuke.Build.Tasks;

/// <summary>A cake task to generate the ASP.NET Web Pages package.</summary>
public sealed class PackageAspNetWebPages : PackageComponentTask
{
/// <summary>Initializes a new instance of the <see cref="PackageAspNetWebPages"/> class.</summary>
public PackageAspNetWebPages()
: base("AspNetWebPages", "System.Web.WebPages.dll", "Microsoft.AspNetWebPages")
{
}
}
public sealed class PackageAspNetWebPages()
: PackageComponentTaskBase("AspNetWebPages", "System.Web.WebPages.dll", "Microsoft.AspNetWebPages");
Loading
Loading