I have a third-party application that creates a dll file out my .cs code.
In my .cs code I reference a file.
How do I compile the dll or .cs to include the .jpg file along with the code?
The options I have for the third-party application does not allow me to export the .jpg
The import process only looks at the .cs and the associated .dll.
Is there a way to add the file to the dll once the third-party application has created the dll in the export process with visual stuido or something?
Yes this is possible. If the file is used by your code in the dll then the file needs to be embedded thorugh the Properties >> Build Action >> Embedded Resource setting:

You have to edit the .csproj and change the node that represents your file to:
<EmbeddedResource Include="Resources\yourEmbeddedResource.json" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With