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

Review the way projects can be included/excluded from a solution #64

Open
hideintheclouds opened this issue Dec 10, 2023 · 1 comment
Open
Labels
good first issue Good for newcomers

Comments

@hideintheclouds
Copy link

When using the AnalyzerManager with a solution file path, the method has the ability to apply a ProjectFilter by using AnalyzerManagerOptions.
Using the optional parameter will allow for example for an exclusion of certain projects before they are added to the Workspace.

Example:

var managerOptions = new AnalyzerManagerOptions
        {
            ProjectFilter = x => !x.AbsolutePath.Contains("Tests")
        };
var solutionManager = new AnalyzerManager(solutionFilePath, managerOptions);
@eNeRGy164
Copy link
Owner

Good catch, not sure why I didn't use this before.

@eNeRGy164 eNeRGy164 added the good first issue Good for newcomers label Dec 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants