" GenerateResource"任务意外失败

时间:2015-12-28 12:31:59

标签: sharepoint dll windows-phone-8.1 windows-phone

Windows 10,VS2013专业版 Window phone silverlight 8.1应用程序。

错误是:

The "GenerateResource" task failed unexpectedly.
System.InvalidOperationException: Item named 'xamls/simplelogin.xaml' of type 'System.IO.UnmanagedMemoryStream' cannot be added to the resource file because it is not serializable.
   at Microsoft.Build.Tasks.ProcessResourceFiles.WriteResources(ReaderInfo reader, IResourceWriter writer)
   at Microsoft.Build.Tasks.ProcessResourceFiles.WriteResources(ReaderInfo reader, String filename)
   at Microsoft.Build.Tasks.ProcessResourceFiles.ProcessFile(String inFile, String outFileOrDir)
   at Microsoft.Build.Tasks.ProcessResourceFiles.Run(TaskLoggingHelper log, ITaskItem[] assemblyFilesList, List`1 inputs, List`1 satelliteInputs, List`1 outputs, Boolean sourcePath, String language, String namespacename, String resourcesNamespace, String filename, String classname, Boolean publicClass, Boolean extractingResWFiles, String resWOutputDirectory)
   at Microsoft.Build.Tasks.ProcessResourceFiles.Run(TaskLoggingHelper log, ITaskItem[] assemblyFilesList, List`1 inputs, List`1 satelliteInputs, List`1 outputs, Boolean sourcePath, String language, String namespacename, String resourcesNamespace, String filename, String classname, Boolean publicClass, Boolean extractingResWFiles, String resWOutputDirectory)
   at Microsoft.Build.Tasks.GenerateResource.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext() CarManagerWpApp

当我删除&#34; Microsoft.Sharepoint.Client.Phone.Auth.UI&#34;参考,一切都很好。不幸的是,这个dll对我来说很重要。我见过很多&#34; The GenerateResource&#34;任务意外失败&#39;网上的错误,没有一个解决方案帮助了我。

任何人都有任何想法?谢谢

0 个答案:

没有答案