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=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the specified file.
File name: 'XamlServicesWP, Version=, 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].

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



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


c# - 如何编写 lambda 以基于对象中的另一个属性获取一个属性

.net - 您有任何提高 ReSharper 和/或 Visual Studio 性能的技巧吗?

visual-studio - 在 Visual Studio 中打开文件夹

windows-phone - 如何在 Windows Phone 8 模拟器中启动 Marketplace

windows-phone-7 - Windows Phone中最小化应用栏的高度是多少

c# - ASP.NET MVC - 验证表单输入

c# - JsonSerializationException 解析

c# - 跨线程交互C#

c++ - Git,SourceTree,VisualStudio和损坏的.cpp文件

c# - 在Windows Phone 8中解析XML