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

Revert "Add support for user-supplied project file detection" #2687

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

adamsitnik
Copy link
Member

This PR Reverts #2684

I appreciate the contribution, but the design is overcomplicated. I have done similar things in the past, but have learned from mistakes (the hard way). I believe thaat we should put more effort into introducing new public API and ideally follow rules described in Framework Design Guidelines: Conventions, Idioms, and Patterns for Reusable .Net Libraries book.

It introduced a new interface (with a single method), a class (to represent two arguments) and an enum (with a single value). All of that could have been just a lambda. Example: Func<BenchmarkCase, ILogger, FileInfo?>. I know that it was done for the sake of extensibility, but it's a niche feature request and we simply don't need that.

It introduced the ability to customize a project file path outside of a toolchain, which so far was always responsible for that (via virtual method). At the same time, it introduced a possibility to specify multiple locators with no clear separation of which is used for given toolchain.

I believe that this responsibility should stay within the toolchains. Generators to be exact. And if we want to make it customizable, we should allow for providing the path via command line arguments.

cc @timcassell

@timcassell
Copy link
Collaborator

Sounds fine to me. It could also be passed as a parameter in NetCoreAppSettings.

cc @Genbox If you want to take another stab at it taking @adamsitnik's comments into account.

@timcassell timcassell merged commit 804482d into master Jan 7, 2025
14 checks passed
@timcassell timcassell deleted the revert-2684-master branch January 7, 2025 19:02
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.

2 participants