Khalid Ab
Khalid Ab

Reputation: 305

missing content on server when deployed blazor ServerSide app

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...

My missing File example

thanks.

Upvotes: 0

Views: 914

Answers (2)

devbf
devbf

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

Brian Parker
Brian Parker

Reputation: 14593

move your folder to wwwroot

enter image description here

Then on a razor page

<a href="Resources/Template/template.xlsx" download>Download File</a>

Upvotes: 2

Related Questions