O'Reilly logo

NuGet 2 Essentials by Dejan Dakić, Damir Arh

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Packaging localized satellite assemblies

When building localized solutions in .NET, resources for individual supported locales are linked to satellite assemblies that need to be distributed along with the main assembly. At runtime, they need to be placed into a subfolder beside the main assembly with a name matching the locale name of the resources. NuGet has support both for including the satellite assemblies in the same package as the main assembly and for creating individual packages for each supported locale.

Let's localize our sample library to create a set of satellite assemblies before we take a look at how to package them in both the ways supported by NuGet:

  1. Add a new Resources File data file to the root of the project and name it Messages.resx ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required