Visual Studio 2017 UWP Apps crash

2019-06-08 21:35发布

问题:

I have just installed Visual Studio 2017 Ent on Windows 10 (Creators update patch level)

After the installation UWP apps that I have developped no longer start. They crash with this error:

"Unable to activate Windows Store app. The xzy.exe process started, but the activation request failed with error 'The app didn't start'"

Event creating a new project with a blank UWP application produces the same error.

The failure happens before the App.xaml.cs init is called.

Has anyone else ancountered this issue, and if so - how was ti resolved?

Edit: after further testing - it woudl appear that apps installed through Windows App Store work ok. Any side loaded apps fail.

回答1:

I have managed to resolevd the issue by reinstalling the Microsoft.NET.CoreRuntime.1.1.appx and Microsoft.VCLibs.x64.Debug.14.00.appx dependencies from the app packages folder. Hope this will save someone some time.