So I have tried deploying an application using .net 4.8 backend and reactjs as frontend from Azure Devops to an IIS on a server. The artifact ends up there but its missing some key components.
The problem I'm having is trying to get the 'dist' folder to end the react folder: '/ClientApp'. The path is '[projectroot]/ClientApp/dist', but instead it ends up nowhere. I've tried a multiple of different path combinations. I also tried using two build steps and two artifacts, but that didnt work either. I will post a series of images of my setup and hopefully that will help you point me in the right direction..
Here is the project with the react app in 'ClientApp'
dist folder
webpack
npm build step
solution build step
copy files step (got this from this post enter link description here)
Artifact step
Release step (Prior task contains authentication and such..)
This is the artifact drop from the build (Notice that the artifact is "split up" with the solution that is zipped in the drop (correctly) but the npm build (or the copy files) is in its own file structure. This is most likely whats going wrong.
this is the root folder on the server, looks fine
No 'dist' folder in the ClientApp folder...