I have this error message:
Inconsistent accessibility: property type 'Comm.Resources.AppResources' is less accessible than property 'Comm.Resources.LocalizedStrings.LocalizedResources'
I have done these :
1)) in App.xaml
< Application.Resources>
<local:LocalizedStrings xmlns:local="clr-namespace:Comm.Resources"
x:Key="LocalizedStrings"/>
</Application.Resources>
2) add this class LocalizedStrings in a Folder call Resources
namespace Comm.Resources
{
public class LocalizedStrings
{
public LocalizedStrings()
{ }
private static Comm.Resources.AppResources localizedResources = new Comm.Resources.AppResources();
public Comm.Resources.AppResources LocalizedResources { get { return localizedResources; } }
}
}
It means your AppResources
is probably internal by default, but you're exposing it via a public property. Either make AppResources
public (I'm not sure how to do that offhand, but the designer may well help you) or make the property internal.