1
votes

I have a web app, and I've setup VSTS to create a package in build, and then deploy it using release management.

It puts all of the result in the wwwroot of the site if I look at it in ftp so I get:

/site/wwwroot/ /wwroot /

This doesn't run and I get a 404 error.

If I use the URL and go say /wwwroot/images/ it returns it just fine.

The app is set to use .net core and I'm doing a self-contained package.

How do I get VSTS release to put the files in the right place and what is the right place ? I can't find any documentation on this anywhere. Everything is to do with Windows.

Also, what linux target should the dotnet application be set to for self-contained? I have it using ubuntu but I'm sure that's wrong and it's something else.

2
Can you share the detail build and release log here?starian chen-MSFT

2 Answers

0
votes

Please use Azure App Service Deploy task with 4.* (preview) version instead, and deploy again:

enter image description here

0
votes

I had a similar issue and I responded here. Essentially you need to have a startup command pointing to your DLL because Dev Ops deploys the package in a different way than VS.

Deploying .Net Core to Linux WebApps on Azure with DevOps