Skip to content

Commit 94fbdf5

Browse files
authored
Merge pull request #7206 from dnnsoftware/release/10.3.1
Released v10.3.1
2 parents 3293a83 + 17a40ec commit 94fbdf5

332 files changed

Lines changed: 4838 additions & 70412 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/BUILD.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ If you wish to make changes to that project, please keep this in mind.
2727

2828
DNN uses the following technologies to create a working build:
2929
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.
30-
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.
30+
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.
3131
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.
3232

3333
## Build to create packages
3434

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

3737
```
3838
.\build.ps1
@@ -115,7 +115,7 @@ To build the .net projects to the right location, you'll need to create your ove
115115
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.
116116
**Note**: You may have to restart Visual Studio for this new build file to take effect.
117117

118-
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.
118+
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.
119119

120120
## Build React Projects
121121

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ body:
7272
**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._
7373
multiple: true
7474
options:
75-
- 10.2.3 (latest release)
75+
- 10.3.0 (latest release)
7676
- develop build (unreleased)
7777
validations:
7878
required: true

.github/workflows/ossf-scorecard.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Scorecard supply-chain security"
1+
name: "Scorecard supply-chain security"
22
on:
33
# For Branch-Protection check. Only the default branch is supported. See
44
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
@@ -56,6 +56,6 @@ jobs:
5656
# Upload the results to GitHub's code scanning dashboard (optional).
5757
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
5858
- name: "Upload to code-scanning"
59-
uses: "github/codeql-action/upload-sarif@b1bff81932f5cdfc8695c7752dcee935dcd061c8" # v4.33.0
59+
uses: "github/codeql-action/upload-sarif@c10b8064de6f491fea524254123dbe5e09572f13" # v4.35.1
6060
with:
6161
sarif_file: "results.sarif"

.gitignore

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ UpgradeLog*.XML
8585
# Node
8686
node_modules/
8787

88+
# AI Assistants
89+
.cursor/
90+
8891
############
8992
## DNN
9093
############
@@ -148,10 +151,3 @@ yarn-error.log
148151

149152
/DotNetNuke.Internal.SourceGenerators/bin/
150153
/DNN Platform/Tests/DotNetNuke.Tests.SourceGenerators/Snapshots/*.received.*
151-
/Dnn.AdminExperience/Dnn.PersonaBar.Extensions/admin/personaBar/Dnn.Pages/scripts/bundles/
152-
/Dnn.AdminExperience/Dnn.PersonaBar.Extensions/admin/personaBar/Dnn.Roles/scripts/bundles/
153-
/Dnn.AdminExperience/Dnn.PersonaBar.Extensions/admin/personaBar/Dnn.Prompt/css/Prompt.css
154-
/Dnn.AdminExperience/Dnn.PersonaBar.Extensions/admin/personaBar/Dnn.Roles/css/Roles.css
155-
/Dnn.AdminExperience/Dnn.PersonaBar.Extensions/admin/personaBar/Dnn.Security/css/Security.css
156-
/Dnn.AdminExperience/Dnn.PersonaBar.Extensions/admin/personaBar/Dnn.Seo/css/Seo.css
157-
/Dnn.AdminExperience/Dnn.PersonaBar.Extensions/admin/personaBar/Dnn.Servers/css/Servers.css

Build/BuildScripts/AEPackage.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
4-
<CompressCss>True</CompressCss>
4+
<UseResourceZipWorkingDirectory>True</UseResourceZipWorkingDirectory>
55
</PropertyGroup>
66

77
<Import Project="Package.Targets" />

Build/BuildScripts/Package.targets

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
44
<DotNetNukeMSBuildTasksLib>$(BuildScriptsPath)\DotNetNuke.MSBuild.Tasks.dll</DotNetNukeMSBuildTasksLib>
5-
<YuiLib>$(BuildScriptsPath)\Yahoo.Yui.Compressor.MsBuild.dll</YuiLib>
65
</PropertyGroup>
76

87
<UsingTask TaskName="ExtensionPackager" TaskFactory="RoslynCodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.Core.dll">
@@ -35,8 +34,6 @@
3534
</Code>
3635
</Task>
3736
</UsingTask>
38-
<UsingTask AssemblyFile="$(YuiLib)" TaskName="CssCompressorTask" />
39-
<!--<UsingTask AssemblyFile="$(YuiLib)" TaskName="JavaScriptCompressorTask" />-->
4037

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

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

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

77-
<Target Name="Minification">
78-
74+
<Target Name="RezipResources">
7975
<MakeDir Directories="$(MSBuildProjectDirectory)\Package"/>
8076
<Zip Files="@(Resources)" WorkingDirectory="$(MSBuildProjectDirectory)" ZipFileName="$(MSBuildProjectDirectory)\Package\Resources.zip" />
8177
<Unzip ZipFileName="$(MSBuildProjectDirectory)\Package\Resources.zip" TargetDirectory="$(MSBuildProjectDirectory)\Package\Resources" />
8278
<Delete Files="$(MSBuildProjectDirectory)\Package\Resources.zip" />
8379
<ItemGroup>
84-
<!--<_JSFilesToMinify Include="$(MSBuildProjectDirectory)\Package\Resources\**\*.js" Exclude="$(MSBuildProjectDirectory)\Package\Resources\**\*.min.js" />-->
8580
<_Step2FilesToZip Include="$(MSBuildProjectDirectory)\Package\Resources\**\*" />
8681
</ItemGroup>
87-
<!--
88-
<Message Text="Compressing Javascript files" Importance="high" />
89-
<JavaScriptCompressorTask Files="@(_JSFilesToMinify)" ContinueOnError="WarnAndContinue" />
90-
-->
91-
92-
<ItemGroup>
93-
<_CSSFilesToCompress Include="$(MSBuildProjectDirectory)\*\*.css;$(MSBuildProjectDirectory)\*\*\*.css;$(MSBuildProjectDirectory)\*\*\*\*.css;$(MSBuildProjectDirectory)\*\*\*\*\*.css;" Exclude="Package\**\*;**\node_modules\**;**\WebApps\**" />
94-
</ItemGroup>
95-
<Message Text="Compressing the following CSS files:" Importance="high" />
96-
<Message Text="%(_CSSFilesToCompress.Identity)" Importance="high" />
97-
98-
<CssCompressorTask
99-
SourceFiles="@(_CSSFilesToCompress)"
100-
DeleteSourceFiles="false"
101-
OutputFile="$(MSBuildProjectDirectory)\Package\Resources\%(RecursiveDir)%(Filename)%(Extension)"
102-
CompressionType="Standard"
103-
LoggingType="Info"
104-
PreserveComments="false"
105-
LineBreakPosition="-1"
106-
Condition="@(_CSSFilesToCompress->Count())!=0"
107-
/>
10882

10983
<Zip Files="@(_Step2FilesToZip)" WorkingDirectory="$(ResourceZipWorkingDirectory)"
11084
ZipFileName="$(MSBuildProjectDirectory)\Package\Resources.zip" />
-20.5 KB
Binary file not shown.
-50 KB
Binary file not shown.

Build/Context.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
namespace DotNetNuke.Build
55
{
66
using System;
7+
using System.Globalization;
78
using System.IO;
89

910
using Cake.Common;
11+
using Cake.Common.Build;
1012
using Cake.Common.Diagnostics;
1113
using Cake.Common.IO;
1214
using Cake.Common.IO.Paths;
@@ -63,7 +65,11 @@ public Context(ICakeContext context)
6365
this.Settings = LoadSettings(context, settingsFile);
6466
this.WriteSettings(context, settingsFile);
6567

66-
this.BuildId = context.EnvironmentVariable("BUILD_BUILDID") ?? "0";
68+
this.BuildId = context.AzurePipelines().IsRunningOnAzurePipelines
69+
? context.AzurePipelines().Environment.Build.Id.ToString(CultureInfo.InvariantCulture)
70+
: context.GitHubActions().IsRunningOnGitHubActions
71+
? context.GitHubActions().Environment.Workflow.RunId
72+
: "0";
6773
context.Information($"BuildId: {this.BuildId}");
6874
this.BuildNumber = string.Empty;
6975
this.ProductVersion = string.Empty;

Build/Symbols/DotNetNuke_Symbols.dnn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<dotnetnuke type="Package" version="5.0">
22
<packages>
3-
<package name="DotNetNuke_Symbols" type="Library" version="10.02.04" >
3+
<package name="DotNetNuke_Symbols" type="Library" version="10.03.01" >
44
<friendlyName>DNN Platform Symbols</friendlyName>
55
<description>This package contains Debug Symbols and Intellisense files for DNN Platform.</description>
66
<owner>

0 commit comments

Comments
 (0)