E_APP_EXECUTABLE_NOT_FOUND使用DesktopAppConverter转换应用程序时出错 [英] E_APP_EXECUTABLE_NOT_FOUND Error when converting an app using DesktopAppConverter
问题描述
尝试使用DesktopAppConvert将我的WPF应用程序转换为UWP时 我在标题中收到错误。我使用以下命令:
DesktopAppConverter.exe -Installer C:\ Users \ferst\Desktop\PPS_MapTool -AppExecutable C :\Users\ferst\Desktop\PPS_MapTool\PPSMapTool.exe -Destination C:\Users\ferst\Desktop\PPS_MapTool_converted -PackageName PPSMapToolConverted -Publisher" PPS" -Version
1.0.0.0 -MakeAppx -Verbose -Sign
.exe defenitly的路径存在。这是我得到的完整错误记录。有什么想法吗?
PowerShell错误记录:
DesktopAppConverter:错误'E_APP_EXECUTABLE_NOT_FOUND':
PowerShell的堆栈跟踪:
贝RaiseUserException,C:\Program
Files\WindowsApps\Microsoft.DesktopAppConverter_2.1.0.0_x64__8wekyb3d8bbwe\converter_util\ DACLogger.ps1:Zeile 158
贝RaiseUserException,C:\Program
Files\WindowsApps\Microsoft.DesktopAppConverter_2.1.0.0_x64__8wekyb3d8bbwe\converter_util\DACLogger。 PS1:Zeile 127
贝ValidateAppExecutableInAppDir,C:\Program
Files\WindowsApps\Microsoft.DesktopAppConverter_2.1.0.0_x64__8wekyb3d8bbwe\converter_util\InputValidation.ps1: Zeile
181
bei< ScriptBlock>< Process>,C:\Program
Files\WindowsApps\Microsoft.DesktopAppConverter_2 .1.0.0_x64__8wekyb3d8bbwe\DesktopAppConverter.ps1:Zeile 455
bei < ScriptBlock>,< Keine Datei>:Zeile 1
内部例外[0]:
System.Management.Automation.RuntimeException :DesktopAppConverter:错误'E_APP_EXECUTABLE_NOT_FOUND':
bei System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext,Exception
例外)
bei System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
$
内部异常堆栈跟踪[0]
bei System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext,Exception
例外)
bei System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
贝System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame帧)
AUSFÜHRLICH:完整的错误记录在
C保存在日志中:\DesktopAppConverter\\ \\5a571a61-935b-41FE-9621-b3b51d47bb4e\logs
C:\Program Files\WindowsApps\Microsoft.DesktopAppConverter_2.1.0.0_x64__8wekyb3d8bbwe\DesktopAppConverter.ps1:
DesktopAppConverter:错误'E_APP_EXECUTABLE_NOT_FOUND':
在Zeile:1 Zeichen:1
+&'C:\Program Files \ WindowsApps \ Microsoft。 DesktopAppConverter_2.1.0.0_ ... ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo :NotSpecified :( :) [Write-Error],WriteErrorException
+ FullyQualifiedErrorId:Microsoft.PowerShell.Commands.WriteErrorException,DesktopAppConverter.ps1
欢迎
到开发通用Windows应用论坛 !请使用 标记 当
发布到这个论坛时,谢谢!
首先请确保
DesktopAppConvert以管理员身份运行。
在您想要打包应用程序之前还有一些准备工作。喜欢:如果y 我们的
应用程序使用的是。 NET早于4.6.1,您需要将其重新定位到.NET 4.6.1。和其他一些要求。
请查看此链接,了解有关如何使您的应用为包装过程做好准备所需的更多信息:
https://docs.microsoft.com/en-us/windows/uwp/porting/desktop-to-uwp-prepare
最好的问候,
Roy 跨度>
When trying to convert my WPF application to UWP using DesktopAppConvert I get the error in the title. I used the following command:
DesktopAppConverter.exe -Installer C:\Users\ferst\Desktop\PPS_MapTool -AppExecutable C:\Users\ferst\Desktop\PPS_MapTool\PPSMapTool.exe -Destination C:\Users\ferst\Desktop\PPS_MapTool_converted -PackageName PPSMapToolConverted -Publisher "PPS" -Version 1.0.0.0 -MakeAppx -Verbose -Sign
The path to the .exe defenitly exists. This is the complete error record I get. Any ideas?
PowerShell Error Record:
DesktopAppConverter : error 'E_APP_EXECUTABLE_NOT_FOUND':
PowerShell Stack Trace:
bei RaiseUserException, C:\Program
Files\WindowsApps\Microsoft.DesktopAppConverter_2.1.0.0_x64__8wekyb3d8bbwe\converter_util\DACLogger.ps1: Zeile 158
bei RaiseUserException, C:\Program
Files\WindowsApps\Microsoft.DesktopAppConverter_2.1.0.0_x64__8wekyb3d8bbwe\converter_util\DACLogger.ps1: Zeile 127
bei ValidateAppExecutableInAppDir, C:\Program
Files\WindowsApps\Microsoft.DesktopAppConverter_2.1.0.0_x64__8wekyb3d8bbwe\converter_util\InputValidation.ps1: Zeile
181
bei <ScriptBlock><Process>, C:\Program
Files\WindowsApps\Microsoft.DesktopAppConverter_2.1.0.0_x64__8wekyb3d8bbwe\DesktopAppConverter.ps1: Zeile 455
bei <ScriptBlock>, <Keine Datei>: Zeile 1
Inner Exception[0]:
System.Management.Automation.RuntimeException: DesktopAppConverter : error 'E_APP_EXECUTABLE_NOT_FOUND':
bei System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception
exception)
bei System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
Inner Exception Stack Trace[0]
bei System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception
exception)
bei System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
AUSFÜHRLICH: The full error record is saved in the logs at
C:\DesktopAppConverter\5a571a61-935b-41fe-9621-b3b51d47bb4e\logs
C:\Program Files\WindowsApps\Microsoft.DesktopAppConverter_2.1.0.0_x64__8wekyb3d8bbwe\DesktopAppConverter.ps1 :
DesktopAppConverter : error 'E_APP_EXECUTABLE_NOT_FOUND':
In Zeile:1 Zeichen:1
+ &'C:\Program Files\WindowsApps\Microsoft.DesktopAppConverter_2.1.0.0_ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,DesktopAppConverter.ps1
Welcome to the Developing Universal Windows apps forum! Please utilize tagging when posting to this forum, thanks!
First please ensure the DesktopAppConvert is running as administrator.
There are also some preparations before you want to package your app. Like: If your app uses a version of .NET earlier that 4.6.1, you will need to retarget it to .NET 4.6.1. and some other requirements.
Please check this link for more information about what you need to do to get your app ready for the packaging process: https://docs.microsoft.com/en-us/windows/uwp/porting/desktop-to-uwp-prepare
Best regards,
Roy
这篇关于E_APP_EXECUTABLE_NOT_FOUND使用DesktopAppConverter转换应用程序时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!