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

Fix exception when searching for config file #4138

Merged
merged 1 commit into from
Apr 10, 2022

Conversation

olivercoad
Copy link
Contributor

Fixes #4137


/// Finds all project files
static member FindAllProjectFiles folder : FileInfo [] =
ProjectFile.SearchAllProjectRelatedFiles "*proj*" folder
Copy link
Member

Choose a reason for hiding this comment

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

that's not the same pattern as we did above, right? This would include "MyprojectFile.fs" or stuff like that

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the same as what it was originally (see L1902). Yes it would, but it gets filtered out anyway in the next line.

Do you think I should change it to "*.*proj"?

@@ -83,17 83,6 @@ let internal indentAssemblyBindings config =
if not parent.HasElements then
parent.Remove()

let private configFiles = [ "app"; "web" ] |> Set.ofList
let private projectFiles = [ ".csproj"; ".vbproj"; ".fsproj"; ".wixproj"; ".nproj"; ".vcxproj"; ".pyproj"; ".sfproj"; ".sqlproj" ] |> Set.ofList
Copy link
Member

Choose a reason for hiding this comment

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

I think we need to keep this ugly explicit list

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What for? It's private, not used anywhere, and is just a duplicating the list in ProjectFile.fs

Copy link
Member

Choose a reason for hiding this comment

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

wasn't this was filtered things to "*.*proj"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, not since aac9770

@olivercoad
Copy link
Contributor Author

Thanks for the quick merge and release!

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.

UnauthorizedAccessException when directory without read access exists
2 participants