I made an application with C# and it reads text files located on my hard drive but how do I publish the application and include these text files in the final exe so when the application is installed on a different computer it would work and not fail because it cannot locate the text files? I'm using Visual Studio2010
In properties for the file in Visual Studio, change the Build Action from None (probably) to Content, or store it as a Resource file depending on where it needs to end up.
Of course if you are writing an installer just add it to the installed components.
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