看起来像VS2017 15.4 Preview "Windows Application Packaging Project" tool failed to generate a working app但它不同:Windows应用程序打包项目说我需要project.json for nuget?
我有一个WAP项目添加到我的WPF应用程序。 WAP与商店关联。当我点击创建包,它说:
Error Your project.json doesn't list 'win10' as a targeted runtime. You should add '"win10": { }' inside your "runtimes" section in your project.json, and then re-run NuGet restore. 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的项目不:
Error APPX0501 Validation error. error 80080204: App manifest validation error: Line 24, Column 6, Reason: Windows.FullTrustApplication entry points are only valid for UWP desktop applications whose minVersion >= 10.0.14257.0. 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移到创作者更新,我能创造包现在。所以它解决了。但是如何以及为什么?
这是在预览中的已知问题的正式版本15.4.1修正了一个问题。你可以尝试使用最新的Visual Studio 2017 Update 4(15.4.1)吗? – rido
现在全部修好了。等待我的开发者帐户拥有足够的权限来添加商店提交的软件包。 –
您是否知道得到批准需要多长时间?它没有提供ETA。 –