Visual Studio 2015 (Community) designer shows NullReferenceException for blank Universal App

前端 未结 3 1473
温柔的废话
温柔的废话 2020-12-06 02:19

I\'m getting a bit frustrated by this, maybe someone has encountered a similar problem or has an idea how to fix it.

I upgraded to Windows 10.
I installed Visu

3条回答
  •  余生分开走
    2020-12-06 02:41

    I reported this to Microsoft via Visual Studio and they kindly got back to me with 2 suggestions and one of them worked, so I thought I'd share it here:

    1. Please see the following known issue and see if it helps resolve your problem: https://social.msdn.microsoft.com/Forums/en-US/f34da155-a4ad-4933-ba82-071de9c7c0b3/uwp-apps-fail-to-launch-and-xaml-designer-crashes-if-visual-studio-and-windows-store-apps-are-both?forum=Win10SDKToolsIssues

    2. If this doesn’t help, also try the following (replacing the path as appropriate):

      icacls "c:\Program Files (x86)\Windows Kits\10\UnionMetadata\Windows.winmd" /grant *S-1-15-2-1:(RX)

    Please note that I did not try the first suggestion as it didn't apply to me but the second one did resolve my problem. Make sure to run the above in a command line prompt with administrative rights.

    Hope this will help others facing the same problem.

提交回复
热议问题