2016-06-26 25 views
1

我的UWP项目中的XAML设计器未加载。它给出了以下错误。XAML Designer未加载并给出System.TypeLoadException异常

System.TypeLoadException 
Method 'GetStylePropertyTargetType' in type 'Microsoft.VisualStudio.DesignTools.WindowsXamlDesigner.Metadata.WindowsUIXamlPlatformMetadata' from assembly 'Microsoft.VisualStudio.DesignTools.UniversalXamlDesigner, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' does not have an implementation. 

at Microsoft.VisualStudio.DesignTools.WindowsXamlDesigner.WindowsStoreXamlPlatform..ctor(IPlatformRuntimeAssemblyResolver platformRuntimeAssemblyResolver, IPlatformReferenceAssemblyResolver platformReferenceAssemblyResolver) 

在Microsoft.VisualStudio.DesignTools.WindowsPhoneXamlDesigner.WindowsPhoneXamlPlatform..ctor(IPlatformRuntimeAssemblyResolver platformRuntimeAssemblyResolver,IPlatformReferenceAssemblyResolver platformReferenceAssemblyResolver) 在Microsoft.VisualStudio.DesignTools.UniversalXamlDesigner.UniversalXamlPlatformCreator.CreatePlatformImpl(IPlatformReferenceAssemblyResolver referenceAssemblyResolver,IPlatformRuntimeAssemblyResolver runtimeAssemblyResolver) 微软.VisualStudio.DesignTools.WindowsXamlDesigner.WindowsStoreXamlPlatformCreator.CreatePlatformInternal(IPlatformReferenceAssemblyResolver referenceAssemblyResolver) at Microsoft.VisualStudio.DesignTools.Platform.Platfo rmCreatorBase.CreatePlatform(IPlatformReferenceAssemblyResolver referenceAssemblyResolver) 在Microsoft.VisualStudio.DesignTools.Designer.Project.ProjectContextManager.GetProjectContext(IHostProject项目,IPlatform平台,布尔创建) 在Microsoft.VisualStudio.DesignTools.Designer.Project.ProjectContextManager.GetSourceItemContext(IHostSourceItem sourceItem ) at Microsoft.VisualStudio.DesignTools.Designer.DesignerService.CreateDesigner(IHostSourceItem item,IHostTextEditor editor,CancellationToken cancelToken) at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.RemoteDesignerService。 <> c__DisplayClass12_0.b__0(CancellationToken cancelToken) at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.RemoteDesignerService。 <> c__DisplayClass6_0`1.b__0() 在Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()

有人能帮助我吗?

我试过所有类似问题的解决方案,但仍然没有结果。

回答

0

当他们提到here

程序和功能 - >微软VS2015 - >选择更改 - >转到修改,并检查是否确实安装了SDK V1.3。如果它没有尝试安装它并仔细检查安装文件,并确保现在安装了sdk v1.3。如果不是反复安装,一遍又一遍地检查是否成功。如果你最终成功安装SDK v1.3,你的XAML设计者问题肯定会消失

所以这个问题可以通过安装SDK v1.3来解决,确保你安装了它,我强烈建议你在安装SDK后修复Visual Studio。

相关问题