c# - WP8 项目 : The "CompileXaml" task failed unexpectedly

标签 c# visual-studio windows-phone-8 windows-phone

我在计算机上重新安装了 Windows,在 Visual Studio 2012 for Windows Phone 中打开任何 Windows Phone 8 项目后,我收到以下错误消息:

The "CompileXaml" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load file or assembly 'XamlServicesWP, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the specified file.
File name: 'XamlServicesWP, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

Server stack trace: 
   at Microsoft.Silverlight.Build.Tasks.CompileXaml.GenerateCode(ITaskItem item, Boolean isApplication)
   at Microsoft.Silverlight.Build.Tasks.CompileXaml.Execute()
   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)

Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at Microsoft.Build.Framework.ITask.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
    MyProject

重装Visual Studio两次都没有解决..

我该如何解决这个问题?

最佳答案

关于c# - WP8 项目 : The "CompileXaml" task failed unexpectedly,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23995605/

相关文章:

c# - 如何限制在C# Selenium 中运行的线程

c# - DockPanelSuite 的 DockState 和 AutoHide

c# - 放一个类名=命名空间,在使用

c# - 如何使用 Json.Net 反序列化枚举数组?

c# - Windows Phone 8 替换默认表情符号

javascript - Azure 移动服务 : Get Server DateTime and compare it

c# - 没有排序顺序的 SQL Server 唯一约束

c# - 很难理解 Stack Trace

visual-studio - SSIS OData 源在 Visual Studio 2017 中工作,但在 Azure 数据工厂中运行时失败

c# - 避免 CopyFilesToOutputDirectory 构建步骤