最新消息:ww12345678 的部落格重装上线,希望大家继续支持。

拆分.xpo文件 / Splitting .xpo files

网络文摘 William 1127浏览 0评论
I got an .xpo file from an older version of AX with some code of interest and because it had a few thousand lines, it wasn’t exactly easy to navigate. At least splitting it by object would make my life much easier. Fortunately I looked at the internet and found exactly the right tool for this task: xpoTools. It’s not well-documented, but what I needed didn’t require much anyway. After installation, I simply ran the following (Powershell) code:
cd c:\Temp\XPO\
ls *.xpo | Import-Xpo | Split-Xpo -Xpp
Import-Xpo parses xpo files to objects expected by Split-Xpo, which creates a file for every object. The -Xpp flag means that the result are not .xpo files, but rather more readable files with pure source code (without all those # characters and things like that). This might be the last time I used this tool, but it did help me today. As often, a single search on internet saved me a lot of time. Thank you, mazzy.
发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址