Line endings #3499
Line endings
#3499
-
Is there a way to control whether ILSpy uses |
Beta Was this translation helpful? Give feedback.
Answered by
siegfriedpammer
Jun 23, 2025
Replies: 1 comment 1 reply
-
Depends on what you want to do. If you are creating a custom CSharpDecompiler or WholeProjectDecompiler, you can configure the For WholeProjectDecompiler: override If you want to make this easier to use, PRs welcome! :) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ds5678
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Depends on what you want to do. If you are creating a custom CSharpDecompiler or WholeProjectDecompiler, you can configure the
TextWriter
that is used.For WholeProjectDecompiler: override
CreateFile
. (I think you added that, thanks!)For CSharpDecompiler: do not use the convenience
Decompile...AsString
methods, use theSyntaxTree
instead and call theCSharpOutputVisitor
directly with a customTextWriter
.If you want to make this easier to use, PRs welcome! :)