I'm very new to Azure App Service, but have started using it for my semester project. With Github Actions it gets automatically deployed and built on Azure and ready for me to test, and to share. I do have a slight problem finding all my repo files tho. I was hoping I could use the same relative paths I use in Visual Studio 2019, on Azure. But I can't seem to figure out where my images are running off to. I have a folder with image segments ment to be used in a puzzle game. Located in the "gamefiles" folder.
Top picture is of my folder structure in VS2019 and the bottom picture is of the folder structure in Azure App Service Editor. Do I need to use another Azure service to get all my files on there, or do I need to do something from Githubs side of things. Tried searching, but couldn't find anything that answer my question.. Any tips are greatly appriciated!
CodePudding user response:
Add below code in your project_name.csproj
file.
<ItemGroup>
<Content Include="gamefiles\**">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
It should be useful to you.