Data Browser - Viewing Site  Sector 23 Code Bank Logged in as:  Guest  




           


404 Error after publishing brand new .NET8 Angular 17 project to Azure App Service
This is a bug in the New Project template.

Go to the folder with the client app code.
Edit the *.esproj file in there.
Add \browser to the end of the BuildOutputFolder setting.
Example:

<Project Sdk="Microsoft.VisualStudio.JavaScript.Sdk/0.5.271090-alpha">
<PropertyGroup>
<StartupCommand>npm start</StartupCommand>
<JavaScriptTestFramework>Jasmine</JavaScriptTestFramework>
<!-- Allows the build (or compile) script located on package.json to run on Build -->
<ShouldRunBuildScript>false</ShouldRunBuildScript>
<!-- Folder where production build objects will be placed -->
<BuildOutputFolder>$(MSBuildProjectDirectory)\dist\{YOURAPPNAME}.client\browser</BuildOutputFolder>
</PropertyGroup>
</Project>

Created By: amos 3/20/2024 8:09:53 PM