我的UWP项目中的XAML Designer未加载。它给出了以下错误。
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)
at Microsoft.VisualStudio.DesignTools.WindowsPhoneXamlDesigner.WindowsPhoneXamlPlatform..ctor(IPlatformRuntimeAssemblyResolver platformRuntimeAssemblyResolver,IPlatformReferenceAssemblyResolver platformReferenceAssemblyResolver) 在Microsoft.VisualStudio.DesignTools.UniversalXamlDesigner.UniversalXamlPlatformCreator.CreatePlatformImpl(IPlatformReferenceAssemblyResolver referenceAssemblyResolver,IPlatformRuntimeAssemblyResolver runtimeAssemblyResolver) 在Microsoft.VisualStudio.DesignTools.WindowsXamlDesigner.WindowsStoreXamlPlatformCreator.CreatePlatformInternal(IPlatformReferenceAssemblyResolver referenceAssemblyResolver) 在Microsoft.VisualStudio.DesignTools.Platform.PlatformCreatorBase.CreatePlatform(IPlatformReferenceAssemblyResolver referenceAssemblyResolver) 在Microsoft.VisualStudio.DesignTools.Designer.Project.ProjectContextManager.GetProjectContext(IHostProject项目,IPlatform平台,布尔创建) 在Microsoft.VisualStudio.DesignTools.Designer.Project.ProjectContextManager.GetSourceItemContext(IHostSourceItem sourceItem) 在Microsoft.VisualStudio.DesignTools.Designer.DesignerService.CreateDesigner(IHostSourceItem项目,IHostTextEditor编辑器,CancellationToken cancelToken) 在Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.RemoteDesignerService。<> c__DisplayClass12_0.b__0(CancellationToken cancelToken) 在Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.RemoteDesignerService。<> c__DisplayClass6_0`1.b__0() 在Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()
有人可以帮助我吗?
我尝试了所有类似问题中提供的解决方案,但仍然没有结果。
答案 0 :(得分:0)
他们提到here
程序和功能 - > Microsoft VS2015 - >选择更改 - >转到修改并检查是否确实安装了SDK v1.3。如果它没有尝试安装它并仔细检查安装文件并确保现在安装了sdk v1.3。如果不是安装,反复检查,最后是成功。如果您最终成功安装SDK v1.3,您的XAML设计器问题肯定会消失
所以安装SDK v1.3可以解决这个问题,请确保安装它,我强烈建议您在安装SDK后修复Visual Studio。