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

前端 未结 3 1461
温柔的废话
温柔的废话 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:32

    If you're using HP, this worked for me:

    delete the "Platform" environment variable in System->Advanced System Settings->Environment Variables ...

    In my case it said =HPD

    0 讨论(0)
  • 2020-12-06 02:37

    Have you enabled your device for development? I was suffering this issue until I had enabled it.

    Go to settings, then Update & security and then For Developers. Select Developer mode and you should be ok.

    Full list of instructions here: https://msdn.microsoft.com/en-us/library/windows/apps/dn706236.aspx

    Hope that helps!

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题