Share via

Help with GitHub Actions CI/CD Blazor Web App .NET8-> Azure App Service

Christopher Abbondandelo 0 Reputation points
2024-10-18T14:32:05.2433333+00:00

yaml-copy.txtThe publish directly from Visual Studio works correctly but my yaml script results in the css/bootstrap not being applied correctly.

Are there any changes needed to be made with my yaml script?

It is a Blazor Web App .NET8 interactive server with the correct bootstrap link/script for cdn.

Thanks in advance!

Developer technologies | .NET | Blazor
Azure App Service
Azure App Service

Azure App Service is a service used to create and deploy scalable, mission-critical web apps.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Bryan Trach 17,842 Reputation points Microsoft Employee Moderator
    2024-10-19T00:01:34.6666667+00:00

    @Christopher Abbondandelo The problem sounds like the CSS/bootstrap is not being applied correctly when using the YAML script.

    Can you please check to make sure that your static files (CSS, JS, etc) are being included in the build and deployment process? If not, you might need to add step to copy the appropriate directory.

    Two other items that I can think of as well are to verify that your build and publish steps are correctly configured to include all necessary files. I have helped others with a similar issue in the past and it was due to missing files in the output directly.

    Lastly, can you please verify the deployment path in your YAML script matches the path where the static files are expected to be?

    If none of the three above items resolve the issue, can you please reply to this message with a sanitized version of your YAML script?

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.