Browse Source

Merge branch 'dev' into resource-based-auth

pull/24374/head
maliming 10 months ago
parent
commit
cea95ea42a
No known key found for this signature in database GPG Key ID: A646B9CB645ECEA4
  1. 4
      Directory.Packages.props
  2. 1
      abp_io/AbpIoLocalization/AbpIoLocalization/Admin/Localization/Resources/en.json
  3. 158
      docs/en/Community-Articles/2025-11-21-AntiGravity/Post.md
  4. BIN
      docs/en/Community-Articles/2025-11-21-AntiGravity/agent-settings.png
  5. BIN
      docs/en/Community-Articles/2025-11-21-AntiGravity/anti-gravity-ui.png
  6. BIN
      docs/en/Community-Articles/2025-11-21-AntiGravity/breakpoint.png
  7. BIN
      docs/en/Community-Articles/2025-11-21-AntiGravity/cover.png
  8. BIN
      docs/en/Community-Articles/2025-11-21-AntiGravity/csharp-debug-extension.png
  9. BIN
      docs/en/Community-Articles/2025-11-21-AntiGravity/debug.png
  10. BIN
      docs/en/Community-Articles/2025-11-21-AntiGravity/errors.png
  11. BIN
      docs/en/Community-Articles/2025-11-21-AntiGravity/extension-features.png
  12. BIN
      docs/en/Community-Articles/2025-11-21-AntiGravity/extension.png
  13. BIN
      docs/en/Community-Articles/2025-11-21-AntiGravity/find-website-port.png
  14. BIN
      docs/en/Community-Articles/2025-11-21-AntiGravity/image-20251123185724281.png
  15. BIN
      docs/en/Community-Articles/2025-11-21-AntiGravity/llms.png
  16. BIN
      docs/en/Community-Articles/2025-11-21-AntiGravity/mcp.png
  17. BIN
      docs/en/Community-Articles/2025-11-21-AntiGravity/pricing.png
  18. BIN
      docs/en/Community-Articles/2025-11-22-building-production-ready-llm-applications/coverimage.png
  19. 114
      docs/en/Community-Articles/2025-11-22-building-production-ready-llm-applications/images/chat-history-hybrid.svg
  20. 150
      docs/en/Community-Articles/2025-11-22-building-production-ready-llm-applications/images/mcp-architecture.svg
  21. 135
      docs/en/Community-Articles/2025-11-22-building-production-ready-llm-applications/images/multilingual-rag.svg
  22. 112
      docs/en/Community-Articles/2025-11-22-building-production-ready-llm-applications/images/pgvector-integration.svg
  23. 118
      docs/en/Community-Articles/2025-11-22-building-production-ready-llm-applications/images/rag-parent-child.svg
  24. 60
      docs/en/Community-Articles/2025-11-22-building-production-ready-llm-applications/images/reasoning-effort-diagram.svg
  25. 149
      docs/en/Community-Articles/2025-11-22-building-production-ready-llm-applications/images/svg-diagram-example.svg
  26. 414
      docs/en/Community-Articles/2025-11-22-building-production-ready-llm-applications/post.md
  27. 1
      docs/en/Community-Articles/2025-11-22-building-production-ready-llm-applications/summary.md
  28. 18
      docs/en/docs-nav.json
  29. 24
      docs/en/framework/ui/angular/modifying-the-menu.md
  30. BIN
      docs/en/images/abp-overall-diagram-1600.png
  31. BIN
      docs/en/images/db-options.png
  32. BIN
      docs/en/images/ui-options.png
  33. 4
      docs/en/modules/ai-management/index.md
  34. 2
      docs/en/tutorials/book-store-with-abp-suite/index.md
  35. 60
      docs/en/tutorials/book-store/part-02.md
  36. 42
      docs/en/tutorials/book-store/part-03.md
  37. 16
      docs/en/tutorials/book-store/part-05.md
  38. 36
      docs/en/tutorials/book-store/part-09.md
  39. 10
      docs/en/tutorials/book-store/part-10.md
  40. 2
      docs/en/tutorials/microservice/index.md
  41. 29
      docs/en/tutorials/microservice/part-05.md
  42. 12
      docs/en/tutorials/microservice/part-06.md
  43. 8
      docs/en/tutorials/todo/layered/index.md
  44. 10
      docs/en/tutorials/todo/single-layer/index.md
  45. 3
      framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/ApplicationPartSorter.cs
  46. 31
      framework/src/Volo.Abp.Authorization/Volo/Abp/Authorization/Permissions/PermissionChecker.cs
  47. 2
      framework/src/Volo.Abp.EntityFrameworkCore.PostgreSql/Volo.Abp.EntityFrameworkCore.PostgreSql.csproj
  48. 7
      framework/src/Volo.Abp.ExceptionHandling/Volo/Abp/AspNetCore/ExceptionHandling/DefaultExceptionToErrorInfoConverter.cs
  49. 13
      framework/test/Volo.Abp.AspNetCore.Mvc.Tests/Volo/Abp/AspNetCore/Mvc/ApplicationPart/ApplicationPartSorter_Tests.cs
  50. 2
      framework/test/Volo.Abp.Authorization.Tests/Volo/Abp/Authorization/AbpAuthorizationTestModule.cs
  51. 27
      framework/test/Volo.Abp.Authorization.Tests/Volo/Abp/Authorization/PermissionChecker_Tests.cs
  52. 6
      framework/test/Volo.Abp.Authorization.Tests/Volo/Abp/Authorization/TestServices/AuthorizationTestPermissionDefinitionProvider.cs
  53. 38
      framework/test/Volo.Abp.Authorization.Tests/Volo/Abp/Authorization/TestServices/TestProhibitedPermissionValueProvider1.cs
  54. 38
      framework/test/Volo.Abp.Authorization.Tests/Volo/Abp/Authorization/TestServices/TestProhibitedPermissionValueProvider2.cs
  55. 9
      latest-versions.json
  56. 2
      modules/cms-kit/src/Volo.CmsKit.Domain.Shared/Volo/CmsKit/Localization/Resources/en.json
  57. 17
      modules/cms-kit/src/Volo.CmsKit.Domain/Volo/CmsKit/Menus/PageChangedHandler.cs
  58. 30
      modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/Rating/Default.cshtml
  59. 4
      modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/Rating/RatingViewComponent.cs
  60. 34
      modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/Rating/default.js
  61. 3
      modules/feature-management/src/Volo.Abp.FeatureManagement.Web/Pages/FeatureManagement/Components/FeatureSettingGroup/Default.js
  62. 1
      modules/feature-management/src/Volo.Abp.FeatureManagement.Web/Pages/FeatureManagement/feature-management-modal.js
  63. 4
      templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.Server.Mongo/MyCompanyName.MyProjectName.Blazor.Server.Mongo.csproj
  64. 4
      templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.Server/MyCompanyName.MyProjectName.Blazor.Server.csproj
  65. 2
      templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.WebAssembly/Client/MyCompanyName.MyProjectName.Blazor.WebAssembly.Client.csproj
  66. 4
      templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.WebAssembly/Server.Mongo/MyCompanyName.MyProjectName.Blazor.WebAssembly.Server.Mongo.csproj
  67. 4
      templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.WebAssembly/Server/MyCompanyName.MyProjectName.Blazor.WebAssembly.Server.csproj
  68. 2
      templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Host.Mongo/MyCompanyName.MyProjectName.Host.Mongo.csproj
  69. 2
      templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Host/MyCompanyName.MyProjectName.Host.csproj
  70. 2
      templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Mvc.Mongo/MyCompanyName.MyProjectName.Mvc.Mongo.csproj
  71. 2
      templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Mvc/MyCompanyName.MyProjectName.Mvc.csproj
  72. 2
      templates/app/aspnet-core/src/MyCompanyName.MyProjectName.AuthServer/MyCompanyName.MyProjectName.AuthServer.csproj
  73. 2
      templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor.Client/MyCompanyName.MyProjectName.Blazor.Client.csproj
  74. 4
      templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor.Server.Tiered/MyCompanyName.MyProjectName.Blazor.Server.Tiered.csproj
  75. 4
      templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor.Server/MyCompanyName.MyProjectName.Blazor.Server.csproj
  76. 2
      templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor.WebApp.Client/MyCompanyName.MyProjectName.Blazor.WebApp.Client.csproj
  77. 2
      templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor.WebApp.Tiered.Client/MyCompanyName.MyProjectName.Blazor.WebApp.Tiered.Client.csproj
  78. 4
      templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor.WebApp.Tiered/MyCompanyName.MyProjectName.Blazor.WebApp.Tiered.csproj
  79. 6
      templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor.WebApp/MyCompanyName.MyProjectName.Blazor.WebApp.csproj
  80. 2
      templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/MyCompanyName.MyProjectName.Blazor.csproj
  81. 2
      templates/app/aspnet-core/src/MyCompanyName.MyProjectName.HttpApi.HostWithIds/MyCompanyName.MyProjectName.HttpApi.HostWithIds.csproj
  82. 2
      templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Web.Host/MyCompanyName.MyProjectName.Web.Host.csproj
  83. 2
      templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Web/MyCompanyName.MyProjectName.Web.csproj

4
Directory.Packages.props

@ -122,11 +122,11 @@
<PackageVersion Include="Microsoft.IdentityModel.Tokens" Version="8.14.0" />
<PackageVersion Include="Microsoft.IdentityModel.JsonWebTokens" Version="8.14.0" />
<PackageVersion Include="Minio" Version="6.0.5" />
<PackageVersion Include="MongoDB.Driver" Version="3.5.0" />
<PackageVersion Include="MongoDB.Driver" Version="3.5.2" />
<PackageVersion Include="NEST" Version="7.17.5" />
<PackageVersion Include="Newtonsoft.Json" Version="13.0.4" />
<PackageVersion Include="Nito.AsyncEx.Context" Version="5.1.2" />
<PackageVersion Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="10.0.0-rc.1" />
<PackageVersion Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="10.0.0" />
<PackageVersion Include="NSubstitute" Version="5.3.0" />
<PackageVersion Include="NuGet.Versioning" Version="6.14.0" />
<PackageVersion Include="NUglify" Version="1.21.17" />

1
abp_io/AbpIoLocalization/AbpIoLocalization/Admin/Localization/Resources/en.json

@ -672,6 +672,7 @@
"SupportQuestionCountPerDeveloperOnRenewLicense": "Support Question Count Per Developer for License Renewal",
"SupportQuestionCountPerDeveloperOnNewLicense": "Support Question Count Per Developer for New License",
"IncludedDeveloperCount": "Included Developer Count",
"AiTokenCountPerDeveloper": "AI Token Count Per Developer",
"CanBuyAdditionalDevelopers": "Can Buy Additional Developers",
"HasEmailSupport": "Has Email Support",
"IsSupportPrivateQuestion": "Can Open Private Support Question",

158
docs/en/Community-Articles/2025-11-21-AntiGravity/Post.md

@ -0,0 +1,158 @@
# My First Look and Experience with Google AntiGravity
## Is Google AntiGravity Going to Replace Your Main Code Editor?
Today, I tried the new code-editor AntiGravity by Google. *"It's beyond a code-editor*" by Google 🙄
When I first launch it, I see the UI is almost same as Cursor. They're both based on Visual Studio Code.
That's why it was not hard to find what I'm looking for.
First of all, the main difference as I see from the Cursor is; when I type a prompt in the agent section **AntiGravity first creates a Task List** (like a road-map) and whenever it finishes a task, it checks the corresponding task. Actually Cursor has a similar functionality but AntiGravity took it one step further.
Second thing which was good to me; AntiGravity uses [Nano Banana 🍌](https://gemini.google/tr/overview/image-generation/). This is Google's AI image generation model... Why it's important because when you create an app, you don't need to search for graphics, deal with image licenses. **AntiGravity generates images automatically and no license is required!**
Third exciting feature for me; **AntiGravity is integrated with Google Chrome and can communicate with the running website**. When I first run my web project, it installed a browser extension which can see and interact with my website. It can see the results, click somewhere else on the page, scroll, fill up the forms, amazing 😵
Another feature I loved is that **you can enter a new prompt even while AntiGravity is still generating a response** 🧐. It instantly prioritizes the latest input and adjusts the ongoing process if needed. But in Cursor, if you add a prompt before the cursor finishes, it simply queues it and runs it later 😔.
And lastly, **AntiGravity is working very good with Gemini 3**.
Well, everything was not so perfect 😥 When I tried AntiGravity, couple of times it stucked AI generation and Agent stopped. I faced errors like this 👇
![Errors](errors.png)
## Debugging .NET Projects via AntiGravity
⚠ There's a crucial development issue with AntiGravity (and also for Cursor, Windsurf etc...) 🤕 you **cannot debug your .NET application with AntiGravity 🥺.** *This is Microsoft's policy!* Microsoft doesn't allow debugging for 3rd party IDEs and shows the below error... That's why I cannot say it's a downside of AntiGravity. You need to use Microsft's original VS Code, Visual Studio or Rider for debugging. But wait a while there's a workaround for this, I'll let you know in the next section.
![Debugging](debug.png)
### What does this error mean?
AntiGravity, Cursor, Windsurf etc... are using Visual Studio Code and the C# extension for VS Code includes the Microsoft .NET Core Debugger "*vsdbg*".
VS Code is open-source but "*vsdbg*" is not open-source! It's working only with Visual Studio Code, Visual Studio and Visual Studio for Mac. This is clearly stated at [Microsoft's this link](https://github.com/dotnet/vscode-csharp/blob/main/docs/debugger/Microsoft-.NET-Core-Debugger-licensing-and-Microsoft-Visual-Studio-Code.md).
### Ok! How to resolve debugging issue with AntiGravity? and Cursor and Windsurf...
There's a free C# debugger extension for Visual Studio Code based IDEs that supports AntiGravity, Cursor and Windsurf. The extension name is **C#**.
You can download this free C# debugger extension at 👉 [open-vsx.org/extension/muhammad-sammy/csharp/](https://open-vsx.org/extension/muhammad-sammy/csharp/).
For AntiGravity open Extension window (*Ctrl + Shift + X*) and search for `C#`, there you'll see this extension.
![C# Debugging Extension](csharp-debug-extension.png)
After installing, I restarted AntiGravity and now I can see the red circle which allows me to add breakpoint on C# code.
![Add C# Breakpoint](breakpoint.png)
### Another Extension For Debugging .NET Apps on VS Code
Recently I heard about DotRush extension from the folks. As they say DotRush works slightly faster and support Razor pages (.cshtml files).
Here's the link for DotRush https://github.com/JaneySprings/DotRush
### Finding Website Running Port
When you run the web project via C# debugger extension, normally it's not using the `launch.json` therefore the website port is not the one when you start from Visual Studio / Rider... So what's my website's port which I just run now? Normally for ASP.NET Core **the default port is 5000**. You can try navigating to http://localhost:5000/.
Alternatively you can write the below code in `Program.cs` which prints the full address of your website in the logs.
If you do the steps which I showed you, you can debug your C# application via AntiGravity and other VS Code derivatives.
![Find Website Port](find-website-port.png)
## How Much is AntiGravity? 💲
Currently there's only individual plan is available for personal accounts and that's free 👏! The contents of Team and Enterprise plans and prices are not announced yet. But **Gemini 3 is not free**! I used it with my company's Google Workspace account which we normally pay for Gemini.
![Pricing](pricing.png)
## More About AntiGravity
There have been many AI assisted IDEs like [Windsurf](https://windsurf.com/), [Cursor](https://cursor.com/), [Zed](https://zed.dev/), [Replit](https://replit.com/) and [Fleet](https://www.jetbrains.com/fleet/). But this time it's different, this is backed by Google.
As you see from the below image AntiGravity, uses a standard grid layout as others based on VS Code editor.
It's very similar to Cursor, Visual Studio, Rider.
![AntiGravity UI](anti-gravity-ui.png)
## Supported LLMs 🧠
Antigravity offers the below models which supports reasoning: Gemini 3 Pro, Claude Sonnet 4.5, GPT-OSS
![LLMs](llms.png)
Antigravity uses other models for supportive tasks in the background:
- **Nano banana**: This is used to generate images.
- **Gemini 2.5 Pro UI Checkpoint**: It's for the browser subagent to trigger browser action such as clicking, scrolling, or filling in input.
- **Gemini 2.5 Flash**: For checkpointing and context summarization, this is used.
- **Gemini 2.5 Flash Lite**: And when it's need to make a semantic search in your code-base, this is used.
## AntiGravity Can See Your Website
This makes a big difference from traditional IDEs. AntiGravity's browser agent is taking screenshots of your pages when it needs to check. This is achieved by a Chrome Extension as a tool to the agent, and you can also prompt the agent to take a screenshot of a page. It can iterate on website designs and implementations, it can perform UI Testing, it can monitor dashboards, it can automate routine tasks like rerunning CI.
This is the link for the extension 👉 [chromewebstore.google.com/detail/antigravity-browser-exten/eeijfnjmjelapkebgockoeaadonbchdd](https://chromewebstore.google.com/detail/antigravity-browser-exten/eeijfnjmjelapkebgockoeaadonbchdd). AntiGravity will install this extension automatically on the first run.
![Browser Extension](extension.png)
![Extension Features](extension-features.png)
## MCP Integration
### When Do We Need MCP in a Code Editor?
Simply if we want to connect to a 3rd party service to complete our task we need MCP. So AntiGravity can connect to your DB and write proper SQL queries or it can pull in recent build logs from Netlify or Heroku. Also you can ask AntiGravity to to connect GitHub for finding the best authentication pattern.
### AntiGravity Supports These MCP Servers
Airweave, AlloyDB for PostgreSQL, Atlassian, BigQuery, Cloud SQL for PostgreSQL, Cloud SQL for MySQL, Cloud SQL for SQL Server, Dart, Dataplex, Figma Dev Mode MCP, Firebase, GitHub, Harness, Heroku, Linear, Locofy, Looker, MCP Toolbox for Databases, MongoDB, Neon, Netlify, Notion, PayPal, Perplexity Ask, Pinecone, Prisma, Redis, Sequential Thinking, SonarQube, Spanner, Stripe and Supabase.
![MCP](mcp.png)
## Agent Settings ⚙️
The major settings of Agent are:
- **Agent Auto Fix Lints**: I enabled this setting because I want the Agent automatically fixes its own mistakes for invalid syntax, bad formatting, unused variables, unreachable code or following coding standards... It makes extra tool calls that's why little bit expensive 🥴.
- **Auto Execution**: Sometimes Agent tries to build application or writing test code and running it, in these cases it executes command. I choose "Turbo" 🤜 With this option, Agent always runs the terminal command and controls my browser.
- **Review Policy**: How much control you are giving to agent 🙎. I choose "Always Proceed" 👌 because I mostly trust AI 😀. The Agent will never ask for review.
![Agent Settings](agent-settings.png)
## Differences Between Cursor and AntiGravity
While Cursor was the champion of AI code editors, **Antigravity brings a different philosophy**.
### 1. "Agent-First 🤖" vs "You-First 🤠"
- **Cursor:** It acts like an assistant; it predicts your next move, auto-completes your thoughts, and helps you refactor while you type. You are still the driver; Cursor just drives the car at 200 km/h.
- **Antigravity:** Antigravity is built to let you manage coding tasks. It is "Agent-First." You don't just type code; you assign tasks to autonomous agents (e.g., "Fix the bug in the login flow and verify it in the browser"). It behaves more like a junior developer that you supervise.
### 2. The Interface
- **Cursor:** Looks and feels exactly like **VS Code**. If you know VS Code, you know Cursor.
- **Antigravity:** Introduces 2 major layouts:
- **Editor View:** Similar to a standard IDE
- **Manager View:** A dashboard where you see multiple "Agents" working in parallel. You can watch them plan, execute, and test tasks asynchronously.
### 3. Verification & Trust
- **Cursor:** You verify by reading the code diffs it suggests.
- **Antigravity:** Introduces **Artifacts**... Since the agents work autonomously, they generate proof-of-work documents, screenshots of the app running, browser logs and execution plans. So you can verify what they did without necessarily reading every line of code immediately.
### 4. Capabilities
- **Cursor:** Best-in-class **Autocomplete** ("Tab" feature) and **Composer** (multi-file editing). It excels at "Vibe Coding". It's getting into a flow state where the AI writes the boilerplate and you direct the logic.
- **Antigravity:** Is good at **Autonomous Execution**. It has a built-in browser and terminal that the *Agent* controls. The Agent can write code, run the server, open the browser, see the error, and fix it 😎
### 5. AI Models (Brains 🧠)
- **Cursor:** Model Agnostic. You can switch between **Claude 3.5 Sonnet** *-mostly the community uses this-*, GPT-4o, and others.
- **Antigravity:** Built deeply around **Gemini 3 Pro**. It leverages Gemini's massive context window (1M+ tokens) to understand huge mono repos without needing as much "RAG" as Cursor.
## Try It Yourself Now 🤝
If you are ready to experience the new AI code editor by Google, download and use 👇
[**Launch Google AntiGravity**](https://antigravity.google/)

BIN
docs/en/Community-Articles/2025-11-21-AntiGravity/agent-settings.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

BIN
docs/en/Community-Articles/2025-11-21-AntiGravity/anti-gravity-ui.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 KiB

BIN
docs/en/Community-Articles/2025-11-21-AntiGravity/breakpoint.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

BIN
docs/en/Community-Articles/2025-11-21-AntiGravity/cover.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

BIN
docs/en/Community-Articles/2025-11-21-AntiGravity/csharp-debug-extension.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

BIN
docs/en/Community-Articles/2025-11-21-AntiGravity/debug.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
docs/en/Community-Articles/2025-11-21-AntiGravity/errors.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

BIN
docs/en/Community-Articles/2025-11-21-AntiGravity/extension-features.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 293 KiB

BIN
docs/en/Community-Articles/2025-11-21-AntiGravity/extension.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

BIN
docs/en/Community-Articles/2025-11-21-AntiGravity/find-website-port.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

BIN
docs/en/Community-Articles/2025-11-21-AntiGravity/image-20251123185724281.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
docs/en/Community-Articles/2025-11-21-AntiGravity/llms.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
docs/en/Community-Articles/2025-11-21-AntiGravity/mcp.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 275 KiB

BIN
docs/en/Community-Articles/2025-11-21-AntiGravity/pricing.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

BIN
docs/en/Community-Articles/2025-11-22-building-production-ready-llm-applications/coverimage.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

114
docs/en/Community-Articles/2025-11-22-building-production-ready-llm-applications/images/chat-history-hybrid.svg

@ -0,0 +1,114 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 450">
<!-- Background -->
<rect width="800" height="450" fill="#f8f9fa"/>
<!-- Title -->
<text x="400" y="30" font-family="Arial" font-size="18" font-weight="bold" text-anchor="middle" fill="#0066cc">
Hybrid Chat History: Truncation + RAG on History
</text>
<!-- Full conversation -->
<rect x="50" y="60" width="250" height="200" fill="#e3f2fd" stroke="#1976d2" stroke-width="2" rx="5"/>
<text x="175" y="85" font-family="Arial" font-size="13" font-weight="bold" text-anchor="middle" fill="#0d47a1">
Full Chat History
</text>
<text x="175" y="105" font-family="Arial" font-size="10" text-anchor="middle" fill="#0d47a1">
(100 messages, 20K tokens)
</text>
<!-- Messages visual -->
<rect x="60" y="120" width="230" height="15" fill="#90caf9" stroke="#1976d2" stroke-width="1" rx="2"/>
<text x="175" y="131" font-family="Arial" font-size="9" text-anchor="middle" fill="#0d47a1">Messages 1-10 (1 day ago)</text>
<rect x="60" y="140" width="230" height="15" fill="#90caf9" stroke="#1976d2" stroke-width="1" rx="2"/>
<text x="175" y="151" font-family="Arial" font-size="9" text-anchor="middle" fill="#0d47a1">Messages 11-20 (12 hours ago)</text>
<text x="175" y="175" font-family="Arial" font-size="11" text-anchor="middle" fill="#666">...</text>
<rect x="60" y="190" width="230" height="15" fill="#90caf9" stroke="#1976d2" stroke-width="1" rx="2"/>
<text x="175" y="201" font-family="Arial" font-size="9" text-anchor="middle" fill="#0d47a1">Messages 81-90</text>
<rect x="60" y="210" width="230" height="35" fill="#64b5f6" stroke="#1976d2" stroke-width="2" rx="2"/>
<text x="175" y="230" font-family="Arial" font-size="10" font-weight="bold" text-anchor="middle" fill="#0d47a1">Messages 91-100 (Last 10)</text>
<!-- Arrow split -->
<defs>
<marker id="arrow" markerWidth="10" markerHeight="10" refX="9" refY="3" orient="auto">
<polygon points="0 0, 10 3, 0 6" fill="#333"/>
</marker>
</defs>
<line x1="300" y1="150" x2="370" y2="100" stroke="#d32f2f" stroke-width="2" marker-end="url(#arrow)"/>
<line x1="300" y1="227" x2="370" y2="250" stroke="#388e3c" stroke-width="2" marker-end="url(#arrow)"/>
<text x="310" y="130" font-family="Arial" font-size="10" fill="#d32f2f">Old Messages</text>
<text x="310" y="270" font-family="Arial" font-size="10" fill="#388e3c">Recent Messages</text>
<!-- Vector DB (Long-term memory) -->
<rect x="370" y="60" width="180" height="100" fill="#ffebee" stroke="#d32f2f" stroke-width="2" rx="5"/>
<text x="460" y="85" font-family="Arial" font-size="12" font-weight="bold" text-anchor="middle" fill="#b71c1c">
Vector DB
</text>
<text x="460" y="105" font-family="Arial" font-size="10" text-anchor="middle" fill="#b71c1c">
(Long-term Memory)
</text>
<text x="460" y="125" font-family="Arial" font-size="9" text-anchor="middle" fill="#b71c1c">
Messages 1-90 with embeddings
</text>
<text x="460" y="140" font-family="Arial" font-size="9" text-anchor="middle" fill="#b71c1c">
Tool: SearchChatHistory()
</text>
<!-- Short-term memory (Prompt) -->
<rect x="370" y="200" width="180" height="100" fill="#c8e6c9" stroke="#388e3c" stroke-width="2" rx="5"/>
<text x="460" y="225" font-family="Arial" font-size="12" font-weight="bold" text-anchor="middle" fill="#1b5e20">
Prompt (Short-term)
</text>
<text x="460" y="245" font-family="Arial" font-size="10" text-anchor="middle" fill="#1b5e20">
Messages 91-100
</text>
<text x="460" y="265" font-family="Arial" font-size="9" text-anchor="middle" fill="#1b5e20">
Truncation (Last 10 messages)
</text>
<text x="460" y="280" font-family="Arial" font-size="9" text-anchor="middle" fill="#1b5e20">
Low tokens, fast
</text>
<!-- LLM -->
<line x1="550" y1="110" x2="600" y2="180" stroke="#666" stroke-width="2" stroke-dasharray="5,5" marker-end="url(#arrow)"/>
<line x1="550" y1="250" x2="600" y2="210" stroke="#666" stroke-width="2" marker-end="url(#arrow)"/>
<rect x="600" y="150" width="150" height="100" fill="#f3e5f5" stroke="#7b1fa2" stroke-width="2" rx="5"/>
<text x="675" y="185" font-family="Arial" font-size="14" font-weight="bold" text-anchor="middle" fill="#4a148c">
LLM
</text>
<text x="675" y="205" font-family="Arial" font-size="10" text-anchor="middle" fill="#4a148c">
Short-term context +
</text>
<text x="675" y="220" font-family="Arial" font-size="10" text-anchor="middle" fill="#4a148c">
Long-term memory via tool
</text>
<text x="675" y="235" font-family="Arial" font-size="10" text-anchor="middle" fill="#4a148c">
access when needed
</text>
<!-- Benefits -->
<rect x="50" y="330" width="700" height="100" fill="#fff9c4" stroke="#f57f17" stroke-width="2" rx="5"/>
<text x="400" y="360" font-family="Arial" font-size="14" font-weight="bold" text-anchor="middle" fill="#f57f17">
✅ Hybrid Approach Benefits
</text>
<g id="benefit1">
<circle cx="80" cy="385" r="5" fill="#fbc02d"/>
<text x="95" y="390" font-family="Arial" font-size="11" fill="#f57f17">
<tspan font-weight="bold">Low Cost:</tspan> Only last 10 messages in prompt per request (truncation)
</text>
</g>
<g id="benefit2">
<circle cx="80" cy="410" r="5" fill="#fbc02d"/>
<text x="95" y="415" font-family="Arial" font-size="11" fill="#f57f17">
<tspan font-weight="bold">High Fidelity:</tspan> LLM can access old messages via SearchChatHistory tool when needed
</text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 5.4 KiB

150
docs/en/Community-Articles/2025-11-22-building-production-ready-llm-applications/images/mcp-architecture.svg

@ -0,0 +1,150 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 900 500">
<!-- Background -->
<rect width="900" height="500" fill="#f8f9fa"/>
<!-- Title -->
<text x="450" y="30" font-family="Arial" font-size="20" font-weight="bold" text-anchor="middle" fill="#0066cc">
Model Context Protocol (MCP): Out-of-Process Tools
</text>
<!-- MCP Hosts -->
<text x="150" y="70" font-family="Arial" font-size="14" font-weight="bold" text-anchor="middle" fill="#333">
MCP Hosts (Clients)
</text>
<g id="semantic-kernel-host">
<rect x="50" y="80" width="200" height="70" fill="#0078d4" stroke="#005a9e" stroke-width="2" rx="5"/>
<text x="150" y="110" font-family="Arial" font-size="14" font-weight="bold" text-anchor="middle" fill="#fff">
Semantic Kernel
</text>
<text x="150" y="130" font-family="Arial" font-size="11" text-anchor="middle" fill="#fff">
(.NET Agent)
</text>
</g>
<g id="vscode-host">
<rect x="50" y="170" width="200" height="70" fill="#007acc" stroke="#005a8c" stroke-width="2" rx="5"/>
<text x="150" y="200" font-family="Arial" font-size="14" font-weight="bold" text-anchor="middle" fill="#fff">
VS Code Copilot
</text>
<text x="150" y="220" font-family="Arial" font-size="11" text-anchor="middle" fill="#fff">
(.vscode/mcp.json)
</text>
</g>
<g id="claude-host">
<rect x="50" y="260" width="200" height="70" fill="#d97706" stroke="#b45309" stroke-width="2" rx="5"/>
<text x="150" y="290" font-family="Arial" font-size="14" font-weight="bold" text-anchor="middle" fill="#fff">
Claude Desktop
</text>
<text x="150" y="310" font-family="Arial" font-size="11" text-anchor="middle" fill="#fff">
(Anthropic)
</text>
</g>
<!-- Arrows -->
<defs>
<marker id="arrow" markerWidth="10" markerHeight="10" refX="9" refY="3" orient="auto">
<polygon points="0 0, 10 3, 0 6" fill="#333"/>
</marker>
</defs>
<line x1="250" y1="115" x2="350" y2="200" stroke="#666" stroke-width="2" stroke-dasharray="5,5" marker-end="url(#arrow)"/>
<line x1="250" y1="205" x2="350" y2="200" stroke="#666" stroke-width="2" stroke-dasharray="5,5" marker-end="url(#arrow)"/>
<line x1="250" y1="295" x2="350" y2="200" stroke="#666" stroke-width="2" stroke-dasharray="5,5" marker-end="url(#arrow)"/>
<text x="290" y="160" font-family="Arial" font-size="10" text-anchor="middle" fill="#666">
stdio/http
</text>
<text x="290" y="175" font-family="Arial" font-size="10" text-anchor="middle" fill="#666">
JSON-RPC
</text>
<!-- MCP Protocol Layer -->
<rect x="350" y="160" width="200" height="80" fill="#00c853" stroke="#00a040" stroke-width="3" rx="5"/>
<text x="450" y="190" font-family="Arial" font-size="16" font-weight="bold" text-anchor="middle" fill="#fff">
MCP Protocol
</text>
<text x="450" y="210" font-family="Arial" font-size="11" text-anchor="middle" fill="#fff">
(Standardized Interface)
</text>
<text x="450" y="225" font-family="Arial" font-size="10" text-anchor="middle" fill="#fff">
ModelContextProtocol SDK
</text>
<!-- Arrows to servers -->
<line x1="550" y1="200" x2="620" y2="130" stroke="#333" stroke-width="2" marker-end="url(#arrow)"/>
<line x1="550" y1="200" x2="620" y2="205" stroke="#333" stroke-width="2" marker-end="url(#arrow)"/>
<line x1="550" y1="200" x2="620" y2="280" stroke="#333" stroke-width="2" marker-end="url(#arrow)"/>
<!-- MCP Servers -->
<text x="725" y="70" font-family="Arial" font-size="14" font-weight="bold" text-anchor="middle" fill="#333">
MCP Servers (Tools)
</text>
<g id="filesystem-server">
<rect x="620" y="90" width="210" height="80" fill="#9c27b0" stroke="#7b1fa2" stroke-width="2" rx="5"/>
<text x="725" y="120" font-family="Arial" font-size="13" font-weight="bold" text-anchor="middle" fill="#fff">
filesystem.mcp.exe
</text>
<text x="725" y="140" font-family="Arial" font-size="10" text-anchor="middle" fill="#fff">
ReadFile(), ListFiles()
</text>
<text x="725" y="155" font-family="Arial" font-size="10" text-anchor="middle" fill="#fff">
(.NET Console App)
</text>
</g>
<g id="database-server">
<rect x="620" y="180" width="210" height="80" fill="#1976d2" stroke="#0d47a1" stroke-width="2" rx="5"/>
<text x="725" y="210" font-family="Arial" font-size="13" font-weight="bold" text-anchor="middle" fill="#fff">
sqlserver.mcp.exe
</text>
<text x="725" y="230" font-family="Arial" font-size="10" text-anchor="middle" fill="#fff">
ExecuteQuery(), GetSchema()
</text>
<text x="725" y="245" font-family="Arial" font-size="10" text-anchor="middle" fill="#fff">
(.NET Console App)
</text>
</g>
<g id="github-server">
<rect x="620" y="270" width="210" height="80" fill="#333" stroke="#000" stroke-width="2" rx="5"/>
<text x="725" y="300" font-family="Arial" font-size="13" font-weight="bold" text-anchor="middle" fill="#fff">
github.mcp.js
</text>
<text x="725" y="320" font-family="Arial" font-size="10" text-anchor="middle" fill="#fff">
CreateIssue(), GetPR()
</text>
<text x="725" y="335" font-family="Arial" font-size="10" text-anchor="middle" fill="#fff">
(Node.js / TypeScript)
</text>
</g>
<!-- Benefits box -->
<rect x="50" y="370" width="800" height="120" fill="#e8f5e9" stroke="#388e3c" stroke-width="2" rx="5"/>
<text x="450" y="400" font-family="Arial" font-size="15" font-weight="bold" text-anchor="middle" fill="#1b5e20">
✅ MCP Benefits
</text>
<g id="benefit1">
<circle cx="80" cy="425" r="5" fill="#4caf50"/>
<text x="95" y="430" font-family="Arial" font-size="11" fill="#1b5e20">
<tspan font-weight="bold">Reusability:</tspan> Write once, use everywhere (SK, VS Code, Claude)
</text>
</g>
<g id="benefit2">
<circle cx="80" cy="450" r="5" fill="#4caf50"/>
<text x="95" y="455" font-family="Arial" font-size="11" fill="#1b5e20">
<tspan font-weight="bold">Independence:</tspan> MCP server runs separately, doesn't affect main app (out-of-process)
</text>
</g>
<g id="benefit3">
<circle cx="80" cy="475" r="5" fill="#4caf50"/>
<text x="95" y="480" font-family="Arial" font-size="11" fill="#1b5e20">
<tspan font-weight="bold">Language Agnostic:</tspan> Can be written in C#, Python, Node.js, everyone speaks same protocol
</text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 6.3 KiB

135
docs/en/Community-Articles/2025-11-22-building-production-ready-llm-applications/images/multilingual-rag.svg

@ -0,0 +1,135 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 400">
<!-- Background -->
<rect width="1000" height="400" fill="#f8f9fa"/>
<!-- Title -->
<text x="500" y="30" font-family="Arial" font-size="20" font-weight="bold" text-anchor="middle" fill="#0066cc">
Multilingual RAG: Query Translation Pattern
</text>
<!-- User Query (Turkish) -->
<rect x="50" y="80" width="180" height="80" fill="#fff3cd" stroke="#ffc107" stroke-width="2" rx="5"/>
<text x="140" y="110" font-family="Arial" font-size="14" font-weight="bold" text-anchor="middle" fill="#856404">
User Query
</text>
<text x="140" y="130" font-family="Arial" font-size="12" text-anchor="middle" fill="#856404">
🇹🇷 "Yazıcıyı ağa
</text>
<text x="140" y="145" font-family="Arial" font-size="12" text-anchor="middle" fill="#856404">
nasıl bağlarım?"
</text>
<!-- Arrow -->
<defs>
<marker id="arrow" markerWidth="10" markerHeight="10" refX="9" refY="3" orient="auto">
<polygon points="0 0, 10 3, 0 6" fill="#333"/>
</marker>
</defs>
<line x1="230" y1="120" x2="290" y2="120" stroke="#d32f2f" stroke-width="3" marker-end="url(#arrow)"/>
<text x="260" y="110" font-family="Arial" font-size="11" font-weight="bold" text-anchor="middle" fill="#d32f2f">
Tool 1
</text>
<!-- Translation Tool -->
<rect x="290" y="80" width="180" height="80" fill="#ffccbc" stroke="#d84315" stroke-width="2" rx="5"/>
<text x="380" y="105" font-family="Arial" font-size="13" font-weight="bold" text-anchor="middle" fill="#bf360c">
TranslationPlugin
</text>
<text x="380" y="125" font-family="Arial" font-size="11" text-anchor="middle" fill="#bf360c">
TranslateText()
</text>
<text x="380" y="145" font-family="Arial" font-size="10" text-anchor="middle" fill="#bf360c">
Target: English
</text>
<!-- Translated Query (English) -->
<line x1="470" y1="120" x2="530" y2="120" stroke="#388e3c" stroke-width="3" marker-end="url(#arrow)"/>
<text x="500" y="110" font-family="Arial" font-size="11" font-weight="bold" text-anchor="middle" fill="#1b5e20">
Tool 2
</text>
<rect x="530" y="80" width="180" height="80" fill="#c8e6c9" stroke="#388e3c" stroke-width="2" rx="5"/>
<text x="620" y="110" font-family="Arial" font-size="14" font-weight="bold" text-anchor="middle" fill="#1b5e20">
RAGPlugin
</text>
<text x="620" y="130" font-family="Arial" font-size="11" text-anchor="middle" fill="#1b5e20">
🇬🇧 "How do I connect
</text>
<text x="620" y="145" font-family="Arial" font-size="11" text-anchor="middle" fill="#1b5e20">
the printer to network?"
</text>
<!-- Vector DB -->
<line x1="710" y1="120" x2="770" y2="220" stroke="#1976d2" stroke-width="2" stroke-dasharray="5,5" marker-end="url(#arrow)"/>
<text x="740" y="170" font-family="Arial" font-size="10" text-anchor="middle" fill="#0d47a1">
Vector Search
</text>
<rect x="770" y="220" width="180" height="80" fill="#e3f2fd" stroke="#1976d2" stroke-width="2" rx="5"/>
<text x="860" y="245" font-family="Arial" font-size="13" font-weight="bold" text-anchor="middle" fill="#0d47a1">
Vector DB
</text>
<text x="860" y="265" font-family="Arial" font-size="10" text-anchor="middle" fill="#0d47a1">
(English Docs)
</text>
<text x="860" y="280" font-family="Arial" font-size="10" text-anchor="middle" fill="#0d47a1">
"Navigate to Settings
</text>
<text x="860" y="292" font-family="Arial" font-size="10" text-anchor="middle" fill="#0d47a1">
&gt; Network &gt; Wi-Fi..."
</text>
<!-- Retrieved Context -->
<line x1="770" y1="260" x2="710" y2="260" stroke="#1976d2" stroke-width="2" marker-end="url(#arrow)"/>
<rect x="530" y="220" width="180" height="80" fill="#bbdefb" stroke="#1976d2" stroke-width="2" rx="5"/>
<text x="620" y="245" font-family="Arial" font-size="12" font-weight="bold" text-anchor="middle" fill="#0d47a1">
Retrieved Context
</text>
<text x="620" y="265" font-family="Arial" font-size="10" text-anchor="middle" fill="#0d47a1">
🇬🇧 English text
</text>
<text x="620" y="280" font-family="Arial" font-size="10" text-anchor="middle" fill="#0d47a1">
(Manual excerpt)
</text>
<!-- Arrow to LLM -->
<line x1="530" y1="260" x2="470" y2="260" stroke="#9c27b0" stroke-width="3" marker-end="url(#arrow)"/>
<!-- LLM Final Generation -->
<rect x="290" y="220" width="180" height="80" fill="#f3e5f5" stroke="#7b1fa2" stroke-width="2" rx="5"/>
<text x="380" y="245" font-family="Arial" font-size="13" font-weight="bold" text-anchor="middle" fill="#4a148c">
LLM (GPT-5)
</text>
<text x="380" y="265" font-family="Arial" font-size="10" text-anchor="middle" fill="#4a148c">
Context: [English]
</text>
<text x="380" y="280" font-family="Arial" font-size="10" text-anchor="middle" fill="#4a148c">
Generates: [Turkish Response]
</text>
<!-- Arrow to user -->
<line x1="290" y1="260" x2="230" y2="260" stroke="#9c27b0" stroke-width="3" marker-end="url(#arrow)"/>
<!-- Final Answer -->
<rect x="50" y="220" width="180" height="80" fill="#e1bee7" stroke="#7b1fa2" stroke-width="2" rx="5"/>
<text x="140" y="245" font-family="Arial" font-size="13" font-weight="bold" text-anchor="middle" fill="#4a148c">
Response to User
</text>
<text x="140" y="265" font-family="Arial" font-size="11" text-anchor="middle" fill="#4a148c">
🇹🇷 "Ayarlar &gt; Ağ &gt;
</text>
<text x="140" y="280" font-family="Arial" font-size="11" text-anchor="middle" fill="#4a148c">
Wi-Fi bölümüne gidin..."
</text>
<!-- Benefit note -->
<rect x="50" y="320" width="900" height="60" fill="#fff9c4" stroke="#f57f17" stroke-width="2" rx="5"/>
<text x="500" y="345" font-family="Arial" font-size="13" font-weight="bold" text-anchor="middle" fill="#f57f17">
✅ Benefit: Single language (English) docs, multi-language query support
</text>
<text x="500" y="365" font-family="Arial" font-size="11" text-anchor="middle" fill="#f57f17">
Tool Chain: TranslationPlugin → RAGPlugin → LLM Final Generation (Original language)
</text>
</svg>

After

Width:  |  Height:  |  Size: 6.0 KiB

112
docs/en/Community-Articles/2025-11-22-building-production-ready-llm-applications/images/pgvector-integration.svg

@ -0,0 +1,112 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 950 400">
<!-- Background -->
<rect width="950" height="400" fill="#f8f9fa"/>
<!-- Title -->
<text x="475" y="30" font-family="Arial" font-size="20" font-weight="bold" text-anchor="middle" fill="#0066cc">
PostgreSQL + pgvector: Integrated RAG with EF Core
</text>
<!-- .NET App -->
<rect x="50" y="80" width="200" height="80" fill="#0078d4" stroke="#005a9e" stroke-width="2" rx="5"/>
<text x="150" y="115" font-family="Arial" font-size="16" font-weight="bold" text-anchor="middle" fill="#fff">
.NET Application
</text>
<text x="150" y="135" font-family="Arial" font-size="12" text-anchor="middle" fill="#fff">
(EF Core DbContext)
</text>
<!-- Arrow -->
<defs>
<marker id="arrow" markerWidth="10" markerHeight="10" refX="9" refY="3" orient="auto">
<polygon points="0 0, 10 3, 0 6" fill="#333"/>
</marker>
</defs>
<line x1="250" y1="120" x2="330" y2="120" stroke="#333" stroke-width="2" marker-end="url(#arrow)"/>
<text x="290" y="110" font-family="Arial" font-size="11" text-anchor="middle" fill="#666">
LINQ Query
</text>
<!-- Pgvector.EntityFrameworkCore -->
<rect x="330" y="80" width="240" height="80" fill="#00c853" stroke="#00a040" stroke-width="3" rx="5"/>
<text x="450" y="110" font-family="Arial" font-size="15" font-weight="bold" text-anchor="middle" fill="#fff">
Pgvector.EntityFrameworkCore
</text>
<text x="450" y="130" font-family="Arial" font-size="11" text-anchor="middle" fill="#fff">
CosineDistance(), L2Distance()
</text>
<text x="450" y="145" font-family="Arial" font-size="11" text-anchor="middle" fill="#fff">
EF Core Extensions
</text>
<!-- Arrow -->
<line x1="570" y1="120" x2="650" y2="120" stroke="#333" stroke-width="2" marker-end="url(#arrow)"/>
<text x="610" y="110" font-family="Arial" font-size="11" text-anchor="middle" fill="#666">
SQL Query
</text>
<!-- PostgreSQL -->
<rect x="650" y="60" width="250" height="120" fill="#336791" stroke="#1a4a6d" stroke-width="2" rx="5"/>
<text x="775" y="95" font-family="Arial" font-size="16" font-weight="bold" text-anchor="middle" fill="#fff">
PostgreSQL + pgvector
</text>
<!-- Table visualization -->
<g id="table">
<rect x="670" y="110" width="210" height="60" fill="#4a7ba7" stroke="#fff" stroke-width="1" rx="3"/>
<!-- Header -->
<text x="685" y="127" font-family="Arial" font-size="10" font-weight="bold" fill="#fff">id</text>
<text x="725" y="127" font-family="Arial" font-size="10" font-weight="bold" fill="#fff">content</text>
<text x="800" y="127" font-family="Arial" font-size="10" font-weight="bold" fill="#fff">embedding</text>
<!-- Rows -->
<line x1="670" y1="130" x2="880" y2="130" stroke="#fff" stroke-width="1"/>
<text x="685" y="145" font-family="Arial" font-size="9" fill="#fff">1</text>
<text x="725" y="145" font-family="Arial" font-size="9" fill="#fff">Contoso...</text>
<text x="800" y="145" font-family="Arial" font-size="9" fill="#fff">[0.2, -0.1,...]</text>
<text x="685" y="160" font-family="Arial" font-size="9" fill="#fff">2</text>
<text x="725" y="160" font-family="Arial" font-size="9" fill="#fff">Revenue...</text>
<text x="800" y="160" font-family="Arial" font-size="9" fill="#fff">[0.5, 0.3,...]</text>
</g>
<!-- Benefits Box -->
<rect x="50" y="220" width="850" height="150" fill="#e8f5e9" stroke="#388e3c" stroke-width="2" rx="5"/>
<text x="475" y="250" font-family="Arial" font-size="16" font-weight="bold" text-anchor="middle" fill="#1b5e20">
✅ Benefits
</text>
<g id="benefit1">
<circle cx="80" cy="275" r="5" fill="#4caf50"/>
<text x="95" y="280" font-family="Arial" font-size="12" fill="#1b5e20">
<tspan font-weight="bold">Existing SQL Knowledge:</tspan> PostgreSQL is already a familiar database
</text>
</g>
<g id="benefit2">
<circle cx="80" cy="300" r="5" fill="#4caf50"/>
<text x="95" y="305" font-family="Arial" font-size="12" fill="#1b5e20">
<tspan font-weight="bold">EF Core Integration:</tspan> Vector queries with LINQ (.OrderBy(), .Where())
</text>
</g>
<g id="benefit3">
<circle cx="80" cy="325" r="5" fill="#4caf50"/>
<text x="95" y="330" font-family="Arial" font-size="12" fill="#1b5e20">
<tspan font-weight="bold">Metadata JOIN:</tspan> Vector + Relational data in same query (tenant_id, user_id...)
</text>
</g>
<g id="benefit4">
<circle cx="80" cy="350" r="5" fill="#4caf50"/>
<text x="95" y="355" font-family="Arial" font-size="12" fill="#1b5e20">
<tspan font-weight="bold">ACID Compliant:</tspan> Transaction support (rollback, commit)
</text>
</g>
<!-- Code Example Box -->
<rect x="50" y="390" width="850" height="10" fill="none" stroke="none"/>
</svg>

After

Width:  |  Height:  |  Size: 4.8 KiB

118
docs/en/Community-Articles/2025-11-22-building-production-ready-llm-applications/images/rag-parent-child.svg

@ -0,0 +1,118 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 500">
<!-- Background -->
<rect width="1000" height="500" fill="#f8f9fa"/>
<!-- Title -->
<text x="500" y="30" font-family="Arial" font-size="20" font-weight="bold" text-anchor="middle" fill="#0066cc">
Parent-Child RAG Pattern: Search Small, Respond Large
</text>
<!-- Original Document -->
<rect x="50" y="60" width="180" height="200" fill="#e3f2fd" stroke="#1976d2" stroke-width="2" rx="5"/>
<text x="140" y="85" font-family="Arial" font-size="14" font-weight="bold" text-anchor="middle" fill="#0d47a1">Original Document</text>
<!-- Parent chunks -->
<rect x="60" y="100" width="160" height="50" fill="#90caf9" stroke="#1976d2" stroke-width="1" rx="3"/>
<text x="140" y="125" font-family="Arial" font-size="11" text-anchor="middle" fill="#0d47a1">Parent 1 (800 token)</text>
<rect x="60" y="160" width="160" height="50" fill="#90caf9" stroke="#1976d2" stroke-width="1" rx="3"/>
<text x="140" y="185" font-family="Arial" font-size="11" text-anchor="middle" fill="#0d47a1">Parent 2 (800 token)</text>
<rect x="60" y="220" width="160" height="30" fill="#90caf9" stroke="#1976d2" stroke-width="1" rx="3"/>
<text x="140" y="237" font-family="Arial" font-size="11" text-anchor="middle" fill="#0d47a1">Parent 3...</text>
<!-- Arrow to Child chunks -->
<defs>
<marker id="arrowBlue" markerWidth="10" markerHeight="10" refX="9" refY="3" orient="auto">
<polygon points="0 0, 10 3, 0 6" fill="#1976d2"/>
</marker>
<marker id="arrowGreen" markerWidth="10" markerHeight="10" refX="9" refY="3" orient="auto">
<polygon points="0 0, 10 3, 0 6" fill="#388e3c"/>
</marker>
<marker id="arrowRed" markerWidth="10" markerHeight="10" refX="9" refY="3" orient="auto">
<polygon points="0 0, 10 3, 0 6" fill="#d32f2f"/>
</marker>
</defs>
<line x1="230" y1="125" x2="300" y2="125" stroke="#1976d2" stroke-width="2" marker-end="url(#arrowBlue)"/>
<!-- Child Chunks (Vector DB) -->
<rect x="300" y="60" width="200" height="200" fill="#c8e6c9" stroke="#388e3c" stroke-width="2" rx="5"/>
<text x="400" y="85" font-family="Arial" font-size="14" font-weight="bold" text-anchor="middle" fill="#1b5e20">Child Chunks</text>
<text x="400" y="100" font-family="Arial" font-size="10" text-anchor="middle" fill="#1b5e20">(In Vector DB)</text>
<!-- Child chunk items -->
<g id="child1">
<rect x="310" y="110" width="180" height="25" fill="#a5d6a7" stroke="#66bb6a" stroke-width="1" rx="3"/>
<text x="400" y="126" font-family="Arial" font-size="10" text-anchor="middle" fill="#1b5e20">Child 1.1 (100 token) [ParentID=1]</text>
</g>
<g id="child2">
<rect x="310" y="140" width="180" height="25" fill="#a5d6a7" stroke="#66bb6a" stroke-width="1" rx="3"/>
<text x="400" y="156" font-family="Arial" font-size="10" text-anchor="middle" fill="#1b5e20">Child 1.2 (100 token) [ParentID=1]</text>
</g>
<g id="child3">
<rect x="310" y="170" width="180" height="25" fill="#a5d6a7" stroke="#66bb6a" stroke-width="1" rx="3"/>
<text x="400" y="186" font-family="Arial" font-size="10" text-anchor="middle" fill="#1b5e20">Child 1.3 (100 token) [ParentID=1]</text>
</g>
<g id="child4">
<rect x="310" y="200" width="180" height="25" fill="#a5d6a7" stroke="#66bb6a" stroke-width="1" rx="3"/>
<text x="400" y="216" font-family="Arial" font-size="10" text-anchor="middle" fill="#1b5e20">Child 2.1 (100 token) [ParentID=2]</text>
</g>
<g id="child5">
<rect x="310" y="230" width="180" height="20" fill="#a5d6a7" stroke="#66bb6a" stroke-width="1" rx="3"/>
<text x="400" y="243" font-family="Arial" font-size="10" text-anchor="middle" fill="#1b5e20">Child 2.2...</text>
</g>
<!-- User Query -->
<rect x="50" y="320" width="180" height="80" fill="#fff3cd" stroke="#ffc107" stroke-width="2" rx="5"/>
<text x="140" y="345" font-family="Arial" font-size="14" font-weight="bold" text-anchor="middle" fill="#856404">User Query</text>
<text x="140" y="365" font-family="Arial" font-size="11" text-anchor="middle" fill="#856404">"What was Contoso's</text>
<text x="140" y="380" font-family="Arial" font-size="11" text-anchor="middle" fill="#856404">2024 revenue?"</text>
<!-- Arrow to Vector Search -->
<line x1="230" y1="360" x2="300" y2="200" stroke="#388e3c" stroke-width="2" stroke-dasharray="5,5" marker-end="url(#arrowGreen)"/>
<text x="265" y="270" font-family="Arial" font-size="11" fill="#1b5e20">1. Vector Search</text>
<text x="265" y="285" font-family="Arial" font-size="11" fill="#1b5e20">(On Child chunks)</text>
<!-- Best Match -->
<rect x="520" y="150" width="180" height="60" fill="#ffccbc" stroke="#ff5722" stroke-width="2" rx="5"/>
<text x="610" y="175" font-family="Arial" font-size="12" font-weight="bold" text-anchor="middle" fill="#bf360c">Best Match</text>
<text x="610" y="195" font-family="Arial" font-size="10" text-anchor="middle" fill="#bf360c">Child 1.2 (Score: 0.95)</text>
<line x1="500" y1="152" x2="520" y2="180" stroke="#ff5722" stroke-width="2" marker-end="url(#arrowRed)"/>
<!-- Arrow to Parent Retrieval -->
<line x1="700" y1="180" x2="750" y2="180" stroke="#d32f2f" stroke-width="2" marker-end="url(#arrowRed)"/>
<text x="690" y="230" font-family="Arial" font-size="11" fill="#b71c1c">2. Fetch Parent via</text>
<text x="690" y="240" font-family="Arial" font-size="11" fill="#b71c1c">ParentID</text>
<!-- Retrieved Parent -->
<rect x="750" y="140" width="200" height="80" fill="#ffebee" stroke="#d32f2f" stroke-width="3" rx="5"/>
<text x="850" y="165" font-family="Arial" font-size="13" font-weight="bold" text-anchor="middle" fill="#b71c1c">Retrieved Parent Chunk</text>
<text x="850" y="185" font-family="Arial" font-size="10" text-anchor="middle" fill="#b71c1c">Parent 1 (800 tokens)</text>
<text x="850" y="200" font-family="Arial" font-size="10" text-anchor="middle" fill="#b71c1c">Full context + details</text>
<!-- Arrow to LLM -->
<line x1="850" y1="220" x2="850" y2="290" stroke="#0066cc" stroke-width="2" marker-end="url(#arrowBlue)"/>
<text x="880" y="255" font-family="Arial" font-size="11" fill="#0d47a1">3. Send to LLM</text>
<!-- LLM Response -->
<rect x="750" y="290" width="200" height="100" fill="#e3f2fd" stroke="#1976d2" stroke-width="3" rx="5"/>
<text x="850" y="320" font-family="Arial" font-size="14" font-weight="bold" text-anchor="middle" fill="#0d47a1">LLM Response</text>
<text x="850" y="340" font-family="Arial" font-size="10" text-anchor="middle" fill="#0d47a1">"Contoso's 2024</text>
<text x="850" y="355" font-family="Arial" font-size="10" text-anchor="middle" fill="#0d47a1">revenue was $2.5 billion</text>
<text x="850" y="370" font-family="Arial" font-size="10" text-anchor="middle" fill="#0d47a1">as reported."</text>
<!-- Benefit Box -->
<rect x="50" y="430" width="900" height="60" fill="#d1f2eb" stroke="#00695c" stroke-width="2" rx="5"/>
<text x="500" y="455" font-family="Arial" font-size="13" font-weight="bold" text-anchor="middle" fill="#004d40">
✅ Benefit: Precise search (Child) + Rich context (Parent) = Optimal quality
</text>
<text x="500" y="475" font-family="Arial" font-size="11" text-anchor="middle" fill="#004d40">
Alternative: Only large chunks → Lower precision | Only small chunks → Insufficient context
</text>
</svg>

After

Width:  |  Height:  |  Size: 7.2 KiB

60
docs/en/Community-Articles/2025-11-22-building-production-ready-llm-applications/images/reasoning-effort-diagram.svg

@ -0,0 +1,60 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 300">
<!-- Background -->
<rect width="800" height="300" fill="#f8f9fa"/>
<!-- Title -->
<text x="400" y="30" font-family="Arial" font-size="20" font-weight="bold" text-anchor="middle" fill="#0066cc">
ReasoningEffortLevel: Cost vs Quality
</text>
<!-- Axis -->
<line x1="50" y1="250" x2="750" y2="250" stroke="#333" stroke-width="2"/>
<line x1="50" y1="250" x2="50" y2="50" stroke="#333" stroke-width="2"/>
<!-- Y-axis labels -->
<text x="40" y="60" font-family="Arial" font-size="12" text-anchor="end" fill="#666">High</text>
<text x="40" y="155" font-family="Arial" font-size="12" text-anchor="end" fill="#666">Medium</text>
<text x="40" y="250" font-family="Arial" font-size="12" text-anchor="end" fill="#666">Low</text>
<!-- Y-axis title -->
<text x="20" y="150" font-family="Arial" font-size="14" font-weight="bold" text-anchor="middle" fill="#333" transform="rotate(-90 20 150)">
Quality / Cost
</text>
<!-- Effort levels -->
<g id="minimal">
<rect x="100" y="200" width="120" height="50" fill="#90caf9" stroke="#1976d2" stroke-width="2" rx="5"/>
<text x="160" y="225" font-family="Arial" font-size="14" font-weight="bold" text-anchor="middle" fill="#0d47a1">Minimal</text>
<text x="160" y="242" font-family="Arial" font-size="10" text-anchor="middle" fill="#0d47a1">Fast + Cheap</text>
</g>
<g id="low">
<rect x="250" y="170" width="120" height="80" fill="#81c784" stroke="#388e3c" stroke-width="2" rx="5"/>
<text x="310" y="205" font-family="Arial" font-size="14" font-weight="bold" text-anchor="middle" fill="#1b5e20">Low</text>
<text x="310" y="222" font-family="Arial" font-size="10" text-anchor="middle" fill="#1b5e20">Simple Queries</text>
</g>
<g id="medium">
<rect x="400" y="120" width="120" height="130" fill="#ffb74d" stroke="#f57c00" stroke-width="2" rx="5"/>
<text x="460" y="175" font-family="Arial" font-size="14" font-weight="bold" text-anchor="middle" fill="#e65100">Medium</text>
<text x="460" y="192" font-family="Arial" font-size="10" text-anchor="middle" fill="#e65100">Standard</text>
</g>
<g id="high">
<rect x="550" y="60" width="120" height="190" fill="#e57373" stroke="#d32f2f" stroke-width="2" rx="5"/>
<text x="610" y="145" font-family="Arial" font-size="14" font-weight="bold" text-anchor="middle" fill="#b71c1c">High</text>
<text x="610" y="162" font-family="Arial" font-size="10" text-anchor="middle" fill="#b71c1c">Complex</text>
<text x="610" y="179" font-family="Arial" font-size="10" text-anchor="middle" fill="#b71c1c">Coding</text>
</g>
<!-- Cost arrow -->
<defs>
<marker id="arrowhead" markerWidth="10" markerHeight="10" refX="9" refY="3" orient="auto">
<polygon points="0 0, 10 3, 0 6" fill="#d32f2f"/>
</marker>
</defs>
<line x1="150" y1="270" x2="650" y2="270" stroke="#d32f2f" stroke-width="2" marker-end="url(#arrowhead)"/>
<text x="400" y="290" font-family="Arial" font-size="12" font-style="italic" text-anchor="middle" fill="#d32f2f">
Increasing Cost (Reasoning Tokens ↑)
</text>
</svg>

After

Width:  |  Height:  |  Size: 3.1 KiB

149
docs/en/Community-Articles/2025-11-22-building-production-ready-llm-applications/images/svg-diagram-example.svg

@ -0,0 +1,149 @@
<svg viewBox="0 0 800 400" xmlns="http://www.w3.org/2000/svg">
<!-- Background -->
<rect width="800" height="400" fill="#f0f4f8"/>
<!-- Title -->
<text x="400" y="30" font-family="Arial, sans-serif" font-size="20" font-weight="bold" fill="#1e3a8a" text-anchor="middle">
PostgreSQL + pgvector Architecture
</text>
<!-- .NET Application -->
<g id="dotnet-app">
<rect x="50" y="80" width="140" height="240" rx="10" fill="#3b82f6" stroke="#1e40af" stroke-width="2"/>
<text x="120" y="110" font-family="Arial, sans-serif" font-size="16" font-weight="bold" fill="white" text-anchor="middle">
.NET Application
</text>
<!-- API Layer -->
<rect x="65" y="130" width="110" height="50" rx="5" fill="#60a5fa" stroke="#2563eb" stroke-width="1.5"/>
<text x="120" y="160" font-family="Arial, sans-serif" font-size="13" fill="white" text-anchor="middle">
Web API /
</text>
<text x="120" y="175" font-family="Arial, sans-serif" font-size="13" fill="white" text-anchor="middle">
Controllers
</text>
<!-- Business Logic -->
<rect x="65" y="190" width="110" height="50" rx="5" fill="#60a5fa" stroke="#2563eb" stroke-width="1.5"/>
<text x="120" y="215" font-family="Arial, sans-serif" font-size="13" fill="white" text-anchor="middle">
Business Logic /
</text>
<text x="120" y="230" font-family="Arial, sans-serif" font-size="13" fill="white" text-anchor="middle">
Services
</text>
<!-- Data Layer -->
<rect x="65" y="250" width="110" height="50" rx="5" fill="#60a5fa" stroke="#2563eb" stroke-width="1.5"/>
<text x="120" y="275" font-family="Arial, sans-serif" font-size="13" fill="white" text-anchor="middle">
Data Access
</text>
<text x="120" y="290" font-family="Arial, sans-serif" font-size="13" fill="white" text-anchor="middle">
Layer
</text>
</g>
<!-- Arrow 1: .NET to EF Core -->
<defs>
<marker id="arrowblue" markerWidth="10" markerHeight="10" refX="9" refY="3" orient="auto" markerUnits="strokeWidth">
<path d="M0,0 L0,6 L9,3 z" fill="#1e40af" />
</marker>
</defs>
<line x1="190" y1="200" x2="260" y2="200" stroke="#1e40af" stroke-width="3" marker-end="url(#arrowblue)"/>
<text x="225" y="190" font-family="Arial, sans-serif" font-size="11" fill="#1e3a8a" text-anchor="middle">ORM</text>
<!-- EF Core -->
<g id="ef-core">
<rect x="260" y="150" width="140" height="100" rx="10" fill="#2563eb" stroke="#1e40af" stroke-width="2"/>
<text x="330" y="180" font-family="Arial, sans-serif" font-size="16" font-weight="bold" fill="white" text-anchor="middle">
Entity Framework
</text>
<text x="330" y="200" font-family="Arial, sans-serif" font-size="16" font-weight="bold" fill="white" text-anchor="middle">
Core
</text>
<text x="330" y="225" font-family="Arial, sans-serif" font-size="12" fill="#bfdbfe" text-anchor="middle">
DbContext
</text>
<text x="330" y="240" font-family="Arial, sans-serif" font-size="12" fill="#bfdbfe" text-anchor="middle">
LINQ Queries
</text>
</g>
<!-- Arrow 2: EF Core to PostgreSQL -->
<line x1="400" y1="200" x2="470" y2="200" stroke="#1e40af" stroke-width="3" marker-end="url(#arrowblue)"/>
<text x="435" y="190" font-family="Arial, sans-serif" font-size="11" fill="#1e3a8a" text-anchor="middle">Npgsql</text>
<!-- PostgreSQL -->
<g id="postgresql">
<rect x="470" y="80" width="140" height="240" rx="10" fill="#1e40af" stroke="#1e3a8a" stroke-width="2"/>
<text x="540" y="110" font-family="Arial, sans-serif" font-size="16" font-weight="bold" fill="white" text-anchor="middle">
PostgreSQL
</text>
<!-- Tables -->
<rect x="485" y="130" width="110" height="50" rx="5" fill="#3b82f6" stroke="#2563eb" stroke-width="1.5"/>
<text x="540" y="155" font-family="Arial, sans-serif" font-size="13" fill="white" text-anchor="middle">
Relational Tables
</text>
<text x="540" y="170" font-family="Arial, sans-serif" font-size="11" fill="#bfdbfe" text-anchor="middle">
(Standard Data)
</text>
<!-- pgvector Extension -->
<rect x="485" y="190" width="110" height="50" rx="5" fill="#60a5fa" stroke="#3b82f6" stroke-width="1.5"/>
<text x="540" y="215" font-family="Arial, sans-serif" font-size="13" font-weight="bold" fill="white" text-anchor="middle">
pgvector
</text>
<text x="540" y="230" font-family="Arial, sans-serif" font-size="11" fill="white" text-anchor="middle">
Vector Storage
</text>
<!-- Vector Search -->
<rect x="485" y="250" width="110" height="50" rx="5" fill="#93c5fd" stroke="#60a5fa" stroke-width="1.5"/>
<text x="540" y="270" font-family="Arial, sans-serif" font-size="12" fill="#1e3a8a" text-anchor="middle">
Vector Search
</text>
<text x="540" y="285" font-family="Arial, sans-serif" font-size="11" fill="#1e40af" text-anchor="middle">
Similarity Queries
</text>
<text x="540" y="297" font-family="Arial, sans-serif" font-size="10" fill="#1e40af" text-anchor="middle">
(&lt;=&gt;, &lt;-&gt;, &lt;#&gt;)
</text>
</g>
<!-- Arrow 3: Vector Operations -->
<path d="M 540 240 L 540 250" stroke="#1e40af" stroke-width="2" marker-end="url(#arrowblue)"/>
<!-- Vector Search Results -->
<g id="results">
<rect x="640" y="160" width="130" height="80" rx="8" fill="#dbeafe" stroke="#3b82f6" stroke-width="2" stroke-dasharray="5,5"/>
<text x="705" y="185" font-family="Arial, sans-serif" font-size="13" font-weight="bold" fill="#1e40af" text-anchor="middle">
Search Results
</text>
<text x="705" y="205" font-family="Arial, sans-serif" font-size="11" fill="#1e40af" text-anchor="middle">
• Embeddings
</text>
<text x="705" y="220" font-family="Arial, sans-serif" font-size="11" fill="#1e40af" text-anchor="middle">
• Similarity Score
</text>
<text x="705" y="235" font-family="Arial, sans-serif" font-size="11" fill="#1e40af" text-anchor="middle">
• Ranked Results
</text>
</g>
<!-- Arrow to Results -->
<line x1="610" y1="200" x2="640" y2="200" stroke="#3b82f6" stroke-width="2" marker-end="url(#arrowblue)" stroke-dasharray="5,5"/>
<!-- Legend -->
<g id="legend">
<text x="50" y="360" font-family="Arial, sans-serif" font-size="12" font-weight="bold" fill="#1e3a8a">
Data Flow:
</text>
<text x="50" y="380" font-family="Arial, sans-serif" font-size="11" fill="#334155">
1. .NET → EF Core → PostgreSQL (Data Operations)
</text>
<text x="420" y="380" font-family="Arial, sans-serif" font-size="11" fill="#334155">
2. Vector Similarity Search with pgvector
</text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 6.6 KiB

414
docs/en/Community-Articles/2025-11-22-building-production-ready-llm-applications/post.md

@ -0,0 +1,414 @@
# Building Production-Ready LLM Applications with .NET: A Practical Guide
Large Language Models (LLMs) have evolved rapidly, and integrating them into production .NET applications requires staying current with the latest approaches. In this article, I'll share practical tips and patterns I've learned while building LLM-powered systems, covering everything from API changes in GPT-5 to implementing efficient RAG (Retrieval Augmented Generation) architectures.
Whether you're building a chatbot, a knowledge base assistant, or integrating AI into your enterprise applications, these production-tested insights will help you avoid common pitfalls and build more reliable systems.
## The Temperature Paradigm Shift: GPT-5 Changes Everything
If you've been working with GPT-4 or earlier models, you're familiar with the `temperature` and `top_p` parameters for controlling response randomness. **Here's the critical update**: GPT-5 no longer supports these parameters!
### The Old Way (GPT-4)
```csharp
var chatRequest = new ChatOptions
{
Temperature = 0.7, // ✅ Worked with GPT-4
TopP = 0.9 // ✅ Worked with GPT-4
};
```
### The New Way (GPT-5)
```csharp
var chatRequest = new ChatOptions
{
RawRepresentationFactory = (client => new ChatCompletionOptions()
{
#pragma warning disable OPENAI001
ReasoningEffortLevel = "minimal",
#pragma warning restore OPENAI001
})
};
```
**Why the change?** GPT-5 incorporates an internal reasoning and verification process. Instead of controlling randomness, you now specify how much computational effort the model should invest in reasoning through the problem.
![Reasoning Effort Levels](images/reasoning-effort-diagram.svg)
### Choosing the Right Reasoning Level
- **Low**: Quick responses for simple queries (e.g., "What's the capital of France?")
- **Medium**: Balanced approach for most use cases
- **High**: Complex reasoning tasks (e.g., code generation, multi-step problem solving)
> **Pro Tip**: Reasoning tokens are included in your API costs. Use "High" only when necessary to optimize your budget.
## System Prompts: The "Lost in the Middle" Problem
Here's a critical insight that can save you hours of debugging: **Important rules must be repeated at the END of your prompt!**
### ❌ What Doesn't Work
```
You are a helpful assistant.
RULE: Never share passwords or sensitive information.
[User Input]
```
### ✅ What Actually Works
```
You are a helpful assistant.
RULE: Never share passwords or sensitive information.
[User Input]
⚠️ REMINDER: Apply the rules above strictly, ESPECIALLY regarding passwords.
```
**Why?** LLMs suffer from the "Lost in the Middle" phenomenon—they pay more attention to the beginning and end of the context window. Critical instructions buried in the middle are often ignored.
## RAG Architecture: The Parent-Child Pattern
Retrieval Augmented Generation (RAG) is essential for grounding LLM responses in your own data. The most effective pattern I've found is the **Parent-Child approach**.
![RAG Parent-Child Architecture](images/rag-parent-child.svg)
### How It Works
1. **Split documents into hierarchies**:
- **Parent chunks**: Large sections (1000-2000 tokens) for context
- **Child chunks**: Small segments (200-500 tokens) for precise retrieval
2. **Store both in vector database** with references
3. **Query flow**:
- Search using child chunks (higher precision)
- Return parent chunks to LLM (richer context)
### The Overlap Strategy
Always use overlapping chunks to prevent information loss at boundaries!
```
Chunk 1: Token 0-500
Chunk 2: Token 400-900 ← 100 token overlap
Chunk 3: Token 800-1300 ← 100 token overlap
```
**Standard recommendation**: 10-20% overlap (for 500 tokens, use 50-100 token overlap)
### Implementation with Semantic Kernel
```csharp
using Microsoft.SemanticKernel.Text;
var chunks = TextChunker.SplitPlainTextParagraphs(
documentText,
maxTokensPerParagraph: 500,
overlapTokens: 50
);
foreach (var chunk in chunks)
{
var embedding = await embeddingService.GenerateEmbeddingAsync(chunk);
await vectorDb.StoreAsync(chunk, embedding);
}
```
## PostgreSQL + pgvector: The Pragmatic Choice
For .NET developers, choosing a vector database can be overwhelming. After evaluating multiple options, **PostgreSQL with pgvector** is the most practical choice for most scenarios.
![pgvector Integration](images/pgvector-integration.svg)
### Why pgvector?
✅ **Use existing SQL knowledge** - No new query language to learn
✅ **EF Core integration** - Works with your existing data access layer
✅ **JOIN with metadata** - Combine vector search with traditional queries
✅ **WHERE clause filtering** - Filter by tenant, user, date, etc.
✅ **ACID compliance** - Transaction support for data consistency
✅ **No separate infrastructure** - One database for everything
### Setting Up pgvector with EF Core
First, install the NuGet package:
```bash
dotnet add package Pgvector.EntityFrameworkCore
```
Define your entity:
```csharp
using Pgvector;
using Pgvector.EntityFrameworkCore;
public class DocumentChunk
{
public Guid Id { get; set; }
public string Content { get; set; }
public Vector Embedding { get; set; } // 👈 pgvector type
public Guid ParentChunkId { get; set; }
public DateTime CreatedAt { get; set; }
}
```
Configure in DbContext:
```csharp
protected override void OnModelCreating(ModelBuilder builder)
{
builder.HasPostgresExtension("vector");
builder.Entity<DocumentChunk>()
.Property(e => e.Embedding)
.HasColumnType("vector(1536)"); // 👈 OpenAI embedding dimension
builder.Entity<DocumentChunk>()
.HasIndex(e => e.Embedding)
.HasMethod("hnsw") // 👈 Fast approximate search
.HasOperators("vector_cosine_ops");
}
```
### Performing Vector Search
```csharp
using Pgvector.EntityFrameworkCore;
public async Task<List<DocumentChunk>> SearchAsync(string query)
{
// 1. Convert query to embedding
var queryVector = await _embeddingService.GetEmbeddingAsync(query);
// 2. Search
return await _context.DocumentChunks
.OrderBy(c => c.Embedding.L2Distance(queryVector)) // 👈 Lower is better
.Take(5)
.ToListAsync();
}
```
**Source**: [Pgvector.NET on GitHub](https://github.com/pgvector/pgvector-dotnet?tab=readme-ov-file#entity-framework-core)
## Smart Tool Usage: Make RAG a Tool, Not a Tax
A common mistake is calling RAG on every single user message. This wastes tokens and money. Instead, **make RAG a tool** and let the LLM decide when to use it.
### ❌ Expensive Approach
```csharp
// Always call RAG, even for "Hello"
var context = await PerformRAG(userMessage);
var response = await chatClient.CompleteAsync($"{context}\n\n{userMessage}");
```
### ✅ Smart Approach
```csharp
[KernelFunction]
[Description("Search the company knowledge base for information")]
public async Task<string> SearchKnowledgeBase(
[Description("The search query")] string query)
{
var results = await _vectorDb.SearchAsync(query);
return string.Join("\n---\n", results.Select(r => r.Content));
}
```
The LLM will call `SearchKnowledgeBase` only when needed:
- "Hello" → No tool call
- "What was our 2024 revenue?" → Calls tool
- "Tell me a joke" → No tool call
## Multilingual RAG: Query Translation Strategy
When your documents are in one language (e.g., English) but users query in another (e.g., Turkish), you need a translation strategy.
![Multilingual RAG Architecture](images/multilingual-rag.svg)
### Solution Options
**Option 1**: Use an LLM that automatically calls tools in English
- Many modern LLMs can do this if properly instructed
**Option 2**: Tool chain approach
```csharp
[KernelFunction]
[Description("Translate text to English")]
public async Task<string> TranslateToEnglish(string text)
{
// Translation logic
}
[KernelFunction]
[Description("Search knowledge base (English only)")]
public async Task<string> SearchKnowledgeBase(string englishQuery)
{
// Search logic
}
```
The LLM will:
1. Call `TranslateToEnglish("2024 geliri nedir?")`
2. Get "What was 2024 revenue?"
3. Call `SearchKnowledgeBase("What was 2024 revenue?")`
4. Return results and respond in Turkish
## Model Context Protocol (MCP): Beyond In-Process Tools
Microsoft and Anthropic recently released official C# SDKs for the Model Context Protocol (MCP). This is a game-changer for tool reusability.
![MCP Architecture](images/mcp-architecture.svg)
### MCP vs. Semantic Kernel Plugins
| Feature | SK Plugins | MCP Servers |
|---------|-----------|-------------|
| **Process** | In-process | Out-of-process (stdio/http) |
| **Reusability** | Application-specific | Cross-application |
| **Examples** | Used within your app | VS Code Copilot, Claude Desktop |
### Creating an MCP Server
```csharp
using Microsoft.Extensions.Hosting;
using ModelContextProtocol.Extensions.Hosting;
var builder = Host.CreateEmptyApplicationBuilder(settings: null);
builder.Services.AddMcpServer()
.WithStdioServerTransport()
.WithToolsFromAssembly();
await builder.Build().RunAsync();
```
Define your tools:
```csharp
[McpServerToolType]
public static class FileSystemTools
{
[McpServerTool, Description("Read a file from the file system")]
public static async Task<string> ReadFile(string path)
{
// ⚠️ SECURITY: Always validate paths!
if (!IsPathSafe(path))
throw new SecurityException("Invalid path");
return await File.ReadAllTextAsync(path);
}
private static bool IsPathSafe(string path)
{
// Implement path traversal prevention
var fullPath = Path.GetFullPath(path);
return fullPath.StartsWith(AllowedDirectory);
}
}
```
Your MCP server can now be used by VS Code Copilot, Claude Desktop, or any other MCP client!
## Chat History Management: Truncation + RAG Hybrid
For long conversations, storing all history in the context window becomes impractical. Here's the pattern that works:
![Chat History Hybrid Strategy](images/chat-history-hybrid.svg)
### ❌ Lossy Approach
```
First 50 messages → Summarize with LLM → Single summary message
```
**Problem**: Detail loss (fidelity loss)
### ✅ Hybrid Approach
1. **Recent messages** (last 5-10): Keep in prompt for immediate context
2. **Older messages**: Store in vector database as a tool
```csharp
[KernelFunction]
[Description("Search conversation history for past discussions")]
public async Task<string> SearchChatHistory(
[Description("What to search for")] string query)
{
var relevantMessages = await _vectorDb.SearchAsync(query);
return string.Join("\n", relevantMessages.Select(m =>
$"[{m.Timestamp}] {m.Role}: {m.Content}"));
}
```
The LLM retrieves only relevant past context when needed, avoiding summary-induced information loss.
## RAG vs. Fine-Tuning: Choose Wisely
A common misconception is using fine-tuning for knowledge injection. Here's when to use each:
| Purpose | RAG | Fine-Tuning |
|---------|-----|-------------|
| **Goal** | Memory (provide facts) | Behavior (teach style) |
| **Updates** | Dynamic (add docs anytime) | Static (requires retraining) |
| **Cost** | Low dev, higher inference | High dev, lower inference |
| **Hallucination** | Reduces | Doesn't reduce |
| **Use Case** | Company docs, FAQs | Brand voice, specific format |
**Common mistake**: "Let's fine-tune on our company documents" ❌
**Better approach**: Use RAG! ✅
Fine-tuning is for teaching the model *how* to respond, not *what* to know.
**Source**: [Oracle - RAG vs Fine-Tuning](https://www.oracle.com/artificial-intelligence/generative-ai/retrieval-augmented-generation-rag/rag-fine-tuning/)
## Bonus: Why SVG is Superior for LLM-Generated Images
When using LLMs to generate diagrams and visualizations, always request SVG format instead of PNG or JPG.
### Why SVG?
✅ **Text-based** → LLMs produce better results
✅ **Lower cost** → Fewer tokens than base64-encoded images
✅ **Editable** → Easy to modify after generation
✅ **Scalable** → Perfect quality at any size
✅ **Version control friendly** → Works great in Git
### Example Prompt
```
Create an architecture diagram showing PostgreSQL with pgvector integration.
Format: SVG, 800x400 pixels. Show: .NET Application → EF Core → PostgreSQL → Vector Search.
Use arrows to connect stages. Color scheme: Blue tones.
```
![SVG Diagram Example](images/svg-diagram-example.svg)
All diagrams in this article were generated as SVG, resulting in excellent quality and lower token costs!
> **Pro Tip**: If you don't need photographs or complex renders, always choose SVG.
## Architecture Roadmap: Putting It All Together
Here's the recommended stack for building production LLM applications with .NET:
1. **Orchestration**: Microsoft.Extensions.AI + Semantic Kernel (when needed)
2. **Vector Database**: PostgreSQL + Pgvector.EntityFrameworkCore
3. **RAG Pattern**: Parent-Child chunks with 10-20% overlap
4. **Tools**: MCP servers for reusability
5. **Reasoning**: ReasoningEffortLevel instead of temperature
6. **Prompting**: Critical rules at the end
7. **Cost Optimization**: Make RAG a tool, not automatic
## Key Takeaways
Let me summarize the most important production tips:
1. **Temperature is gone** → Use `ReasoningEffortLevel` with GPT-5
2. **Rules at the end** → Combat "Lost in the Middle"
3. **RAG as a tool** → Reduce costs significantly
4. **Parent-Child pattern** → Search small, respond with large
5. **Always use overlap** → 10-20% is the standard
6. **pgvector for most cases** → Unless you have billions of vectors
7. **MCP for reusability** → One codebase, works everywhere
8. **SVG for diagrams** → Better results, lower cost
9. **Hybrid chat history** → Recent in prompt, old in vector DB
10. **RAG > Fine-tuning** → For knowledge, not behavior
Happy coding! 🚀

1
docs/en/Community-Articles/2025-11-22-building-production-ready-llm-applications/summary.md

@ -0,0 +1 @@
Learn how to build production-ready LLM applications with .NET. This comprehensive guide covers GPT-5 API changes, advanced RAG architectures with parent-child patterns, PostgreSQL pgvector integration, smart tool usage strategies, multilingual query handling, Model Context Protocol (MCP) for cross-application tool reusability, and chat history management techniques for enterprise applications.

18
docs/en/docs-nav.json

@ -552,6 +552,24 @@
"text": "Audit Logging",
"path": "framework/infrastructure/audit-logging.md"
},
{
"text": "Artificial Intelligence",
"items":[
{
"text": "Overview",
"path": "framework/infrastructure/artificial-intelligence/index.md",
"isIndex": true
},
{
"text": "Microsoft.Extensions.AI",
"path": "framework/infrastructure/artificial-intelligence/microsoft-extensions-ai.md"
},
{
"text": "Semantic Kernel",
"path": "framework/infrastructure/artificial-intelligence/microsoft-semantic-kernel.md"
}
]
},
{
"text": "Background Jobs",
"items": [

24
docs/en/framework/ui/angular/modifying-the-menu.md

@ -44,7 +44,29 @@ export const appConfig: ApplicationConfig = {
Notes
- This approach works across themes. If you are using LeptonX, the brand logo component reads these values automatically; you don't need any theme-specific code.
- You can still override visuals with CSS variables if desired. See the LeptonX section for CSS overrides.
- You can still override visuals with CSS variables if desired. See the alternative approach below.
### Alternative: Using CSS Variables (LeptonX Theme)
If you're using the LeptonX theme, you can also configure the logo using CSS variables in your `styles.scss` file. This approach is specific to LeptonX and provides direct control over the logo styling.
Add the following to your `src/styles.scss`:
```scss
:root {
--lpx-logo: url('/assets/images/logo/logo-light.png');
--lpx-logo-icon: url('/assets/images/logo/logo-light-thumbnail.png');
}
```
**When to use each approach:**
| Approach | Use Case | Theme Support |
|----------|----------|-------------|
| **provideLogo** (recommended) | Cross-theme compatibility, environment-based configuration | All themes |
| **CSS Variables** | LeptonX-specific styling, fine-grained CSS control | LeptonX only |
**Recommendation:** Use the `provideLogo` approach for most cases as it's theme-independent and follows ABP's standard configuration pattern. Use CSS variables only when you need LeptonX-specific styling control or have existing CSS-based theme customizations.
## How to Add a Navigation Element

BIN
docs/en/images/abp-overall-diagram-1600.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 407 KiB

After

Width:  |  Height:  |  Size: 559 KiB

BIN
docs/en/images/db-options.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 25 KiB

BIN
docs/en/images/ui-options.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 41 KiB

4
docs/en/modules/ai-management/index.md

@ -75,7 +75,7 @@ The AI Management module includes a built-in chat interface for testing workspac
* Test streaming responses
* Verify workspace configuration before using in production
> Access the chat interface at: `/AIManagement/Chat`
> Access the chat interface at: `/AIManagement/Workspaces/{WorkspaceName}`
## Workspace Configuration
@ -628,4 +628,4 @@ The cache is automatically invalidated when workspaces are created, updated, or
- [Artificial Intelligence Infrastructure](../../framework/infrastructure/artificial-intelligence/index.md): Learn about the underlying AI workspace infrastructure
- [Microsoft.Extensions.AI](https://learn.microsoft.com/en-us/dotnet/ai/): Microsoft's unified AI abstractions
- [Semantic Kernel](https://learn.microsoft.com/en-us/semantic-kernel/): Microsoft's Semantic Kernel integration
- [Semantic Kernel](https://learn.microsoft.com/en-us/semantic-kernel/): Microsoft's Semantic Kernel integration

2
docs/en/tutorials/book-store-with-abp-suite/index.md

@ -46,4 +46,4 @@ This tutorial is organized as the following parts:
### Download the Source Code
After logging in to the ABP website, you can download the source code from [here](https://abp.io/api/download/samples/suite-bookstore-mvc-ef).
After logging in to the ABP website, you can download the source code from [here](https://abp.io/api/download/samples/bookstore-mvc-ef).

60
docs/en/tutorials/book-store/part-02.md

@ -315,7 +315,7 @@ This is a fully working, server side paged, sorted and localized table of books.
## Install NPM packages
> Notice: This tutorial is based on the ABP v3.1.0+ If your project version is older, then please upgrade your solution. Check the [migration guide](../../framework/ui/angular/migration-guide-v3.md) if you are upgrading an existing project with v2.x.
> Notice: This tutorial is based on the ABP v9.3.0+ If your project version is older, then please upgrade your solution. Check the [migration guide](../../framework/ui/angular/migration-guide-v3.md) if you are upgrading an existing project with v2.x.
If you haven't done it before, open a new command line interface (terminal window) and go to your `angular` folder and then run the `yarn` command to install the NPM packages:
@ -330,69 +330,42 @@ It's time to create something visible and usable! There are some tools that we w
- [Ng Bootstrap](https://ng-bootstrap.github.io/#/home) will be used as the UI component library.
- [Ngx-Datatable](https://swimlane.gitbook.io/ngx-datatable/) will be used as the datatable library.
Run the following command line to create a new module, named `BookModule` in the root folder of the angular application:
Run the following command line to create a new component, named `BookComponent` in the root folder of the angular application:
```bash
yarn ng generate module book --module app --routing --route books
yarn ng generate component book
```
This command should produce the following output:
````bash
> yarn ng generate module book --module app --routing --route books
yarn run v1.19.1
$ ng generate module book --module app --routing --route books
CREATE src/app/book/book-routing.module.ts (336 bytes)
CREATE src/app/book/book.module.ts (335 bytes)
CREATE src/app/book/book.component.html (19 bytes)
CREATE src/app/book/book.component.spec.ts (614 bytes)
CREATE src/app/book/book.component.ts (268 bytes)
> yarn ng generate component book
yarn run v1.22.22
$ ng generate component book
CREATE src/app/book/book.component.spec.ts (537 bytes)
CREATE src/app/book/book.component.ts (189 bytes)
CREATE src/app/book/book.component.scss (0 bytes)
UPDATE src/app/app-routing.module.ts (1289 bytes)
CREATE src/app/book/book.component.html (20 bytes)
Done in 3.88s.
````
### BookModule
Open the `/src/app/book/book.module.ts` and replace the content as shown below:
````js
import { NgModule } from '@angular/core';
import { SharedModule } from '../shared/shared.module';
import { BookRoutingModule } from './book-routing.module';
import { BookComponent } from './book.component';
@NgModule({
declarations: [BookComponent],
imports: [
BookRoutingModule,
SharedModule
]
})
export class BookModule { }
````
* Added the `SharedModule`. `SharedModule` exports some common modules needed to create user interfaces.
* `SharedModule` already exports the `CommonModule`, so we've removed the `CommonModule`.
### Routing
The generated code places the new route definition to the `src/app/app-routing.module.ts` file as shown below:
The generated code places the new route definition to the `src/app/app.routes.ts` file as shown below:
````js
const routes: Routes = [
export const routes: Routes = [
// other route definitions...
{ path: 'books', loadChildren: () => import('./book/book.module').then(m => m.BookModule) },
{ path : 'books', loadComponent: () => import('./book/book.component').then(c => c.BookComponent) },
];
````
Now, open the `src/app/route.provider.ts` file and replace the `configureRoutes` function declaration as shown below:
```js
function configureRoutes(routes: RoutesService) {
return () => {
function configureRoutes() {
const routes = inject(RoutesService);
routes.add([
{
path: '/',
@ -416,7 +389,6 @@ function configureRoutes(routes: RoutesService) {
},
]);
};
}
```
`RoutesService` is a service provided by the ABP to configure the main menu and the routes.
@ -497,7 +469,7 @@ Open the `/src/app/book/book.component.html` and replace the content as shown be
</div>
<div class="card-body">
<ngx-datatable [rows]="book.items" [count]="book.totalCount" [list]="list" default>
<ngx-datatable-column [name]="'::Name' | abpLocalization" prop="name"></ngx-datatable-column>
<ngx-datatable-column [name]="'::Name' | abpLocalization" prop="name" />
<ngx-datatable-column [name]="'::Type' | abpLocalization" prop="type">
<ng-template let-row="row" ngx-datatable-cell-template>
{%{{{ '::Enum:BookType.' + row.type | abpLocalization }}}%}

42
docs/en/tutorials/book-store/part-03.md

@ -742,8 +742,8 @@ export class BookComponent implements OnInit {
* Imported `FormGroup`, `FormBuilder` and `Validators` from `@angular/forms`.
* Added a `form: FormGroup` property.
* Added a `bookTypes` property as a list of `BookType` enum members. That will be used in form options.
* Injected with the `FormBuilder` inject function.. [FormBuilder](https://angular.io/api/forms/FormBuilder) provides convenient methods for generating form controls. It reduces the amount of boilerplate needed to build complex forms.
* Added a `buildForm` method to the end of the file and executed the `buildForm()` in the `createBook` method.
* Injected the `FormBuilder` with the inject function. [FormBuilder](https://angular.io/api/forms/FormBuilder) provides convenient methods for generating form controls. It reduces the amount of boilerplate that is needed to build complex forms.
* Added a `buildForm` method at the end of the file and executed the `buildForm()` in the `createBook` method.
* Added a `save` method.
Open `/src/app/book/book.component.html` and replace `<ng-template #abpBody> </ng-template>` with the following code part:
@ -765,7 +765,11 @@ Open `/src/app/book/book.component.html` and replace `<ng-template #abpBody> </n
<label for="book-type">Type</label><span> * </span>
<select class="form-control" id="book-type" formControlName="type">
<option [ngValue]="null">Select a book type</option>
<option [ngValue]="type.value" *ngFor="let type of bookTypes"> {%{{{ '::Enum:BookType.' + type.value | abpLocalization }}}%}</option>
@for (type of bookTypes; track type) {
<option [ngValue]="type.value">
{%{{{ '::Enum:BookType.' + type.value | abpLocalization }}}%}
</option>
}
</select>
</div>
@ -804,46 +808,24 @@ Also replace `<ng-template #abpFooter> </ng-template>` with the following code p
We've used [NgBootstrap datepicker](https://ng-bootstrap.github.io/#/components/datepicker/overview) in this component. So, we need to arrange the dependencies related to this component.
Open `/src/app/book/book.module.ts` and replace the content as below:
```js
import { NgModule } from '@angular/core';
import { SharedModule } from '../shared/shared.module';
import { BookRoutingModule } from './book-routing.module';
import { BookComponent } from './book.component';
import { NgbDatepickerModule } from '@ng-bootstrap/ng-bootstrap'; // add this line
@NgModule({
declarations: [BookComponent],
imports: [
BookRoutingModule,
SharedModule,
NgbDatepickerModule, // add this line
]
})
export class BookModule { }
```
* We imported `NgbDatepickerModule` to be able to use the date picker.
Open `/src/app/book/book.component.ts` and replace the content as below:
```js
import { ListService, PagedResultDto } from '@abp/ng.core';
import { Component, OnInit, inject } from '@angular/core';
import { BookService, BookDto, bookTypeOptions } from '@proxy/books';
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
// added this line
import { NgbDateNativeAdapter, NgbDateAdapter } from '@ng-bootstrap/ng-bootstrap';
import { FormGroup, FormBuilder, Validators, ReactiveFormsModule } from '@angular/forms';
import { NgbDateNativeAdapter, NgbDateAdapter, NgbDatepickerModule } from '@ng-bootstrap/ng-bootstrap';
import { ThemeSharedModule } from '@abp/ng.theme.shared';
@Component({
selector: 'app-book',
templateUrl: './book.component.html',
styleUrls: ['./book.component.scss'],
imports: [ThemeSharedModule, ReactiveFormsModule, NgbDatepickerModule],
providers: [
ListService,
{ provide: NgbDateAdapter, useClass: NgbDateNativeAdapter } // add this line
{ provide: NgbDateAdapter, useClass: NgbDateNativeAdapter }
],
})
export class BookComponent implements OnInit {

16
docs/en/tutorials/book-store/part-05.md

@ -311,23 +311,19 @@ We've only added the `.RequirePermissions(BookStorePermissions.Books.Default)` e
First step of the UI is to prevent unauthorized users to see the "Books" menu item and enter to the book management page.
Open the `/src/app/book/book-routing.module.ts` and replace with the following content:
Open the `/src/app/app.routes.ts` and replace with the following content:
````js
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { authGuard, permissionGuard } from '@abp/ng.core';
import { BookComponent } from './book.component';
const routes: Routes = [
{ path: '', component: BookComponent, canActivate: [authGuard, permissionGuard] },
{
path: 'books',
loadComponent: () => import('./book/book.component').then(c => BookComponent),
canActivate: [authGuard, permissionGuard],
},
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
export class BookRoutingModule {}
````
* Imported `authGuard` and `permissionGuard` from the `@abp/ng.core`.

36
docs/en/tutorials/book-store/part-09.md

@ -477,49 +477,43 @@ That's all! You can run the application and try to edit an author.
## The Author Management Page
Run the following command line to create a new module, named `AuthorModule` in the root folder of the angular application:
Run the following command line to create a new component, named `AuthorComponent` in the root folder of the angular application:
```bash
yarn ng generate module author --module app --routing --route authors
yarn ng generate component author
```
This command should produce the following output:
```bash
> yarn ng generate module author --module app --routing --route authors
> yarn ng generate component author
yarn run v1.19.1
$ ng generate module author --module app --routing --route authors
CREATE src/app/author/author-routing.module.ts (344 bytes)
CREATE src/app/author/author.module.ts (349 bytes)
$ yarn ng generate component author
CREATE src/app/author/author.component.html (21 bytes)
CREATE src/app/author/author.component.spec.ts (628 bytes)
CREATE src/app/author/author.component.ts (276 bytes)
CREATE src/app/author/author.component.scss (0 bytes)
UPDATE src/app/app-routing.module.ts (1396 bytes)
Done in 2.22s.
```
### AuthorModule
### Author Component
Open the `/src/app/author/author.module.ts` and replace the content as shown below:
Open the `/src/app/author/author.component.ts` and replace the content as shown below:
```js
import { NgModule } from '@angular/core';
import { SharedModule } from '../shared/shared.module';
import { AuthorRoutingModule } from './author-routing.module';
import { AuthorComponent } from './author.component';
import { Component } from '@angular/core';
import { NgbDatepickerModule } from '@ng-bootstrap/ng-bootstrap';
@NgModule({
declarations: [AuthorComponent],
imports: [SharedModule, AuthorRoutingModule, NgbDatepickerModule],
@Component({
selector: 'app-author',
templateUrl: './author.component.html',
styleUrls: ['./author.component.scss'],
imports: [NgbDatepickerModule],
})
export class AuthorModule {}
export class AuthorComponent {}
```
- Added the `SharedModule`. `SharedModule` exports some common modules needed to create user interfaces.
- `SharedModule` already exports the `CommonModule`, so we've removed the `CommonModule`.
- Added `NgbDatepickerModule` that will be used later on the author create and edit forms.
### Menu Definition
@ -753,13 +747,13 @@ Open the `/src/app/author/author.component.html` and replace the content as belo
</div>
</ng-template>
</ngx-datatable-column>
<ngx-datatable-column [name]="'::Name' | abpLocalization" prop="name"></ngx-datatable-column>
<ngx-datatable-column [name]="'::Name' | abpLocalization" prop="name" />
<ngx-datatable-column [name]="'::BirthDate' | abpLocalization">
<ng-template let-row="row" ngx-datatable-cell-template>
{%{{{ row.birthDate | date }}}%}
</ng-template>
</ngx-datatable-column>
<ngx-datatable-column [name]="'::ShortBio' | abpLocalization" prop="shortBio"></ngx-datatable-column>
<ngx-datatable-column [name]="'::ShortBio' | abpLocalization" prop="shortBio" />
</ngx-datatable>
</div>
</div>

10
docs/en/tutorials/book-store/part-10.md

@ -970,7 +970,7 @@ Book list page change is trivial. Open the `/src/app/book/book.component.html` a
[name]="'::Author' | abpLocalization"
prop="authorName"
[sortable]="false"
></ngx-datatable-column>
/>
````
When you run the application, you can see the *Author* column on the table:
@ -1098,9 +1098,11 @@ Open the `/src/app/book/book.component.html` and add the following form group ju
<label for="author-id">Author</label><span> * </span>
<select class="form-control" id="author-id" formControlName="authorId">
<option [ngValue]="null">Select author</option>
<option [ngValue]="author.id" *ngFor="let author of authors$ | async">
{%{{{ author.name }}}%}
</option>
@for (author of authors$ | async; track author) {
<option [ngValue]="author.id">
{%{{{ author.name }}}%}
</option>
}
</select>
</div>
````

2
docs/en/tutorials/microservice/index.md

@ -45,7 +45,7 @@ This tutorial is organized as the following parts:
## Download the Source Code
After logging in to the ABP website, you can download the source code from {{if UI == "MVC"}} [here](https://abp.io/api/download/samples/cloud-crm-mvc-ef) {{else if UI == "NG"}} [here](https://abp.io/api/download/samples/cloud-crm-ng-ef) {{else if UI == "Blazor"}} [here](https://abp.io/api/download/samples/cloud-crm-blazor-wasm-ef) {{else if UI == "BlazorServer"}} [here](https://abp.io/api/download/samples/cloud-crm-blazor-server-ef) {{else if UI == "BlazorWebApp"}} [here](https://abp.io/api/download/samples/cloud-crm-blazor-webapp-ef) {{end}}.
After logging in to the ABP website, you can download the source code from {{if UI == "MVC"}} [here](https://abp.io/api/download/samples/cloud-crm-mvc-ef) {{else if UI == "NG"}} [here](https://abp.io/api/download/samples/cloud-crm-angular-ef) {{else if UI == "Blazor"}} [here](https://abp.io/api/download/samples/cloud-crm-blazor-wasm-ef) {{else if UI == "BlazorServer"}} [here](https://abp.io/api/download/samples/cloud-crm-blazor-server-ef) {{else if UI == "BlazorWebApp"}} [here](https://abp.io/api/download/samples/cloud-crm-blazor-webapp-ef) {{end}}.
## See Also

29
docs/en/tutorials/microservice/part-05.md

@ -628,7 +628,7 @@ export const APP_ROUTES: Routes = [
// ...
{
path: 'order-service',
children: ORDER_SERVICE_ROUTES,
loadChildren: () => import('ordering-service').then(c =>c.ORDER_SERVICE_ROUTES),
},
];
```
@ -636,12 +636,8 @@ export const APP_ROUTES: Routes = [
```typescript
// order-service.routes.ts
export const ORDER_SERVICE_ROUTES: Routes = [
{
path: '',
pathMatch: 'full',
component: RouterOutletComponent,
},
{ path: 'orders', children: ORDER_ROUTES },
{ path: 'orders', loadComponent: () => import('./order/order.component').then(c => c.OrderComponent) },
{ path: '**', redirectTo: 'orders' }
];
```
@ -657,17 +653,16 @@ import { OrderDto, OrderService } from './proxy/ordering-service/services';
@Component({
selector: 'lib-order',
templateUrl: './order.component.html',
styleUrl: './order.component.css'
styleUrl: './order.component.css',
imports: [CommonModule]
})
export class OrderComponent {
items: OrderDto[] = [];
private readonly proxy = inject(OrderService);
private readonly orderService = inject(OrderService);
constructor() {
this.proxy.getList().subscribe((res) => {
this.orderService.getList().subscribe((res) => {
this.items = res;
});
}
@ -686,11 +681,13 @@ export class OrderComponent {
<th>Product Id</th>
<th>Customer Name</th>
</tr>
<tr *ngFor="let item of items">
<td>{%{{{item.id}}}%}</td>
<td>{%{{{item.productId}}}%}</td>
<td>{%{{{item.customerName}}}%}</td>
</tr>
@for (item of items; track item.id) {
<tr>
<td>{%{{{item.id}}}%}</td>
<td>{%{{{item.productId}}}%}</td>
<td>{%{{{item.customerName}}}%}</td>
</tr>
}
</thead>
</table>
</div>

12
docs/en/tutorials/microservice/part-06.md

@ -314,11 +314,13 @@ Open the `order.component.html` file (the `order.component.html` file under the
<th>Product Name</th>
<th>Customer Name</th>
</tr>
<tr *ngFor="let item of items">
<td>{%{{{item.id}}}%}</td>
<td>{%{{{item.productName}}}%}</td>
<td>{%{{{item.customerName}}}%}</td>
</tr>
@for (item of items; track item.id) {
<tr>
<td>{%{{{item.id}}}%}</td>
<td>{%{{{item.productName}}}%}</td>
<td>{%{{{item.customerName}}}%}</td>
</tr>
}
</thead>
</table>
</div>

8
docs/en/tutorials/todo/layered/index.md

@ -139,7 +139,7 @@ Ensure the `TodoApp.HttpApi.Host` project is the startup project, then run the a
![todo-swagger-ui-initial](../images/todo-swagger-ui-initial.png)
You can explore and test your HTTP API with this UI. Now, we can set the `TodoApp.Blazor` as the startup project and run it to open the actual Blazor application UI:
You can explore and test your HTTP API with this UI. Now, we can set the {{if UI=="Blazor"}}`TodoApp.Blazor`{{else if UI=="MAUIBlazor"}}`TodoApp.MauiBlazor`{{end}} as the startup project and run it to open the actual Blazor application UI:
{{else if UI=="NG"}}
@ -577,7 +577,11 @@ If you open the [Swagger UI](https://swagger.io/tools/swagger-ui/) by entering t
### Index.razor.cs
Open the `Index.razor.cs` file in the `Pages` folder of the {{if UI=="Blazor" || UI=="BlazorWebApp"}} *TodoApp.Blazor.Client* {{else if UI=="BlazorServer"}} *TodoApp.Blazor* {{else if UI=="MAUIBlazor"}} *TodoApp.MauiBlazor* {{end}} project and replace the content with the following code block:
Open the `Index.razor.cs` file in the `Pages` folder of the {{if UI=="Blazor" || UI=="BlazorWebApp"}} `TodoApp.Blazor.Client` {{else if UI=="BlazorServer"}} `TodoApp.Blazor` {{else if UI=="MAUIBlazor"}} `TodoApp.MauiBlazor` {{end}} project and replace the content with the following code block:
{{if UI=="MAUIBlazor"}}
_(Create this file if it doesn't exist)_
{{end}}
```csharp
using Microsoft.AspNetCore.Components;

10
docs/en/tutorials/todo/single-layer/index.md

@ -567,7 +567,7 @@ If you open [Swagger UI](https://swagger.io/tools/swagger-ui/) by entering the `
### Index.razor.cs
Open the `Index.razor.cs` file in the `Pages` folder{{if UI=="Blazor"}} in your `Todo.Blazor` project{{end}} and replace the content with the following code block:
Open the `Index.razor.cs` file in the {{if UI=="BlazorServer"}}`Components/Pages` {{else}} `Pages` {{end}} folder{{if UI=="Blazor"}} in your `Todo.Blazor` project{{end}} and replace the content with the following code block:
```csharp
{{if UI=="Blazor"}}
@ -580,7 +580,11 @@ using TodoApp.Services;
using TodoApp.Services.Dtos;
{{end}}
{{if UI=="Blazor"}}
namespace TodoApp.Pages;
{{else}}
namespace TodoApp.Components.Pages;
{{end}}
public partial class Index
{
@ -615,7 +619,7 @@ This class uses the {{if UI=="Blazor"}}`ITodoAppService`{{else}}`TodoAppService`
### Index.razor
Open the `Index.razor` file in the `Pages` folder and replace the content with the following code block:
Open the `Index.razor` file in the {{if UI=="BlazorServer"}}`Components/Pages`{{else}}`Pages`{{end}} folder and replace the content with the following code block:
```xml
@page "/"
@ -658,7 +662,7 @@ Open the `Index.razor` file in the `Pages` folder and replace the content with t
### Index.razor.css
As the final touch, open the `Index.razor.css` file in the `Pages` folder and add the following code block at the end of the file:
As the final touch, open the `Index.razor.css` file in the {{if UI=="BlazorServer"}}`Components/Pages`{{else}}`Pages`{{end}} folder and add the following code block at the end of the file:
````css
#TodoList{

3
framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/ApplicationPartSorter.cs

@ -15,7 +15,8 @@ public static class ApplicationPartSorter
{
var orderedModuleAssemblies = moduleContainer.Modules
.Select((moduleDescriptor, index) => new { moduleDescriptor.Assembly, index })
.ToDictionary(x => x.Assembly, x => x.index);
.GroupBy(x => x.Assembly)
.ToDictionary(g => g.Key, g => g.First().index);
var modulesAssemblies = moduleContainer.Modules.Select(x => x.Assembly).ToList();
var sortedTypes = partManager.ApplicationParts

31
framework/src/Volo.Abp.Authorization/Volo/Abp/Authorization/Permissions/PermissionChecker.cs

@ -48,7 +48,7 @@ public class PermissionChecker : IPermissionChecker, ITransientDependency
{
return false;
}
if (!permission.IsEnabled)
{
return false;
@ -92,12 +92,12 @@ public class PermissionChecker : IPermissionChecker, ITransientDependency
return isGranted;
}
public async Task<MultiplePermissionGrantResult> IsGrantedAsync(string[] names)
public virtual async Task<MultiplePermissionGrantResult> IsGrantedAsync(string[] names)
{
return await IsGrantedAsync(PrincipalAccessor.Principal, names);
}
public async Task<MultiplePermissionGrantResult> IsGrantedAsync(ClaimsPrincipal? claimsPrincipal, string[] names)
public virtual async Task<MultiplePermissionGrantResult> IsGrantedAsync(ClaimsPrincipal? claimsPrincipal, string[] names)
{
Check.NotNull(names, nameof(names));
@ -146,16 +146,27 @@ public class PermissionChecker : IPermissionChecker, ITransientDependency
claimsPrincipal);
var multipleResult = await provider.CheckAsync(context);
foreach (var grantResult in multipleResult.Result.Where(grantResult =>
result.Result.ContainsKey(grantResult.Key) &&
result.Result[grantResult.Key] == PermissionGrantResult.Undefined &&
grantResult.Value != PermissionGrantResult.Undefined))
foreach (var grantResult in multipleResult.Result.Where(x => result.Result.ContainsKey(x.Key)))
{
result.Result[grantResult.Key] = grantResult.Value;
permissionDefinitions.RemoveAll(x => x.Name == grantResult.Key);
switch (grantResult.Value)
{
case PermissionGrantResult.Granted:
{
if (result.Result[grantResult.Key] != PermissionGrantResult.Prohibited)
{
result.Result[grantResult.Key] = PermissionGrantResult.Granted;
}
break;
}
case PermissionGrantResult.Prohibited:
result.Result[grantResult.Key] = PermissionGrantResult.Prohibited;
permissionDefinitions.RemoveAll(x => x.Name == grantResult.Key);
break;
}
}
if (result.AllGranted || result.AllProhibited)
if (result.AllProhibited)
{
break;
}

2
framework/src/Volo.Abp.EntityFrameworkCore.PostgreSql/Volo.Abp.EntityFrameworkCore.PostgreSql.csproj

@ -22,8 +22,6 @@
<ItemGroup>
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" />
<PackageReference Include="Microsoft.EntityFrameworkCore" VersionOverride="10.0.0-rc.2.25502.107" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" VersionOverride="10.0.0-rc.2.25502.107" />
</ItemGroup>
</Project>

7
framework/src/Volo.Abp.ExceptionHandling/Volo/Abp/AspNetCore/ExceptionHandling/DefaultExceptionToErrorInfoConverter.cs

@ -21,17 +21,20 @@ namespace Volo.Abp.AspNetCore.ExceptionHandling;
public class DefaultExceptionToErrorInfoConverter : IExceptionToErrorInfoConverter, ITransientDependency
{
protected AbpExceptionHandlingOptions ExceptionHandlingOptions { get; }
protected AbpExceptionLocalizationOptions LocalizationOptions { get; }
protected IStringLocalizerFactory StringLocalizerFactory { get; }
protected IStringLocalizer<AbpExceptionHandlingResource> L { get; }
protected IServiceProvider ServiceProvider { get; }
public DefaultExceptionToErrorInfoConverter(
IOptions<AbpExceptionHandlingOptions> exceptionHandlingOptions,
IOptions<AbpExceptionLocalizationOptions> localizationOptions,
IStringLocalizerFactory stringLocalizerFactory,
IStringLocalizer<AbpExceptionHandlingResource> stringLocalizer,
IServiceProvider serviceProvider)
{
ExceptionHandlingOptions = exceptionHandlingOptions.Value;
ServiceProvider = serviceProvider;
StringLocalizerFactory = stringLocalizerFactory;
L = stringLocalizer;
@ -327,8 +330,8 @@ public class DefaultExceptionToErrorInfoConverter : IExceptionToErrorInfoConvert
{
return new AbpExceptionHandlingOptions
{
SendExceptionsDetailsToClients = false,
SendStackTraceToClients = true
SendExceptionsDetailsToClients = ExceptionHandlingOptions.SendExceptionsDetailsToClients,
SendStackTraceToClients = ExceptionHandlingOptions.SendStackTraceToClients
};
}
}

13
framework/test/Volo.Abp.AspNetCore.Mvc.Tests/Volo/Abp/AspNetCore/Mvc/ApplicationPart/ApplicationPartSorter_Tests.cs

@ -26,6 +26,13 @@ public class ApplicationPartSorter_Tests
partManager.ApplicationParts.Add(new AssemblyPart(assembly));
moduleDescriptors.Add(CreateModuleDescriptor(assembly));
}
var dumplicateAssembly = AssemblyBuilder.DefineDynamicAssembly(new AssemblyName($"ModuleB.dll"), AssemblyBuilderAccess.Run);
partManager.ApplicationParts.Add(new AssemblyPart(dumplicateAssembly));
partManager.ApplicationParts.Add(new AssemblyPart(dumplicateAssembly));
moduleDescriptors.Add(CreateModuleDescriptor(dumplicateAssembly));
moduleDescriptors.Add(CreateModuleDescriptor(dumplicateAssembly));
var randomApplicationParts = partManager.ApplicationParts.OrderBy(x => Guid.NewGuid()).ToList(); // Shuffle the parts
// Additional part
@ -44,7 +51,7 @@ public class ApplicationPartSorter_Tests
ApplicationPartSorter.Sort(partManager, moduleContainer);
// Act
partManager.ApplicationParts.Count.ShouldBe(13); // 10 modules + 3 additional parts
partManager.ApplicationParts.Count.ShouldBe(15); // 10 modules + 3 additional parts + 2 duplicate parts
var applicationParts = partManager.ApplicationParts.Reverse().ToList(); // Reverse the order to match the expected output
@ -60,7 +67,9 @@ public class ApplicationPartSorter_Tests
applicationParts[9].ShouldBeOfType<AssemblyPart>().Assembly.GetName().Name.ShouldStartWith("ModuleA7");
applicationParts[10].ShouldBeOfType<AssemblyPart>().Assembly.GetName().Name.ShouldStartWith("ModuleA8");
applicationParts[11].ShouldBeOfType<AssemblyPart>().Assembly.GetName().Name.ShouldStartWith("ModuleA9");
applicationParts[12].ShouldBeOfType<CompiledRazorAssemblyPart>().Assembly.ShouldBe(typeof(AbpVirtualFileSystemModule).Assembly);
applicationParts[12].ShouldBeOfType<AssemblyPart>().Assembly.GetName().Name.ShouldStartWith("ModuleB");
applicationParts[13].ShouldBeOfType<AssemblyPart>().Assembly.GetName().Name.ShouldStartWith("ModuleB");
applicationParts[14].ShouldBeOfType<CompiledRazorAssemblyPart>().Assembly.ShouldBe(typeof(AbpVirtualFileSystemModule).Assembly);
}
private static IModuleContainer CreateFakeModuleContainer(List<IAbpModuleDescriptor> moduleDescriptors)

2
framework/test/Volo.Abp.Authorization.Tests/Volo/Abp/Authorization/AbpAuthorizationTestModule.cs

@ -32,6 +32,8 @@ public class AbpAuthorizationTestModule : AbpModule
{
options.ValueProviders.Add<TestPermissionValueProvider1>();
options.ValueProviders.Add<TestPermissionValueProvider2>();
options.ValueProviders.Add<TestProhibitedPermissionValueProvider1>();
options.ValueProviders.Add<TestProhibitedPermissionValueProvider2>();
options.ResourceValueProviders.Add<TestResourcePermissionValueProvider1>();
options.ResourceValueProviders.Add<TestResourcePermissionValueProvider2>();

27
framework/test/Volo.Abp.Authorization.Tests/Volo/Abp/Authorization/PermissionChecker_Tests.cs

@ -8,7 +8,7 @@ namespace Volo.Abp.Authorization;
public class PermissionChecker_Tests: AuthorizationTestBase
{
private readonly IPermissionChecker _permissionChecker;
public PermissionChecker_Tests()
{
_permissionChecker = GetRequiredService<IPermissionChecker>();
@ -21,6 +21,13 @@ public class PermissionChecker_Tests: AuthorizationTestBase
(await _permissionChecker.IsGrantedAsync("UndefinedPermission")).ShouldBe(false);
}
[Fact]
public async Task IsGranted_ProhibitedAsync()
{
(await _permissionChecker.IsGrantedAsync("MyPermission8")).ShouldBe(false);
(await _permissionChecker.IsGrantedAsync("MyPermission9")).ShouldBe(false);
}
[Fact]
public async Task IsGranted_Multiple_Result_Async()
{
@ -35,7 +42,7 @@ public class PermissionChecker_Tests: AuthorizationTestBase
"MyPermission6",
"MyPermission7"
});
result.Result["MyPermission1"].ShouldBe(PermissionGrantResult.Undefined);
result.Result["MyPermission2"].ShouldBe(PermissionGrantResult.Prohibited);
result.Result["UndefinedPermission"].ShouldBe(PermissionGrantResult.Prohibited);
@ -44,6 +51,18 @@ public class PermissionChecker_Tests: AuthorizationTestBase
result.Result["MyPermission5"].ShouldBe(PermissionGrantResult.Granted);
result.Result["MyPermission6"].ShouldBe(PermissionGrantResult.Granted);
result.Result["MyPermission7"].ShouldBe(PermissionGrantResult.Granted);
}
}
[Fact]
public async Task IsGranted_Multiple_Result_ProhibitedAsync()
{
var result = await _permissionChecker.IsGrantedAsync(new []
{
"MyPermission8",
"MyPermission9"
});
result.Result["MyPermission8"].ShouldBe(PermissionGrantResult.Prohibited);
result.Result["MyPermission9"].ShouldBe(PermissionGrantResult.Prohibited);
}
}

6
framework/test/Volo.Abp.Authorization.Tests/Volo/Abp/Authorization/TestServices/AuthorizationTestPermissionDefinitionProvider.cs

@ -16,11 +16,11 @@ public class AuthorizationTestPermissionDefinitionProvider : PermissionDefinitio
var group = context.AddGroup("TestGroup");
group[PermissionDefinitionContext.KnownPropertyNames.CurrentProviderName].ShouldBe(typeof(AuthorizationTestPermissionDefinitionProvider).FullName);
var permission1 = group.AddPermission("MyAuthorizedService1");
permission1[PermissionDefinitionContext.KnownPropertyNames.CurrentProviderName].ShouldBe(typeof(AuthorizationTestPermissionDefinitionProvider).FullName);
group.AddPermission("MyPermission1").StateCheckers.Add(new TestRequireEditionPermissionSimpleStateChecker());
group.AddPermission("MyPermission2");
group.AddPermission("MyPermission3");
@ -28,6 +28,8 @@ public class AuthorizationTestPermissionDefinitionProvider : PermissionDefinitio
group.AddPermission("MyPermission5");
group.AddPermission("MyPermission6").WithProviders(nameof(TestPermissionValueProvider1));
group.AddPermission("MyPermission7").WithProviders(nameof(TestPermissionValueProvider2));
group.AddPermission("MyPermission8");
group.AddPermission("MyPermission9");
group.GetPermissionOrNull("MyAuthorizedService1").ShouldNotBeNull();

38
framework/test/Volo.Abp.Authorization.Tests/Volo/Abp/Authorization/TestServices/TestProhibitedPermissionValueProvider1.cs

@ -0,0 +1,38 @@
using System.Linq;
using System.Threading.Tasks;
using Volo.Abp.Authorization.Permissions;
namespace Volo.Abp.Authorization.TestServices;
public class TestProhibitedPermissionValueProvider1 : PermissionValueProvider
{
public TestProhibitedPermissionValueProvider1(IPermissionStore permissionStore) : base(permissionStore)
{
}
public override string Name => "TestProhibitedPermissionValueProvider1";
public override Task<PermissionGrantResult> CheckAsync(PermissionValueCheckContext context)
{
var result = PermissionGrantResult.Undefined;
if (context.Permission.Name == "MyPermission8" || context.Permission.Name == "MyPermission9")
{
result = PermissionGrantResult.Granted;
}
return Task.FromResult(result);
}
public override Task<MultiplePermissionGrantResult> CheckAsync(PermissionValuesCheckContext context)
{
var result = new MultiplePermissionGrantResult();
foreach (var name in context.Permissions.Select(x => x.Name))
{
result.Result.Add(name, name == "MyPermission8" || name == "MyPermission9"
? PermissionGrantResult.Granted
: PermissionGrantResult.Undefined);
}
return Task.FromResult(result);
}
}

38
framework/test/Volo.Abp.Authorization.Tests/Volo/Abp/Authorization/TestServices/TestProhibitedPermissionValueProvider2.cs

@ -0,0 +1,38 @@
using System.Linq;
using System.Threading.Tasks;
using Volo.Abp.Authorization.Permissions;
namespace Volo.Abp.Authorization.TestServices;
public class TestProhibitedPermissionValueProvider2 : PermissionValueProvider
{
public TestProhibitedPermissionValueProvider2(IPermissionStore permissionStore) : base(permissionStore)
{
}
public override string Name => "TestProhibitedPermissionValueProvider2";
public override Task<PermissionGrantResult> CheckAsync(PermissionValueCheckContext context)
{
var result = PermissionGrantResult.Undefined;
if (context.Permission.Name == "MyPermission8" || context.Permission.Name == "MyPermission9")
{
result = PermissionGrantResult.Prohibited;
}
return Task.FromResult(result);
}
public override Task<MultiplePermissionGrantResult> CheckAsync(PermissionValuesCheckContext context)
{
var result = new MultiplePermissionGrantResult();
foreach (var name in context.Permissions.Select(x => x.Name))
{
result.Result.Add(name, name == "MyPermission8" || name == "MyPermission9"
? PermissionGrantResult.Prohibited
: PermissionGrantResult.Undefined);
}
return Task.FromResult(result);
}
}

9
latest-versions.json

@ -1,4 +1,13 @@
[
{
"version": "10.0.0",
"releaseDate": "",
"type": "stable",
"message": "",
"leptonx": {
"version": "5.0.0"
}
},
{
"version": "9.3.6",
"releaseDate": "",

2
modules/cms-kit/src/Volo.CmsKit.Domain.Shared/Volo/CmsKit/Localization/Resources/en.json

@ -3,6 +3,7 @@
"texts": {
"AddSubMenuItem": "Add Sub Menu Item",
"AreYouSure": "Are You Sure?",
"AverageRating": "Average Rating",
"BlogDeletionConfirmationMessage": "The blog '{0}' will be deleted. Are you sure?",
"BlogFeatureNotAvailable": "This feature is not available now. Enable with 'GlobalFeatureManager' to use it.",
"BlogId": "Blog",
@ -168,6 +169,7 @@
"Text": "Text",
"ThankYou": "Thank you",
"Title": "Title",
"TotalRatings": "Total Ratings",
"Undo": "Undo",
"Update": "Update",
"UpdatePreferenceSuccessMessage": "Your preferences have been saved.",

17
modules/cms-kit/src/Volo.CmsKit.Domain/Volo/CmsKit/Menus/PageChangedHandler.cs

@ -4,6 +4,10 @@ using System.Threading.Tasks;
using Volo.Abp.DependencyInjection;
using Volo.Abp.Domain.Entities.Events;
using Volo.Abp.EventBus;
using Volo.Abp.Features;
using Volo.Abp.GlobalFeatures;
using Volo.CmsKit.Features;
using Volo.CmsKit.GlobalFeatures;
using Volo.CmsKit.Pages;
namespace Volo.CmsKit.Menus;
@ -12,19 +16,32 @@ public class PageChangedHandler :
ILocalEventHandler<EntityUpdatedEventData<Page>>,
ITransientDependency
{
protected IFeatureChecker FeatureChecker { get; set; }
protected IMenuItemRepository MenuRepository { get; }
protected MenuItemManager MenuManager { get; }
public PageChangedHandler(
IFeatureChecker featureChecker,
IMenuItemRepository menuRepository,
MenuItemManager menuManager)
{
FeatureChecker = featureChecker;
MenuRepository = menuRepository;
MenuManager = menuManager;
}
public async Task HandleEventAsync(EntityUpdatedEventData<Page> eventData)
{
if(!GlobalFeatureManager.Instance.IsEnabled<MenuFeature>())
{
return;
}
if(!await FeatureChecker.IsEnabledAsync(CmsKitFeatures.MenuEnable))
{
return;
}
// TODO: Write a repository query.
var allMenuItems = await MenuRepository.GetListAsync();

30
modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/Rating/Default.cshtml

@ -5,32 +5,37 @@
@model Volo.CmsKit.Public.Web.Pages.CmsKit.Shared.Components.Rating.RatingViewModel
@inject IHtmlLocalizer<CmsKitResource> L
@{
var modalId = "ratingDetail_" + Model.EntityType + "_" + Model.EntityId;
modalId = modalId.Replace(".", "-").Replace(":", "-").Replace("/", "-").Replace(" ", "-");
var modalLabelId = modalId + "_label";
}
<div class="row row">
<div class="col">
<div class="cms-rating-area" data-entity-type="@Model.EntityType" data-entity-id="@Model.EntityId" id="cms-rating_{@Model.EntityType}_{@Model.EntityId}">
@if (CurrentUser.IsAuthenticated)
{
@if (!Model.IsReadOnly && Model.CurrentRating != null)
@if (Model.Ratings != null)
{
<a href="#" class="rating-undo-link text-decoration-none">
<small class="text-muted"><i class="fa fa-undo"></i> @L["Undo"]</small>
</a>
}
if (Model.Ratings != null)
{
<a href="#" class="text-muted ms-1 text-decoration-none" data-bs-toggle="modal" data-bs-target="#ratingDetail">
<a href="#" class="text-muted ms-1 text-decoration-none" data-bs-toggle="modal" data-bs-target="#@modalId">
<i class="far fa-question-circle"></i>
</a>
<div class="modal fade" id="ratingDetail" tabindex="-1" role="dialog" aria-labelledby="ratingDetail" aria-hidden="true">
<div class="modal fade" id="@modalId" tabindex="-1" role="dialog" aria-labelledby="@modalLabelId" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Rating Detail</h5>
<h5 class="modal-title" id="@modalLabelId">Rating Detail</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="text-center mb-3">
<h4>@L["AverageRating"]: @Model.AverageRating.ToString("F1")</h4>
<small class="text-muted">(@Model.TotalRating @L["TotalRatings"])</small>
</div>
<hr />
<div class="row text-center">
@foreach (var rating in Model.Ratings)
{
@ -49,13 +54,14 @@
</div>
}
<small class="live-rating text-center d-inline-block" style="width: 24px">@(Model.CurrentRating != null ? Model.CurrentRating + " " : 0 + "")</small>
<small class="live-rating text-center d-inline-block" style="width: 32px">@Model.AverageRating.ToString("F1")</small>
<span class="my-rating text-dark p-1" data-rating="@(Model.CurrentRating ?? 0)" data-authenticated="@(Model.CurrentRating != null)" data-readonly="@Model.IsReadOnly">
<span class="my-rating text-dark p-1" data-rating="@(Model.CurrentRating ?? 0)" data-readonly="@Model.IsReadOnly">
</span>
}
else
{
<small class="live-rating text-center d-inline-block" style="width: 32px">@Model.AverageRating.ToString("F1")</small>
<span class="my-rating text-dark p-1" data-authenticated="True" data-bs-toggle="popover" data-bs-placement="right" data-html="true" data-content="<div class='text-center'><div class='d-grid gap-2'><a href='@Model.LoginUrl' class='btn btn-primary'>@L["LoginToRate"]</a></div></div>"></span>
<span class="rating-login"></span>
}

4
modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/Rating/RatingViewComponent.cs

@ -35,6 +35,7 @@ public class RatingViewComponent : AbpViewComponent
{
var ratings = await RatingPublicAppService.GetGroupedStarCountsAsync(entityType, entityId);
var totalRating = ratings.Sum(x => x.Count);
var averageRating = totalRating > 0 ? (double)ratings.Sum(x => x.StarCount * x.Count) / totalRating : 0;
short? currentUserRating = null;
if (CurrentUser.IsAuthenticated)
@ -53,6 +54,7 @@ public class RatingViewComponent : AbpViewComponent
Ratings = ratings,
CurrentRating = currentUserRating,
TotalRating = totalRating,
AverageRating = averageRating,
IsReadOnly = isReadOnly
};
@ -74,5 +76,7 @@ public class RatingViewModel
public int TotalRating { get; set; }
public double AverageRating { get; set; }
public bool IsReadOnly { get; set; }
}

34
modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/Rating/default.js

@ -16,24 +16,22 @@
$widget.find(".my-rating").each(function () {
var authenticated = $(this).attr("data-authenticated");
var readonly = $(this).attr("data-readonly");
var currentRating = parseInt($(this).attr("data-rating")) || 0;
var $liveRating = $widget.find(".live-rating");
var averageRating = $liveRating.text();
$(this).starRating({
initialRating: 0,
initialRating: currentRating,
starSize: 16,
emptyColor: '#eee',
hoverColor: '#ffc107',
activeColor: '#ffc107',
useGradient: false,
strokeWidth: 0,
disableAfterRate: true,
disableAfterRate: false,
useFullStars: true,
readOnly: authenticated === "True" || readonly === "True",
onHover: function (currentIndex, currentRating, $el) {
$widget.find(".live-rating").text(currentIndex);
},
onLeave: function (currentIndex, currentRating, $el) {
$widget.find(".live-rating").text(currentRating);
},
callback: function (currentRating, $el) {
volo.cmsKit.public.ratings.ratingPublic.create(
$ratingArea.attr("data-entity-type"),
@ -50,28 +48,8 @@
);
}
function registerUndoLink() {
$widget.find(".rating-undo-link").each(function () {
$(this).on('click', '', function (e) {
e.preventDefault();
abp.message.confirm(l("RatingUndoMessage"), function (ok) {
if (ok) {
volo.cmsKit.public.ratings.ratingPublic.delete(
$ratingArea.attr("data-entity-type"),
$ratingArea.attr("data-entity-id")
).then(function () {
widgetManager.refresh($widget);
});
}
})
});
});
}
function init() {
registerCreateOfNewRating();
registerUndoLink();
}
return {

3
modules/feature-management/src/Volo.Abp.FeatureManagement.Web/Pages/FeatureManagement/Components/FeatureSettingGroup/Default.js

@ -13,8 +13,9 @@
});
_featuresModal.onResult(function(){
l = abp.localization.getResource("AbpFeatureManagement");
abp.notify.success(l('SavedSuccessfully'));
});
})
})(jQuery);
})(jQuery);

1
modules/feature-management/src/Volo.Abp.FeatureManagement.Web/Pages/FeatureManagement/feature-management-modal.js

@ -13,6 +13,7 @@ var abp = abp || {};
let providerName = $('#ProviderName').val();
let prodiverKey = $('#ProviderKey').val();
volo.abp.featureManagement.features.delete(providerName, prodiverKey).then(function () {
$("#FeatureManagementForm").get(0).reset();
abp.notify.success(l('SavedSuccessfully'));
$('#featureManagmentModal').modal('hide');
});

4
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.Server.Mongo/MyCompanyName.MyProjectName.Blazor.Server.Mongo.csproj

@ -21,8 +21,8 @@
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.AspNetCore.Components.Server.Theming\Volo.Abp.AspNetCore.Components.Server.Theming.csproj" />
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.AspNetCore.Components.Web.Theming\Volo.Abp.AspNetCore.Components.Web.Theming.csproj" />
<!-- </TEMPLATE-REMOVE> -->
<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonXLite" Version="4.1.0-preview*" />
<PackageReference Include="Volo.Abp.AspNetCore.Components.Server.LeptonXLiteTheme" Version="4.1.0-preview*" />
<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonXLite" Version="5.0.0" />
<PackageReference Include="Volo.Abp.AspNetCore.Components.Server.LeptonXLiteTheme" Version="5.0.0" />
</ItemGroup>
<ItemGroup>

4
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.Server/MyCompanyName.MyProjectName.Blazor.Server.csproj

@ -21,8 +21,8 @@
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.AspNetCore.Components.Server.Theming\Volo.Abp.AspNetCore.Components.Server.Theming.csproj" />
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.AspNetCore.Components.Web.Theming\Volo.Abp.AspNetCore.Components.Web.Theming.csproj" />
<!-- </TEMPLATE-REMOVE> -->
<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonXLite" Version="4.1.0-preview*" />
<PackageReference Include="Volo.Abp.AspNetCore.Components.Server.LeptonXLiteTheme" Version="4.1.0-preview*" />
<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonXLite" Version="5.0.0" />
<PackageReference Include="Volo.Abp.AspNetCore.Components.Server.LeptonXLiteTheme" Version="5.0.0" />
</ItemGroup>
<ItemGroup>

2
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.WebAssembly/Client/MyCompanyName.MyProjectName.Blazor.WebAssembly.Client.csproj

@ -21,7 +21,7 @@
<ProjectReference Include="..\..\..\..\..\framework\src\Volo.Abp.Http.Client.IdentityModel.WebAssembly\Volo.Abp.Http.Client.IdentityModel.WebAssembly.csproj" />
<ProjectReference Include="..\..\..\..\..\framework\src\Volo.Abp.AspNetCore.Components.Web.Theming\Volo.Abp.AspNetCore.Components.Web.Theming.csproj" />
<!-- </TEMPLATE-REMOVE> -->
<PackageReference Include="Volo.Abp.AspNetCore.Components.WebAssembly.LeptonXLiteTheme" Version="4.1.0-preview*" />
<PackageReference Include="Volo.Abp.AspNetCore.Components.WebAssembly.LeptonXLiteTheme" Version="5.0.0" />
</ItemGroup>
<ItemGroup>

4
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.WebAssembly/Server.Mongo/MyCompanyName.MyProjectName.Blazor.WebAssembly.Server.Mongo.csproj

@ -73,8 +73,8 @@
<ProjectReference Include="..\..\..\..\..\framework\src\Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy\Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy.csproj" />
<ProjectReference Include="..\..\..\..\..\framework\src\Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared\Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.csproj" />
<!-- </TEMPLATE-REMOVE> -->
<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonXLite" Version="4.1.0-preview*" />
<PackageReference Include="Volo.Abp.AspNetCore.Components.WebAssembly.LeptonXLiteTheme.Bundling" Version="4.1.0-preview*" />
<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonXLite" Version="5.0.0" />
<PackageReference Include="Volo.Abp.AspNetCore.Components.WebAssembly.LeptonXLiteTheme.Bundling" Version="5.0.0" />
</ItemGroup>
<ItemGroup>

4
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.WebAssembly/Server/MyCompanyName.MyProjectName.Blazor.WebAssembly.Server.csproj

@ -74,8 +74,8 @@
<ProjectReference Include="..\..\..\..\..\framework\src\Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy\Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy.csproj" />
<ProjectReference Include="..\..\..\..\..\framework\src\Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared\Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.csproj" />
<!-- </TEMPLATE-REMOVE> -->
<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonXLite" Version="4.1.0-preview*" />
<PackageReference Include="Volo.Abp.AspNetCore.Components.WebAssembly.LeptonXLiteTheme.Bundling" Version="4.1.0-preview*" />
<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonXLite" Version="5.0.0" />
<PackageReference Include="Volo.Abp.AspNetCore.Components.WebAssembly.LeptonXLiteTheme.Bundling" Version="5.0.0" />
</ItemGroup>
<ItemGroup>

2
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Host.Mongo/MyCompanyName.MyProjectName.Host.Mongo.csproj

@ -69,7 +69,7 @@
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy\Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy.csproj" />
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared\Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.csproj" />
<!-- </TEMPLATE-REMOVE> -->
<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonXLite" Version="4.1.0-preview*" />
<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonXLite" Version="5.0.0" />
</ItemGroup>
<ItemGroup>

2
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Host/MyCompanyName.MyProjectName.Host.csproj

@ -70,7 +70,7 @@
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy\Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy.csproj" />
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared\Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.csproj" />
<!-- </TEMPLATE-REMOVE> -->
<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonXLite" Version="4.1.0-preview*" />
<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonXLite" Version="5.0.0" />
</ItemGroup>
<ItemGroup>

2
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Mvc.Mongo/MyCompanyName.MyProjectName.Mvc.Mongo.csproj

@ -17,7 +17,7 @@
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy\Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy.csproj" />
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared\Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.csproj" />
<!-- </TEMPLATE-REMOVE> -->
<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonXLite" Version="4.1.0-preview*" />
<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonXLite" Version="5.0.0" />
</ItemGroup>
<ItemGroup>

2
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Mvc/MyCompanyName.MyProjectName.Mvc.csproj

@ -17,7 +17,7 @@
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy\Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy.csproj" />
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared\Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.csproj" />
<!-- </TEMPLATE-REMOVE> -->
<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonXLite" Version="4.1.0-preview*" />
<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonXLite" Version="5.0.0" />
</ItemGroup>
<ItemGroup>

2
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.AuthServer/MyCompanyName.MyProjectName.AuthServer.csproj

@ -51,7 +51,7 @@
<ProjectReference Include="..\..\..\..\..\framework\src\Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared\Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.csproj" />
<ProjectReference Include="..\..\..\..\..\framework\src\Volo.Abp.Mapperly\Volo.Abp.Mapperly.csproj" />
<!-- </TEMPLATE-REMOVE> -->
<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonXLite" Version="4.1.0-preview*" />
<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonXLite" Version="5.0.0" />
</ItemGroup>
<ItemGroup>

2
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor.Client/MyCompanyName.MyProjectName.Blazor.Client.csproj

@ -24,7 +24,7 @@
<ProjectReference Include="..\..\..\..\..\framework\src\Volo.Abp.Http.Client.IdentityModel.WebAssembly\Volo.Abp.Http.Client.IdentityModel.WebAssembly.csproj" />
<ProjectReference Include="..\..\..\..\..\framework\src\Volo.Abp.AspNetCore.Components.Web.Theming\Volo.Abp.AspNetCore.Components.Web.Theming.csproj" />
<!-- </TEMPLATE-REMOVE> -->
<PackageReference Include="Volo.Abp.AspNetCore.Components.WebAssembly.LeptonXLiteTheme" Version="4.1.0-preview*" />
<PackageReference Include="Volo.Abp.AspNetCore.Components.WebAssembly.LeptonXLiteTheme" Version="5.0.0" />
</ItemGroup>
<ItemGroup>

4
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor.Server.Tiered/MyCompanyName.MyProjectName.Blazor.Server.Tiered.csproj

@ -30,8 +30,8 @@
<ProjectReference Include="..\..\..\..\..\framework\src\Volo.Abp.AspNetCore.Components.Server.Theming\Volo.Abp.AspNetCore.Components.Server.Theming.csproj" />
<ProjectReference Include="..\..\..\..\..\framework\src\Volo.Abp.AspNetCore.Components.Web.Theming\Volo.Abp.AspNetCore.Components.Web.Theming.csproj" />
<!-- </TEMPLATE-REMOVE> -->
<PackageReference Include="Volo.Abp.AspNetCore.Components.Server.LeptonXLiteTheme" Version="4.1.0-preview*" />
<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonXLite" Version="4.1.0-preview*" />
<PackageReference Include="Volo.Abp.AspNetCore.Components.Server.LeptonXLiteTheme" Version="5.0.0" />
<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonXLite" Version="5.0.0" />
</ItemGroup>
<ItemGroup>

4
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor.Server/MyCompanyName.MyProjectName.Blazor.Server.csproj

@ -29,8 +29,8 @@
<ProjectReference Include="..\..\..\..\..\framework\src\Volo.Abp.AspNetCore.Components.Server.Theming\Volo.Abp.AspNetCore.Components.Server.Theming.csproj" />
<ProjectReference Include="..\..\..\..\..\framework\src\Volo.Abp.AspNetCore.Components.Web.Theming\Volo.Abp.AspNetCore.Components.Web.Theming.csproj" />
<!-- </TEMPLATE-REMOVE> -->
<PackageReference Include="Volo.Abp.AspNetCore.Components.Server.LeptonXLiteTheme" Version="4.1.0-preview*" />
<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonXLite" Version="4.1.0-preview*" />
<PackageReference Include="Volo.Abp.AspNetCore.Components.Server.LeptonXLiteTheme" Version="5.0.0" />
<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonXLite" Version="5.0.0" />
</ItemGroup>
<ItemGroup>

2
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor.WebApp.Client/MyCompanyName.MyProjectName.Blazor.WebApp.Client.csproj

@ -25,7 +25,7 @@
<ProjectReference Include="..\..\..\..\..\framework\src\Volo.Abp.Http.Client.IdentityModel.WebAssembly\Volo.Abp.Http.Client.IdentityModel.WebAssembly.csproj" />
<ProjectReference Include="..\..\..\..\..\framework\src\Volo.Abp.AspNetCore.Components.Web.Theming\Volo.Abp.AspNetCore.Components.Web.Theming.csproj" />
<!-- </TEMPLATE-REMOVE> -->
<PackageReference Include="Volo.Abp.AspNetCore.Components.WebAssembly.LeptonXLiteTheme" Version="4.1.0-preview*" />
<PackageReference Include="Volo.Abp.AspNetCore.Components.WebAssembly.LeptonXLiteTheme" Version="5.0.0" />
</ItemGroup>
<ItemGroup>

2
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor.WebApp.Tiered.Client/MyCompanyName.MyProjectName.Blazor.WebApp.Tiered.Client.csproj

@ -25,7 +25,7 @@
<ProjectReference Include="..\..\..\..\..\framework\src\Volo.Abp.Http.Client.IdentityModel.WebAssembly\Volo.Abp.Http.Client.IdentityModel.WebAssembly.csproj" />
<ProjectReference Include="..\..\..\..\..\framework\src\Volo.Abp.AspNetCore.Components.Web.Theming\Volo.Abp.AspNetCore.Components.Web.Theming.csproj" />
<!-- </TEMPLATE-REMOVE> -->
<PackageReference Include="Volo.Abp.AspNetCore.Components.WebAssembly.LeptonXLiteTheme" Version="4.1.0-preview*" />
<PackageReference Include="Volo.Abp.AspNetCore.Components.WebAssembly.LeptonXLiteTheme" Version="5.0.0" />
</ItemGroup>
<ItemGroup>

4
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor.WebApp.Tiered/MyCompanyName.MyProjectName.Blazor.WebApp.Tiered.csproj

@ -32,8 +32,8 @@
<ProjectReference Include="..\..\..\..\..\framework\src\Volo.Abp.AspNetCore.Components.Server.Theming\Volo.Abp.AspNetCore.Components.Server.Theming.csproj" />
<ProjectReference Include="..\..\..\..\..\framework\src\Volo.Abp.AspNetCore.Components.Web.Theming\Volo.Abp.AspNetCore.Components.Web.Theming.csproj" />
<!-- </TEMPLATE-REMOVE> -->
<PackageReference Include="Volo.Abp.AspNetCore.Components.Server.LeptonXLiteTheme" Version="4.1.0-preview*" />
<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonXLite" Version="4.1.0-preview*" />
<PackageReference Include="Volo.Abp.AspNetCore.Components.Server.LeptonXLiteTheme" Version="5.0.0" />
<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonXLite" Version="5.0.0" />
</ItemGroup>
<ItemGroup>

6
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor.WebApp/MyCompanyName.MyProjectName.Blazor.WebApp.csproj

@ -30,9 +30,9 @@
<ProjectReference Include="..\..\..\..\..\framework\src\Volo.Abp.AspNetCore.Components.Server.Theming\Volo.Abp.AspNetCore.Components.Server.Theming.csproj" />
<ProjectReference Include="..\..\..\..\..\framework\src\Volo.Abp.AspNetCore.Components.Web.Theming\Volo.Abp.AspNetCore.Components.Web.Theming.csproj" />
<!-- </TEMPLATE-REMOVE> -->
<PackageReference Include="Volo.Abp.AspNetCore.Components.Server.LeptonXLiteTheme" Version="4.1.0-preview*" />
<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonXLite" Version="4.1.0-preview*" />
<PackageReference Include="Volo.Abp.AspNetCore.Components.WebAssembly.LeptonXLiteTheme.Bundling" Version="4.1.0-preview*" />
<PackageReference Include="Volo.Abp.AspNetCore.Components.Server.LeptonXLiteTheme" Version="5.0.0" />
<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonXLite" Version="5.0.0" />
<PackageReference Include="Volo.Abp.AspNetCore.Components.WebAssembly.LeptonXLiteTheme.Bundling" Version="5.0.0" />
</ItemGroup>
<ItemGroup>

2
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/MyCompanyName.MyProjectName.Blazor.csproj

@ -16,7 +16,7 @@
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="10.0.0" />
<ProjectReference Include="..\..\..\..\..\framework\src\Volo.Abp.Autofac\Volo.Abp.Autofac.csproj" />
<ProjectReference Include="..\..\..\..\..\framework\src\Volo.Abp.AspNetCore.Mvc.UI.Bundling\Volo.Abp.AspNetCore.Mvc.UI.Bundling.csproj" />
<PackageReference Include="Volo.Abp.AspNetCore.Components.WebAssembly.LeptonXLiteTheme.Bundling" Version="4.1.0-preview*" />
<PackageReference Include="Volo.Abp.AspNetCore.Components.WebAssembly.LeptonXLiteTheme.Bundling" Version="5.0.0" />
<ProjectReference Include="..\MyCompanyName.MyProjectName.Blazor.Client\MyCompanyName.MyProjectName.Blazor.Client.csproj" />
</ItemGroup>

2
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.HttpApi.HostWithIds/MyCompanyName.MyProjectName.HttpApi.HostWithIds.csproj

@ -26,7 +26,7 @@
<ProjectReference Include="..\..\..\..\..\framework\src\Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared\Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.csproj" />
<ProjectReference Include="..\..\..\..\..\framework\src\Volo.Abp.Mapperly\Volo.Abp.Mapperly.csproj" />
<!-- </TEMPLATE-REMOVE> -->
<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonXLite" Version="4.1.0-preview*" />
<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonXLite" Version="5.0.0" />
</ItemGroup>
<ItemGroup>

2
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Web.Host/MyCompanyName.MyProjectName.Web.Host.csproj

@ -28,7 +28,7 @@
<ProjectReference Include="..\..\..\..\..\framework\src\Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared\Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.csproj" />
<ProjectReference Include="..\..\..\..\..\framework\src\Volo.Abp.Mapperly\Volo.Abp.Mapperly.csproj" />
<!-- </TEMPLATE-REMOVE> -->
<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonXLite" Version="4.1.0-preview*" />
<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonXLite" Version="5.0.0" />
</ItemGroup>
<ItemGroup>

2
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Web/MyCompanyName.MyProjectName.Web.csproj

@ -49,7 +49,7 @@
<ProjectReference Include="..\..\..\..\..\framework\src\Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared\Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.csproj" />
<ProjectReference Include="..\..\..\..\..\framework\src\Volo.Abp.Mapperly\Volo.Abp.Mapperly.csproj" />
<!-- </TEMPLATE-REMOVE> -->
<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonXLite" Version="4.1.0-preview*" />
<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonXLite" Version="5.0.0" />
</ItemGroup>
<ItemGroup>

Loading…
Cancel
Save