[tools] Add a tool to decompress XA-compressed assemblies - #5536
Conversation
| <OutputPath>../../bin/$(Configuration)/bin</OutputPath> | ||
| <OutputType>Exe</OutputType> | ||
| <LibZipSharpBundleAllNativeLibraries>true</LibZipSharpBundleAllNativeLibraries> | ||
| <LangVersion>$(LangVersion)</LangVersion> |
There was a problem hiding this comment.
I don't think you need to set $(LangVersion) with $(LangVersion).
This imports Configuration.props, so I think it would get the value you want;
| continue; | ||
| } | ||
|
|
||
| if (String.Compare (".apk", ext, StringComparison.OrdinalIgnoreCase) == 0) { |
There was a problem hiding this comment.
This can be handy to extend to handle .aab files as well.
There was a problem hiding this comment.
Support for AAB added :)
|
Should we add this tool to the installer? |
|
I would suggest the opposite: remove it from I think the last thing we want to do it add another one-off tool to our maintenance burden. |
There's two related considerations, which also apply to PR #5541:
I think the more important question is one of "tying": if "something internal" changes in this repo, will the tool need to be updated? In the case of In both cases, having the utility in the same tree makes it easier to review the changes and ensure that the tool continues to work. Compare to |
95cef48 to
2312881
Compare
The utility is named `decompress-assemblies` and takes as its parameters a list of files to decompress. The files might be either `.apk` archives or `.dll` files. I case of `.apk`, managed assemblies stored in the `assemblies/` directory inside the APK will be read and decompressed. The uncompressed result is stored in the current directory with the original assembly name modified to contain the `uncompressed-` prefix, in order to prevent accidental overwriting of assemblies found in the current directory.
2312881 to
72083cd
Compare
The utility is named
decompress-assembliesand takes as itsparameters a list of files to decompress. The files might be either
.apkarchives or.dllfiles.I case of
.apk, managed assemblies stored in theassemblies/directory inside the APK will be read and decompressed.
The uncompressed result is stored in the current directory with the
original assembly name modified to contain the
uncompressed-prefix,in order to prevent accidental overwriting of assemblies found in the
current directory.