【发布时间】:2014-05-26 06:41:49
【问题描述】:
我收到以下错误
Error 5 The "GenerateResource" task failed unexpectedly.
System.InvalidOperationException: Item named 'themes/generic.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 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 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()
WPAPP
我不知道出了什么问题?
【问题讨论】:
-
你检查过this
-
我已经检查过了,但我在同一平台 WP8 和 WP8.1 上工作,而不是在 Windows 8 上,这应该不会引起问题?
-
这个问题你解决了吗?我有非常相似的问题
标签: silverlight windows-phone-8 upgrade windows-phone-8.1