Skip to content

Comments

Add folder name to test weaver#1298

Merged
tom-englert merged 2 commits intomasterfrom
feature/1297-weaving-helper
Sep 14, 2024
Merged

Add folder name to test weaver#1298
tom-englert merged 2 commits intomasterfrom
feature/1297-weaving-helper

Conversation

@GeertvanHorrik
Copy link
Member

See #1297

bool runPeVerify = true,
Action<ModuleDefinition>? afterExecuteCallback = null,
Action<ModuleDefinition>? beforeExecuteCallback = null,
string? folderName = null,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you move this new parameter to the end, it should be fully backwards compatible

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have though about it. You mean behind the assemblyName or really at the end? On the long term, I think it's better to keep them together, but short-term would be best to add at the very end.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree the folderName parameter should be put at the very end, this avoids a breaking change.

Copy link
Member

@ltrzesniewski ltrzesniewski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had a very similar issue in InlineIL, and I had to basically rewrite WeaverTestHelper, so I completely understand the need for this change. 🙂

bool runPeVerify = true,
Action<ModuleDefinition>? afterExecuteCallback = null,
Action<ModuleDefinition>? beforeExecuteCallback = null,
string? folderName = null,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree the folderName parameter should be put at the very end, this avoids a breaking change.

@GeertvanHorrik
Copy link
Member Author

Updated the PR based on feedback. Thanks!

@tom-englert tom-englert merged commit 0713ecf into master Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants