Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support generating SDK style projects from console #366

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions dnSpy/dnSpy.Console/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ sealed class DnSpyDecompiler : IMSBuildProjectWriterLogger {
bool createResX = true;
bool decompileBaml = true;
bool colorizeOutput;
bool generateSDKStyleProjects;
Guid projectGuid = Guid.NewGuid();
int numThreads;
int mdToken;
Expand Down Expand Up @@ -478,6 +479,10 @@ void ParseCommandLine(string[] args) {
case "--recursive":
isRecursive = true;
break;

case "--generateSDKStyleProjects":
generateSDKStyleProjects = true;
break;

case "-o":
case "--output-dir":
Expand Down Expand Up @@ -750,6 +755,7 @@ void Decompile() {
options.CreateDecompilerOutput = textWriter => new TextWriterDecompilerOutput(textWriter, GetIndenter());
if (createSlnFile && !string.IsNullOrEmpty(slnName))
options.SolutionFilename = slnName;
options.GenerateSDKStyleProjects = generateSDKStyleProjects;
var creator = new MSBuildProjectCreator(options);
creator.Create();
}
Expand Down