Reputation: 305
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.
Upvotes: 0
Views: 914
Reputation: 571
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.
Upvotes: 0
Reputation: 14593
move your folder to wwwroot
Then on a razor page
<a href="Resources/Template/template.xlsx" download>Download File</a>
Upvotes: 2