Hi Al Amran
As we discussed in private message, after trying this script - frontend.txt, ABP proxy was successfully generated.
However, you mentioned: "I can’t see the proxy directory in Azure Repos" "No dist/ClientPortal in the artifact".
This is expected behavior. Azure Pipelines does not commit generated files back to your Git repository unless you explicitly add a step. So, you won’t see the src/app/proxy
folder in Azure Repos, unless you commit it manually.
Firstly, Open angular/angular.json
and look for defaultProject
and check if it is missing or set incorrectly.
Normally it should be like this:
{
"$schema": "...",
"defaultProject": "ClientPortal", // <-- Check this
"projects": {
"ClientPortal": {
"architect": {
"build": {
"options": {
"outputPath": "dist/ClientPortal" // <-- Confirm this matches your YAML
If your angular.json
uses:
"defaultProject": "app"
Then adjust the build command to:
call yarn build app --configuration production
then fix in yaml pipeline if needed,
In your pipeline:
variables:
outputDir: 'dist/ClientPortal'
To confirm angular build path, add this debug step:
- script: |
echo "Listing Angular build output..."
dir angular/dist
displayName: 'Inspect Angular Build Output'
If the folder is angular/dist/client-portal
(lowercase or different casing), update your outputDir
variable accordingly.
Hope this helps!
Please Let me know if you have any queries.