Can a PDF file be attached to application (exe) ?

VAer-4038 766 Reputation points
2020-12-31T00:08:30.23+00:00

I am not familiar with Visual Studio(non professional IT guy, still learning Visual Studio), and would like to ask a curious question: when I build an application, and the final delivery product is the exe extension file. If I have a pdf instruction manual(only a few pages), is it possible to attached to application itself (rather than a separate pdf file)? I am not sure how to describe the question better, as we know, the application can have image/favicon, and those images are within application (Property or Reference). Similarly, is it possible for application to include pdf file, so when users click a button, the pdf file will open. I don't mean to upload pdf file to third party website, I mean attaching pdf file inside application itself.

Just a curious question, not an IT guy. The question may sound silly.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,198 questions
{count} votes

Accepted answer
  1. David Lowndes 4,716 Reputation points
    2020-12-31T00:40:35.553+00:00

    Yes, it's possible to embed arbitrary data in a resource for EXEs.
    See User-Defined Resource or Create resource files for .NET apps

    I'd question the wisdom of doing so for the example you cite though.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.