我添加了随vs2017 15.4预览版一起提供的新“Windows应用程序打包项目”。VS2017 15.4预览“Windows应用程序打包项目”工具无法生成工作应用程序
当添加我的项目“应用程序”和调试包装项目,我有以下错误:
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.
,如果我直接调试,或直接使用EXE运行它,我的项目是完美运行。
如果我从.appxbundle中提取文件并尝试启动EXE,它也不起作用。 (XXXXXX.appxbundle \ XXXXXX.appx \ *。*)
我注意到在提取的.appxbundle文件夹中,所有System.XXX DLL都不存在。他们应该是(缺少94个dll)。
包装工具有问题吗?
UPDATE:
您尝试将哪个项目用于新的包装项目?你能分享项目类型和目标框架吗? – rido
这是一个针对.Net框架的WPF项目4.7 – pellea
WPF 4.7应用程序不需要复制所有框架程序集。 .NET 4.7应该先安装在目标机器上。我无法使用默认的VS模板进行重现。你能分享你的repro吗?或步骤? – rido