Resource Files

Setting up and using resource files is the primary means of localizing programs. Resource files are specialized binary files that can be bound to a standalone DLL or added into a program assembly. They contain strings, graphics, and other binary resources that assist in localizing a program.

Creating a Resource File

The resource generator utility ResGen is a string resource creation utility that comes with the Microsoft .NET Framework SDK. Given a properly formatted .txt (text) file, ResGen converts it into a .resources (binary resources) file that can subsequently be added to an assembly.

Note

In simplistic terms, an assembly is a unit of deployment. Assemblies are covered in more detail in later chapters, but for now, it will ...

Get C# Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.