Textdatei in Klassenbibliothek (*.dll) kompilieren

Tikonteroga

Erfahrenes Mitglied
Hallo,

ich habe eine Klassenbibliothek entwickelt, die zur Laufzeit einmal auf eine "Vorlagendatei" zugreifen muss. Um zu verhindern, dass es zu einer FileNotFoundException kommen kann, möchte ich die "Vorlagendatei" in die Klassenbibliothe (*.dll) einbinden.

Gibt es hierfür eine Möglichkeit ?
 
Laut dieser Antwort auf StackOverflow sollten Resources Files dein Problem lösen:

MSDN hat gesagt.:
Visual C# applications often include data that is not source code. Such data is referred to as a project resource and it can include binary data, text files, audio or video files, string tables, icons, images, XML files, or any other type of data that your application requires.
 

Neue Beiträge

Zurück