Why isn't my shared resource file working in my Silverlight RIA project?

前端 未结 2 973
栀梦
栀梦 2021-01-27 06:54

I\'m working on a Silverlight project with the WCF RIA Services beta. I\'m using the BlahDomainService.metadata.cs file to validate a field by adding validation attributes, e.g

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-27 07:27

    Everything was okay except that I hadn't set the AccessModifier for the .resx to Public. Once I'd done that and Rebuilt All, it worked.

提交回复
热议问题