无法在Visual Studio 2015中构建通用应用

马特

我无法在Visual Studio 2015中构建Windows Universal Apps。该应用程序无法启动,并显示以下JIT调试器窗口:

发射后立即发生我找不到但仍会继续寻找的关于StackOverflow的类似问题。可能的修复方法之一是切换到目标8.1,然后再切换回去,但是对于任何通用应用程序,我都无法目标8.1。调试程序将揭示以下细节:

在APP_NAME.exe中的0x7523DAD8(KernelBase.dll)处引发的异常:0x04242420(参数:0x31415927、0x558B0000、0x004FF1D0)。

Unhandled exception at 0x00007FFF60BB1F28 (KernelBase.dll) in WWAHost.exe: 0x00000004: The system cannot open the file (parameters: 0xFFFFFFFF80004005, 0x0000000000000005).

WWAHost.exe has triggered a breakpoint.

我认为这与WinMD文件有关(特别是这一行)

<Error Condition="'$(_TargetPlatformMetadataPath)' == ''" Text="Could not find an existing platform WinMD location" />

But I'm not sure how to set the _TargetPlatformMetadataPath or anything like that or where it would be set.

Here is an image as well, as you can see the application fails to load entirely and displays a big X instead of any actual content: 应用程序无法加载Win32 / Kernel异常


Here's what I've tried:

  • Restart and Repair Visual Studio 2015
  • Remove, restart, reinstall Visual Studio 2015
  • System restore (uninstall apps and reinstall Windows 10)
  • Clean & Build Remove compile directories (bin)
  • Create a new project
  • Download a project/template
  • Enable Windows 10 Developer Mode
  • There is no nuget package config file

I can build other project types without any issue, it seems to only be an issue with Universal apps. I should also note, this issue occurs if the project is brand new or if I've added content to the apps UI. The designer also fails with System.Runtime.Remoting.RemotingException or a System.Runtime.InteropServices.COMException seemingly randomly.

I have not been able to find any truly similar issues anywhere. I can select Universal App as a project type, but if I click compile it fails no matter what. I'm at my wits end here and am open to any suggestions, thanks everyone.

Alexej Sommer

If nobody minds I'll post it like an answer (may be will be needed for someone else)

There was a bug in Windows 10 versions under Build 14295.

如果将“设置”-“系统”-“存储”中的默认保存位置磁盘从C更改为另一磁盘,则将无法在Visual Studio中调试UWP应用。

将系统升级到最新版本应该可以解决问题

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

在Visual Studio 2015中构建Windows 8存储应用

无法使用Visual Studio 2015 RC在Windows 8.1+通用应用程序中打开Windows Phone项目

无法在Visual Studio 2015中创建新的空白应用(Android)

无法卸载Visual Studio 2015

Visual Studio LightSwitch无法构建

应用程式无法在Visual Studio 2015的Android Visual Studio模拟器中执行

无法在Visual Studio 2015中安装Memcached

Visual Studio 2015中无法识别LocalDB

无法在 Visual Studio 2015 中运行迁移

在Visual Studio 2015中构建铬

在Visual Studio 2015中构建FLAC

无法使用Visual Studio 2015 Pro构建Boost 1.60

私有构建代理无法识别 Visual Studio 2015 Express

无法在Visual Studio 2015中使用“ AT TIME ZONE”构建SQL Server项目

C#Net无法发布项目,在Visual Studio 2015中成功构建

Visual Studio 2015中的应用扩展问题

当构建cordova应用程序visual studio 2015时,“此应用程序无法在您的PC上运行!”

在Visual Studio Online中构建Cordova应用

无法在设备上调试Android c ++应用(Visual Studio 2015)

Visual Studio 2015无法在设备中部署应用程序?

断点无法绑定-Visual Studio 2015

Visual Studio 2015无法识别参考

Visual Studio 2015 Intellisense无法正常工作

无法在Android Studio 2.1.1中构建应用

HoloLens无法构建Visual Studio 2017

无法在Visual Studio中安装Visual Studio 2019的PostSharp工具

Visual Studio 2015 C ++中的CLR应用程序(无法识别的代码?)

Visual Studio无法调试Android Xamarin应用

Visual Studio 无法发布 Web 应用