C
C#3y ago
n305

✅ Having trouble adding a picture to my code.

what should the path look like?
26 Replies
n305
n305OP3y ago
in this tutorial it looks like this
ero
ero3y ago
that's because the image is part of the project's directory
n305
n305OP3y ago
so how do I add it?
Lexaro
Lexaro3y ago
just click on the path in explorer and copy it to ur code
n305
n305OP3y ago
I did that but it doesen't work for some reason
n305
n305OP3y ago
n305
n305OP3y ago
n305
n305OP3y ago
No Idea what's wrong @Lexaro like this?
Lexaro
Lexaro3y ago
yea
n305
n305OP3y ago
not working:((
ero
ero3y ago
no, not like that. you create an Assets folder in your project, and add the file there set the file's properties to Resource, and that's it
n305
n305OP3y ago
ero
ero3y ago
sure
n305
n305OP3y ago
n305
n305OP3y ago
Do I add?
ero
ero3y ago
you can just drag the file there
n305
n305OP3y ago
ohh So How Do I do this part? because its still not showing
n305
n305OP3y ago
n305
n305OP3y ago
ero
ero3y ago
right click the file in the solution explorer > properties and then idk it's some setting might be "Content" by default set that to Resource
n305
n305OP3y ago
ero
ero3y ago
yeah that one build action
n305
n305OP3y ago
n305
n305OP3y ago
changed it Thank you so much, I was stuck with this for so long Do I have to close this thread now? im not sure how to
ero
ero3y ago
$close
MODiX
MODiX3y ago
Use the /close command to mark a forum thread as answered

Did you find this page helpful?