简体   繁体   English

Visual Studio 2015社区-XAML Desginer加载速度极慢

[英]Visual Studio 2015 Community - XAML Desginer extremely slow to load

I'm trying to create a WPF application, but when I open up the XAML designer view I get an exception which points to the ActivityLog.xml file. 我正在尝试创建WPF应用程序,但是当我打开XAML设计器视图时,出现了一个指向ActivityLog.xml文件的异常。 The error entry is show here: 错误条目显示在这里:

  <entry>
    <record>433</record>
    <time>2015/11/30 13:50:43.147</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>.NET Framework Version: 4.0.40305.0</description>
  </entry>
  <entry>
    <record>434</record>
    <time>2015/11/30 13:50:43.147</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>MSXML Version: 6.30.7601.18923</description>
  </entry>
  <entry>
    <record>435</record>
    <time>2015/11/30 13:50:47.206</time>
    <type>Information</type>
    <source>Extension Manager</source>
    <description>Searching folder for extension.vsixmanifest files...</description>
    <path>C:\Program Files (x86)\Microsoft SDKs</path>
  </entry>
  <entry>
    <record>436</record>
    <time>2015/11/30 13:50:47.262</time>
    <type>Information</type>
    <source>Extension Manager</source>
    <description>Extension is enabled...</description>
    <path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\1DSTIDTC.LPJ\</path>
  </entry>
  <entry>
    <record>437</record>
    <time>2015/11/30 13:54:46.274</time>
    <type>Error</type>
    <source>Editor or Editor Extension</source>
    <description>System.NotSupportedException: Required  Service &apos;ITypeResolverService&apos; not found.&#x000D;&#x000A;   at Microsoft.VisualStudio.DesignTools.DesignerHost.HostServices.ServiceProviderExtensions.GetRequiredService[T](IServiceProvider serviceProvider, Type serviceType)&#x000D;&#x000A;   at Microsoft.VisualStudio.DesignTools.Xaml.LanguageService.XamlFileInformationService.CreateFileInformationContext(IHostSourceItem sourceItem)&#x000D;&#x000A;   at Microsoft.VisualStudio.DesignTools.Xaml.LanguageService.XamlLanguageService.EnsureBufferCache(IVsTextLines textLines)&#x000D;&#x000A;   at Microsoft.VisualStudio.DesignTools.Xaml.LanguageService.XamlLanguageService.EnsureBufferCache(IVsTextView view)&#x000D;&#x000A;   at Microsoft.VisualStudio.DesignTools.Xaml.LanguageService.XamlSource.BeginParse(Int32 line, Int32 idx, TokenInfo info, ParseReason reason, IVsTextView view, ParseResultHandler callback)&#x000D;&#x000A;   at Microsoft.VisualStudio.Package.ViewFilter.GetDataTipText(TextSpan[] aspan, String&amp; textValue)&#x000D;&#x000A;   at Microsoft.VisualStudio.Editor.Implementation.ShimQuickInfoSource.TryGetQuickInfoFromFilter(IQuickInfoSession session, TextSpan[] dataBufferTextSpan, String&amp; tipText)&#x000D;&#x000A;   at Microsoft.VisualStudio.Editor.Implementation.ShimQuickInfoSource.AugmentQuickInfoSession(IQuickInfoSession session, IList`1 qiContent, ITrackingSpan&amp; applicableToSpan)&#x000D;&#x000A;   at Microsoft.VisualStudio.Language.Intellisense.Implementation.QuickInfoSession.Recalculate()&#x000D;&#x000A;   at Microsoft.VisualStudio.Language.Intellisense.Implementation.QuickInfoSession.Start()&#x000D;&#x000A;   at Microsoft.VisualStudio.Language.Intellisense.Implementation.DefaultQuickInfoController.OnTextView_MouseHover(Object sender, MouseHoverEventArgs e)&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.RaiseHoverEvents()</description>
  </entry>
  <entry>
    <record>438</record>
    <time>2015/11/30 13:54:51.921</time>
    <type>Error</type>
    <source>Editor or Editor Extension</source>
    <description>System.NotSupportedException: Required  Service &apos;ITypeResolverService&apos; not found.&#x000D;&#x000A;   at Microsoft.VisualStudio.DesignTools.DesignerHost.HostServices.ServiceProviderExtensions.GetRequiredService[T](IServiceProvider serviceProvider, Type serviceType)&#x000D;&#x000A;   at Microsoft.VisualStudio.DesignTools.Xaml.LanguageService.XamlFileInformationService.CreateFileInformationContext(IHostSourceItem sourceItem)&#x000D;&#x000A;   at Microsoft.VisualStudio.DesignTools.Xaml.LanguageService.XamlLanguageService.EnsureBufferCache(IVsTextLines textLines)&#x000D;&#x000A;   at Microsoft.VisualStudio.DesignTools.Xaml.LanguageService.XamlLanguageService.EnsureBufferCache(IVsTextView view)&#x000D;&#x000A;   at Microsoft.VisualStudio.DesignTools.Xaml.LanguageService.XamlSource.BeginParse(Int32 line, Int32 idx, TokenInfo info, ParseReason reason, IVsTextView view, ParseResultHandler callback)&#x000D;&#x000A;   at Microsoft.VisualStudio.Package.ViewFilter.GetDataTipText(TextSpan[] aspan, String&amp; textValue)&#x000D;&#x000A;   at Microsoft.VisualStudio.Editor.Implementation.ShimQuickInfoSource.TryGetQuickInfoFromFilter(IQuickInfoSession session, TextSpan[] dataBufferTextSpan, String&amp; tipText)&#x000D;&#x000A;   at Microsoft.VisualStudio.Editor.Implementation.ShimQuickInfoSource.AugmentQuickInfoSession(IQuickInfoSession session, IList`1 qiContent, ITrackingSpan&amp; applicableToSpan)&#x000D;&#x000A;   at Microsoft.VisualStudio.Language.Intellisense.Implementation.QuickInfoSession.Recalculate()&#x000D;&#x000A;   at Microsoft.VisualStudio.Language.Intellisense.Implementation.QuickInfoSession.Start()&#x000D;&#x000A;   at Microsoft.VisualStudio.Language.Intellisense.Implementation.DefaultQuickInfoController.OnTextView_MouseHover(Object sender, MouseHoverEventArgs e)&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.RaiseHoverEvents()</description>
  </entry>
</activity>

Here is the exception details by itself: 这是单独的异常详细信息:

System.NotSupportedException: Required  Service &apos;ITypeResolverService&apos; not found.&#x000D;&#x000A; 
       at Microsoft.VisualStudio.DesignTools.DesignerHost.HostServices.ServiceProviderExtensions.GetRequiredService[T](IServiceProvider serviceProvider, Type serviceType)&#x000D;&#x000A;
       at Microsoft.VisualStudio.DesignTools.Xaml.LanguageService.XamlFileInformationService.CreateFileInformationContext(IHostSourceItem sourceItem)&#x000D;&#x000A;
       at Microsoft.VisualStudio.DesignTools.Xaml.LanguageService.XamlLanguageService.EnsureBufferCache(IVsTextLines textLines)&#x000D;&#x000A;
       at Microsoft.VisualStudio.DesignTools.Xaml.LanguageService.XamlLanguageService.EnsureBufferCache(IVsTextView view)&#x000D;&#x000A;
       at Microsoft.VisualStudio.DesignTools.Xaml.LanguageService.XamlSource.BeginParse(Int32 line, Int32 idx, TokenInfo info, ParseReason reason, IVsTextView view, ParseResultHandler callback)&#x000D;&#x000A;
       at Microsoft.VisualStudio.Package.ViewFilter.GetDataTipText(TextSpan[] aspan, String&amp; textValue)&#x000D;&#x000A;
       at Microsoft.VisualStudio.Editor.Implementation.ShimQuickInfoSource.TryGetQuickInfoFromFilter(IQuickInfoSession session, TextSpan[] dataBufferTextSpan, String&amp; tipText)&#x000D;&#x000A;
       at Microsoft.VisualStudio.Editor.Implementation.ShimQuickInfoSource.AugmentQuickInfoSession(IQuickInfoSession session, IList`1 qiContent, ITrackingSpan&amp; applicableToSpan)&#x000D;&#x000A;
       at Microsoft.VisualStudio.Language.Intellisense.Implementation.QuickInfoSession.Recalculate()&#x000D;&#x000A;
       at Microsoft.VisualStudio.Language.Intellisense.Implementation.QuickInfoSession.Start()&#x000D;&#x000A;
       at Microsoft.VisualStudio.Language.Intellisense.Implementation.DefaultQuickInfoController.OnTextView_MouseHover(Object sender, MouseHoverEventArgs e)&#x000D;&#x000A;
       at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.RaiseHoverEvents()

After taking a few minutes to load and giving me this exception, the designer view will function but it is so slow that it is virtually unusable, and will make my whole VS session lag (It corrects itself when the designer view is closed). 在花了几分钟时间加载并给了我这个例外之后,designer视图将起作用,但是它是如此之慢以至于它几乎无法使用,并且将使我的整个VS会话滞后(当关闭Designer视图时,它会自行纠正)。

I'm not experienced in XAML, so I need a way to visualize as I create. 我没有XAML经验,因此我需要一种在创建时可视化的方法。 Is there a way I can fix this, or a free extension that I can use instead? 有什么办法可以解决这个问题,或者可以使用免费的扩展程序代替吗?

Fixed! 固定! This was done by uninstalling .NET 4.6, installing .NET 4, reinstalling Windows SDK, and then reinstalling all the necessary .NET packages. 这是通过卸载.NET 4.6,安装.NET 4,重新安装Windows SDK,然后重新安装所有必需的.NET软件包来完成的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM