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

Make ProjectShouldBuild public #7992

Closed
wants to merge 2 commits into from
Closed

Conversation

Forgind
Copy link
Member

@Forgind Forgind commented Sep 20, 2022

Context

NuGet wants to access whether a particular project was filtered out by a solution filter file. They had previously called SolutionFile.Parse. We have a ProjectShouldBuild method that can be called on a SolutionFile. This makes that method public, hence accessible.

@@ -252,8 +252,9 @@ internal string SolutionFileDirectory

#region Methods

internal bool ProjectShouldBuild(string projectFile)
public bool ProjectShouldBuild(string projectFile)
Copy link
Contributor

Choose a reason for hiding this comment

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

@mrward is this something we might be able to use in vsmac as well?

Copy link

Choose a reason for hiding this comment

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

VS Mac has its own logic here - the project filtered out by the slnf file is not loaded and so would not be restored.

Copy link
Member Author

Choose a reason for hiding this comment

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

We ultimately decided this isn't the way to go, so it will remain risky to rely on ProjectShouldBuild staying as it is.

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