I deployed my Blazor server side App on my server.
Publish was OK, success.
But when I look on the repository where its published, I find lot of dll etc… but no content that I used to work with in local when I build the app…
All is working good, I access the web app from my browser, but as I use to work with some template personal files, they are missing on the server and the logic behind is lost…
how can I find back the files on the server where I publish my project and which the path I have to write in my code to update it?
I saw somewhere that I had to set the properties of each file that I need to have on my server ( build action -> Content ), I made it but still missing on server…
thanks.
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
move your folder to wwwroot
Then on a razor page
<a href="Resources/Template/template.xlsx" download>Download File</a>
Method 2
I think the solution to your problem is what @David L in the comments underneath your post and @Brian MacKay here have said:
You need to change the Copy to output directory to something other than Do not copy. For example to Copy always.
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

