The name “LocalizedStrings” does not exist in the namespace

前端 未结 4 926
栀梦
栀梦 2021-01-02 01:07

I\'m suddenly getting this error in my WP8 project, which seems to originate from generated code. I have a previous working version and the App.xaml is identical.



        
4条回答
  •  轮回少年
    2021-01-02 01:41

    I also faced this issue. the root cause for my problem is as below.

    1) I referenced below in my code. but i haven't added the library( System.Xml.Serialization.xml). Add Reference and select System.Xml.Serialization.xml to include the dll.

    System.Xml.Serialization 
    

    2) I use an usercontrol called FileList.xaml in the mainwindow

    FileList.xaml

    
    

    But i didnt add the class which inherits from IMultiValueConverter

    MainWindow.xaml.cs(I missed the following code)

    public class time2str : IMultiValueConverter
    {
    
        public object Convert(object[] values, System.Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            ********************
        }
    
        public object[] ConvertBack(object value, System.Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new System.NotImplementedException();
        }
    }
    

提交回复
热议问题