问题描述
尝试使用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
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
这篇关于E_APP_EXECUTABLE_NOT_FOUND使用DesktopAppConverter转换应用程序时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!