VS2017 15.4 Preview “Windows Application Packaging Project” tool failed to generate a working app

不想你离开。 提交于 2019-12-23 05:02:23

问题


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: '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: 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.

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

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

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

Is there a problem with the packaging tool ?


UPDATE:

Link to dev portal: https://developercommunity.visualstudio.com/content/problem/122252/windows-application-packaging-project-tool-failed.html


回答1:


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.



来源:https://stackoverflow.com/questions/46178608/vs2017-15-4-preview-windows-application-packaging-project-tool-failed-to-gener

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!