C
C#2y ago
n305

✅ Having trouble adding a picture to my code.

what should the path look like?
26 Replies
n305
n305OP2y ago
in this tutorial it looks like this
ero
ero2y ago
that's because the image is part of the project's directory
n305
n305OP2y ago
so how do I add it?
Lexaro
Lexaro2y ago
just click on the path in explorer and copy it to ur code
n305
n305OP2y ago
I did that but it doesen't work for some reason
n305
n305OP2y ago
n305
n305OP2y ago
n305
n305OP2y ago
No Idea what's wrong @Lexaro like this?
Lexaro
Lexaro2y ago
yea
n305
n305OP2y ago
not working:((
ero
ero2y 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
n305OP2y ago
ero
ero2y ago
sure
n305
n305OP2y ago
n305
n305OP2y ago
Do I add?
ero
ero2y ago
you can just drag the file there
n305
n305OP2y ago
ohh So How Do I do this part? because its still not showing
n305
n305OP2y ago
n305
n305OP2y ago
ero
ero2y 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
n305OP2y ago
ero
ero2y ago
yeah that one build action
n305
n305OP2y ago
n305
n305OP2y 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
ero2y ago
$close
MODiX
MODiX2y ago
Use the /close command to mark a forum thread as answered
Want results from more Discord servers?
Add your server