VS2017 15.4 预览版《Windows 应用程序打包项目》工具无法生成工作应用程序 [英] VS2017 15.4 Preview "Windows Application Packaging Project" tool failed to generate a working app

查看:25
本文介绍了VS2017 15.4 预览版《Windows 应用程序打包项目》工具无法生成工作应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我添加了 vs2017 15.4 预览版附带的新Windows 应用程序打包项目".

I added the new "Windows Application Packaging Project" that comes with vs2017 15.4 preview.

将我的项目添加到应用程序"并调试打包项目时出现以下错误:

When adding my project to the "Applications" and debugging the packaging project I have the following error:

System.IO.FileNotFoundException: '无法加载文件或程序集'System.Runtime,版本=4.1.2.0,文化=中性,PublicKeyToken=b03f5f7f11d50a3a' 或其依赖项之一.这系统找不到指定的文件.'

System.IO.FileNotFoundException: 'Could not load file or assembly 'System.Runtime, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.'

InnerException: FileNotFoundException: 无法加载文件或程序集'System.Runtime,版本=4.0.0.0,文化=中性,PublicKeyToken=b03f5f7f11d50a3a' 或其依赖项之一.这系统找不到指定的文件.

InnerException: FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

如果我直接调试它或直接使用EXE运行它,我的项目运行完美.

My project is running perfectly if I debug it directly or run it directly using the EXE.

如果我从 .appxbundle 中提取文件并尝试启动 EXE,它也不起作用.(XXXXXX.appxbundle\XXXXXX.appx\*.*)

If I extract the files from the .appxbundle and try to start the EXE, it doesn't work either. (XXXXXX.appxbundle\XXXXXX.appx\*.*)

我注意到在提取的 .appxbundle 文件夹中,所有 System.XXX DLL 都不存在.它们应该是(缺少 94 个 dll).

I noticed that in the extracted .appxbundle folder, all System.XXX DLLs are not there. They should be (94 dlls are missing).

打包工具有问题吗?

更新:

链接到开发门户:https://developercommunity.visualstudio.com/content/problem/122252/windows-application-packaging-project-tool-failed.html

推荐答案

这很可能是打包项目收集文件的方式中的一个错误.看起来我们已经在跟踪开发人员中的这个错误社区.此外,我们正在跟踪 ClickOnce 的另一个相关问题.

This is very likely a bug in the way the packaging project is collecting files. Looks like we're already tracking this bug in the Developer Community. Also, we're tracking another related issue for ClickOnce.

这篇关于VS2017 15.4 预览版《Windows 应用程序打包项目》工具无法生成工作应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆