Silverlight MVVM Business Application: Where to place resource files?

The default Silverlight business application (VS2010) creates some resource files (ValidationErrorResources.resx and RegistrationDataResources.resx) in the web project and creates links to them in the Silverlight project.

But there are also some resource files in the clientโ€™s Silverlight project (ApplicationStrings.resx and ErrorResources.resx)

I would like to implement the following design:

Client

  • Presentation.Silverlight (xaml only)
  • Presentation.ViewModel (ViewModels
  • Presentation.Domain (Objects and links to validation resource files)

Server

  • Server.Infra (entity infrastructure)
  • Server.Domain (POCO objects + repositories + validation resource files)
  • Server.Web (Web Applicatin project)

My question is: where to put resource files with translations from labels for presentation level?

: Presentation.Silverlight, Presentation.ViewModel Presentation.Domain???

+3
1

Itb ! , ... , ... .. -.

, .

+1

Source: https://habr.com/ru/post/1756199/


All Articles