2016-06-26 54 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。

相關問題