ILSpyCmd: Add the ability to generate a default decompiler settings file

オープン
#3,607 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
csharp
領域
cli

調査の方向性

この Issue では、ILSpyCmd と既存の --ilspy-settingsfile 引数をエントリーポイントとして特定しています。まず、そのオプションと、NuGet ベースのシリアライズ方式で使用されるデコンパイラー設定オブジェクトを追跡してください。デフォルトの出力形式とバージョン固有の動作を確認し、新しい引数によって、--ilspy-settingsfile に再度渡せる使用可能な設定ファイルが生成されることを検証してください。

索引モデルが issue の本文から書いたものです。

説明

Enhancement ILSpyCmd

Is your feature request related to a problem? Please describe.
The new ILSpyCmd (I am testing using 10.0.0.8079 preview) added a useful argument called --ilspy-settingsfile <path> (and another one to specify the settings one by one) which is very helpful, but I have a concern about knowing what a default settings file would look like. If I were to use this feature, I would at least need a way for ILSpy to generate me a default settings file so I can modify it later since I cannot know the format in advance.

Describe the solution you'd like
A new command line argument that generates a default settings file. I can then modify this file and use the aforementioned argument more easily. This would of course generate a file that is only guaranteed to work for this particular version of ILSpy, but so does the one that loads the file.

Additional context
I feel this is especially important because the format may change with each version. It's possible settings gets added, removed or renamed and I would like to have a way to get started on a default settings file so I can change what I want. As far as I can tell, this is only possible to do by using the nuget package version of ILSpy, create a new decompiler settings object and serialising that. That's...inconvenient. I don't count the main UI version of ILSpy because it's Windows only while I use Linux and as far as I can tell, doing what I just said is the only way to get a default settings file.

主要言語
C#
スター
27.1k
フォーク
3.8k
平均マージ
1日 23時間
マージ済み PR(30日)
44

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

icsharpcode/ILSpy のほかの issue

icsharpcode/ILSpy の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。