【发布时间】:2017-10-24 11:09:47
【问题描述】:
看起来像VS2017 15.4 Preview "Windows Application Packaging Project" tool failed to generate a working app,但不一样:
我有一个 WAP 项目添加到我的 WPF 应用程序中。 WAP 与商店相关联。当我点击创建包时,它说:
错误您的 project.json 未将“win10”列为目标运行时。您应该在 project.json 的“运行时”部分中添加 '"win10": { }',然后重新运行 NuGet 还原。 WapProject C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\NuGet\15.0\Microsoft.NuGet.targets 307
但是WAP项目默认没有projects.json...
当我单击解决方案并管理 nuget 包时,会出现此合并选项,因为旧的类库使用 json.net 5.x(因为 jObject 等)而 wpf 应用程序有 10.x
主要的 wpf 应用程序确实构建并运行良好。创建包是个问题。
编辑:双击错误将我带到:
<ResolveNuGetPackageAssets Condition="Exists('$(FrameworkInjectionLockFile)')"
NuGetPackagesDirectory="$(FrameworkInjectionPackagesDirectory)"
RuntimeIdentifier="$(NuGetRuntimeIdentifier)"
TargetMonikers="$(NuGetTargetMonikerToInject)"
ProjectLockFile="$(FrameworkInjectionLockFile)">
手动添加 project.json 到 WAP 项目没有修复它:
{
"runtimes": {
"win10": {},
"win10-arm": {},
"win10-arm-aot": {},
"win10-x64": {},
"win10-x64-aot": {},
"win10-x86": {},
"win10-x86-aot": {}
}
}
edit2 合并了 nuget 包。 wpf 应用程序构建,类库构建。 wap 项目没有:
错误 APPX0501 验证错误。错误 80080204:应用程序清单验证错误:第 24 行,第 6 列,原因:Windows.FullTrustApplication 入口点仅对 minVersion >= 10.0.14257.0 的 UWP 桌面应用程序有效。 WapProject C:\Users\blabla\Source\Workspaces\WapProject\bin\x86\Debug\AppxManifest.xml 1
这是第 24 行:
<Application Id="App" Executable="WapProject.exe" EntryPoint="Windows.FullTrustApplication">
edit3 转到 wapp 的属性并从周年更新 14933 移动到创建者更新,我现在可以创建包了。所以解决了。但是如何以及为什么?
【问题讨论】:
-
这是预览版中的一个已知问题。您可以尝试使用最新的 Visual Studio 2017 Update 4 (15.4.1) 吗?
-
现在全部修复。正在等待我的开发帐户有足够的权限来添加软件包以进行商店提交。
-
您是否知道,获得批准需要多长时间?它没有给出预计到达时间。
-
如here 所述,应在 6 个工作日内与您联系
-
它通常比这快得多。请务必在注册后确认您的电子邮件地址。如果您仍未收到回复,请在此处告诉我。
标签: windows-store-apps desktop-bridge