我正在使用SmartAssembly來處理通用代碼混淆以及應用程序中的錯誤報告。使用SmartAssembly自動記錄錯誤並終止應用程序
如果我的應用程序遇到未處理的異常,我希望異常被記錄下來,然後在沒有任何用戶交互的情況下終止應用程序。是否有可能創建一個允許這樣做的SmartAssembly項目?
我已經嘗試在SmartAssembly GUI以及the command-line上設置項目,但沒有運氣。下面是我嘗試過的命令和參數,但到目前爲止,我無法確定如何讓它終止應用程序並在沒有用戶輸入的情況下記錄錯誤。
創建SA項目:
"C:\Program Files\Red Gate\SmartAssembly 6\SmartAssembly.com"
/create shell.saproj input=C:\Repositories\MyApp\src\shell.exe
/output=shell.exe
/reportappname="MyTestApp"
/errorreportingtemplate=standard;continueonerror=false,email:"[email protected]"
/reportprojectname="Shell"
/reportcompanyname="My Company"
生成項目:
"C:\Program Files\Red Gate\SmartAssembly 6\SmartAssembly.com" /build shell.saproj
使用'auto'自動記錄錯誤,但我找不到正確的設置可以在沒有用戶交互的情況下額外終止應用 – jdhurst