Skip to content

Commit 2ef1676

Browse files
committed
build(sln): update to xperience v31.0.0, .NET 10
1 parent ffa083f commit 2ef1676

File tree

113 files changed

+5106
-4561
lines changed

Some content is hidden

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

113 files changed

+5106
-4561
lines changed

.github/agents/Copilot-Tool-Creator.agent.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: 'Copilot-tool-creator'
33
argument-hint: 'Details about the tool'
44
description: Generates prompt, instruction, agent, and other context documents for Copilot
5-
tools: ['search', 'fetch', 'edit', 'changes', 'runCommands', 'githubRepo', 'problems', 'todos']
5+
tools: ['search', 'fetch', 'edit', 'changes', 'execute/getTerminalOutput', 'execute/runInTerminal', 'read/terminalLastCommand', 'read/terminalSelection', 'githubRepo', 'problems', 'todo']
66
---
77

88
# Instructions

.github/prompts/Logging-Migration.prompt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
agent: agent
33
model: GPT-5
4-
tools: ['edit', 'search', 'runCommands', 'runTasks', 'kentico.docs.mcp/*', 'usages', 'problems', 'changes', 'todos']
4+
tools: ['edit', 'search', 'execute/getTerminalOutput', 'execute/runInTerminal', 'read/terminalLastCommand', 'read/terminalSelection', 'execute/createAndRunTask', 'execute/getTaskOutput', 'execute/runTask', 'kentico.docs.mcp/*', 'usages', 'problems', 'changes', 'todo']
55
description: "Replace Xperience IEventLogService with .NET ILogger<T>"
66
---
77

.github/prompts/PageBuilder-PageTemplate.prompt.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
mode: "agent"
3-
tools: ["codebase", "findUsages"]
2+
agent: "agent"
3+
tools: ["search/codebase", 'usages']
44
description: "Instructions to create a Page Builder page template"
55
---
66

.github/prompts/PageBuilder-Section.prompt.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
mode: "agent"
3-
tools: ["codebase", "findUsages"]
2+
agent: "agent"
3+
tools: ["search/codebase", "usages"]
44
description: "Instructions to create a Page Builder section"
55
---
66

.github/prompts/PageBuilder-Widget.prompt.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
mode: "agent"
3-
tools: ["codebase", "findUsages"]
2+
agent: "agent"
3+
tools: ["search/codebase", "usages"]
44
description: "Instructions to create a Page Builder widget"
55
---
66

.github/workflows/ci.yml

Lines changed: 39 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,28 @@ jobs:
4040
STATUS_CHECK_URL: https://localhost:45039/status
4141

4242
steps:
43-
- uses: actions/checkout@v4
43+
- uses: actions/checkout@v6
4444

4545
- name: "Install Node.js from package.json version"
46-
uses: actions/setup-node@v4
46+
uses: actions/setup-node@v6
4747
with:
4848
node-version-file: "src/Kentico.Community.Portal.Web/package.json"
49+
cache: "npm"
50+
cache-dependency-path: "src/Kentico.Community.Portal.Web/package-lock.json"
4951

5052
- name: Setup .NET
51-
uses: actions/setup-dotnet@v4
53+
uses: actions/setup-dotnet@v5
5254
with:
5355
global-json-file: global.json
5456

57+
- name: Cache NuGet packages
58+
uses: actions/cache@v5
59+
with:
60+
path: ~/.nuget/packages
61+
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
62+
restore-keys: |
63+
${{ runner.os }}-nuget-
64+
5565
- name: Install dependencies
5666
run: dotnet restore --locked-mode
5767

@@ -73,7 +83,7 @@ jobs:
7383
-DestinationPath "./database"
7484
7585
- name: Install a SQL Server suite of tools (SQLEngine, SQLPackage)
76-
uses: potatoqualitee/mssqlsuite@v1.8 # set as a commit hash for security
86+
uses: potatoqualitee/mssqlsuite@v1.11
7787
with:
7888
install: sqlpackage, sqlengine, sqlclient
7989
sa-password: Pass@12345
@@ -119,6 +129,16 @@ jobs:
119129
run: |
120130
./Restore-CI.ps1
121131
132+
- name: Run Unit Tests
133+
run: |
134+
dotnet test `
135+
--test-modules ./test/Kentico.Community.Portal.Web.Tests/bin/Release/net10.0/Kentico.Community.Portal.Web.Tests.dll
136+
137+
- name: Run Integration Tests
138+
run: |
139+
dotnet test `
140+
--test-modules ./test/Kentico.Community.Portal.Web.Integration.Tests/bin/Release/net10.0/Kentico.Community.Portal.Web.Integration.Tests.dll
141+
122142
- name: Publish Application
123143
run: |
124144
dotnet publish `
@@ -128,10 +148,22 @@ jobs:
128148
--no-build `
129149
--no-restore
130150
151+
- name: Cache Playwright browsers
152+
id: playwright-cache
153+
uses: actions/cache@v5
154+
with:
155+
path: ~/.cache/ms-playwright
156+
key:
157+
${{ runner.os }}-playwright-${{ hashFiles('**/packages.lock.json')
158+
}}
159+
restore-keys: |
160+
${{ runner.os }}-playwright-
161+
131162
- name: Install Playwright Dependencies
163+
if: steps.playwright-cache.outputs.cache-hit != 'true'
132164
run: |
133165
# Must be path to the RELEASE build
134-
./test/Kentico.Community.Portal.Web.E2E.Tests/bin/Release/net9.0/playwright.ps1 install
166+
./test/Kentico.Community.Portal.Web.E2E.Tests/bin/Release/net10.0/playwright.ps1 install
135167
136168
- name: Install Azurite from npm
137169
run: npm install -g azurite@3.33.0
@@ -174,10 +206,8 @@ jobs:
174206
175207
# Run the E2E tests
176208
dotnet test `
177-
-c Release `
178-
--no-build `
179-
--no-restore `
180-
-s ./test/e2e.runsettings
209+
--test-modules ./test/Kentico.Community.Portal.Web.E2E.Tests/bin/Release/net10.0/Kentico.Community.Portal.Web.E2E.Tests.dll `
210+
--settings ./test/e2e.runsettings
181211
182212
# Stop the background ASP.NET Core application
183213
Receive-Job -Name ${{ env.PROJECT_NAME }}

.github/workflows/deploy.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,28 @@ jobs:
3535
PROJECT_NAME: Kentico.Community.Portal.Web
3636

3737
steps:
38-
- uses: actions/checkout@v4
38+
- uses: actions/checkout@v6
3939

4040
- name: "Install Node.js from package.json version"
41-
uses: actions/setup-node@v4
41+
uses: actions/setup-node@v6
4242
with:
4343
node-version-file: "src/Kentico.Community.Portal.Web/package.json"
44+
cache: "npm"
45+
cache-dependency-path: "src/Kentico.Community.Portal.Web/package-lock.json"
4446

4547
- name: Setup .NET
46-
uses: actions/setup-dotnet@v4
48+
uses: actions/setup-dotnet@v5
4749
with:
4850
global-json-file: global.json
4951

52+
- name: Cache NuGet packages
53+
uses: actions/cache@v5
54+
with:
55+
path: ~/.nuget/packages
56+
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
57+
restore-keys: |
58+
${{ runner.os }}-nuget-
59+
5060
- name: Install dependencies
5161
run: dotnet restore --locked-mode
5262

@@ -68,7 +78,7 @@ jobs:
6878
-DestinationPath "./database"
6979
7080
- name: Install a SQL Server suite of tools (SQLEngine, SQLPackage)
71-
uses: potatoqualitee/mssqlsuite@v1.8 # set as a commit hash for security
81+
uses: potatoqualitee/mssqlsuite@v1.11
7282
with:
7383
install: sqlpackage, sqlengine, sqlclient
7484
sa-password: Pass@12345

.vscode/settings.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,5 +183,11 @@
183183
"Invoke-Expression": false,
184184
"iex": false
185185
},
186-
"chat.agent.maxRequests": 50
186+
"chat.agent.maxRequests": 50,
187+
"chat.customAgentInSubagent.enabled": true,
188+
"chat.useClaudeSkills": true,
189+
"chat.tools.edits.autoApprove": {
190+
"**/*.github/**": false,
191+
"**/appsettings*.json": false
192+
}
187193
}

.vscode/tasks.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,15 @@
105105
"label": ".NET: test (Solution)",
106106
"command": "dotnet",
107107
"type": "process",
108-
"args": ["test", "-s", "./test/basic.runsettings"],
108+
"args": ["test", "--settings", "./test/basic.runsettings"],
109109
"problemMatcher": "$msCompile",
110110
"isTestCommand": true
111111
},
112112
{
113113
"label": ".NET: test (E2E)",
114114
"command": "dotnet",
115115
"type": "process",
116-
"args": ["test", "-s", "./test/e2e.runsettings", "--no-build"],
116+
"args": ["test", "--settings", "./test/e2e.runsettings", "--no-build"],
117117
"dependsOn": [
118118
".NET: build (Test E2E)",
119119
".NET: test (Install Playwright Dependencies)"

Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<Project>
22
<PropertyGroup>
3-
<VersionPrefix>30.12.0.3</VersionPrefix>
3+
<VersionPrefix>31.0.0.0</VersionPrefix>
44
</PropertyGroup>
55

66
<PropertyGroup>
7-
<TargetFramework>net9.0</TargetFramework>
7+
<TargetFramework>net10.0</TargetFramework>
88
<ImplicitUsings>enable</ImplicitUsings>
99
<Nullable>enable</Nullable>
1010
<WarningsAsErrors>nullable</WarningsAsErrors>

0 commit comments

Comments
 (0)