Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Deploy Blazor WASM .NET 8 To Azure App Service using Azure Pipeline

$
0
0

i'm trying since hours to deploy my wasm app to azure app service. I had it before on static webapp this works fine, but i need it to run on app service now.I used the same pipeline as for my blazor server apps and some other from web, but no luck.

here my pipeline i am using for blazor server as well

# ASP.NET Core (.NET Framework)# Build and test ASP.NET Core projects targeting the full .NET Framework.# Add steps that publish symbols, save build artifacts, and more:# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-coretrigger:- masterpool:  vmImage: 'windows-latest'variables:  solution: '**/*.sln'  buildPlatform: 'Any CPU'  buildConfiguration: 'Release'steps:- task: NuGetToolInstaller@1- task: NuGetCommand@2  inputs:    restoreSolution: '$(solution)'- task: VSBuild@1  inputs:    solution: '$(solution)'    msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:DesktopBuildPackageLocation="$(build.artifactStagingDirectory)\WebApp.zip" /p:DeployIisAppPath="Default Web Site"'    platform: '$(buildPlatform)'    configuration: '$(buildConfiguration)'- task: AzureRmWebAppDeployment@5  inputs:    ConnectionType: 'AzureRM'    azureSubscription: 'namesub'    appType: 'webApp'    WebAppName: 'nameoftheapp'    packageForLinux: '$(build.artifactStagingDirectory)/*.zip'

this pipeline runs and deploys fine but when i am browing my app i cann see only

Your web app is running and waiting for your content

i guess its deployed wrong place or anything.

I hope someone will be kind enough to save me from going mad

Thanks a lot


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>