Using .NET language pack for DataAnnotations localization, how to add satellite assembly to project?

Viewed 683

I have a MVC app using MVC Validation and would like to use the localized messages for validation errors Microsoft has in their .NET Language Pack. The problem is I can't install the language pack on the destination server since it's Azure, but have manually extracted System.ComponentModel.DataAnnotations.Resources.dll from the language pack. Is there someway I can add this satellite assembly to my project?

Since satellite assemblies by default should be located relative to it's main assembly (I'm not sure if other locations are supported) I was wondering if anything from codeBase or probing could help? For example by copying System.ComponentModel.DataAnnotations.dll to the output bin folder and overcoming the default search order which I think favours GAC over application folder, or by allowing satellite assemblies to be found under application folder even though main dll is located somewhere else.

0 Answers
Related