diff --git a/src/Paket.Core/PaketConfigFiles/ProjectFile.fs b/src/Paket.Core/PaketConfigFiles/ProjectFile.fs index 56ab0933c0..e219b43e04 100644 --- a/src/Paket.Core/PaketConfigFiles/ProjectFile.fs +++ b/src/Paket.Core/PaketConfigFiles/ProjectFile.fs @@ -159,9 +159,11 @@ type ProjectFile = [] module ProjectFile = + let supportedEndings = [ ".csproj"; ".fsproj"; ".vbproj"; ".wixproj"; ".nproj"; ".vcxproj"] let isSupportedFile (fi:FileInfo) = - fi.Extension = ".csproj" || fi.Extension = ".fsproj" || fi.Extension = ".vbproj" || fi.Extension = ".wixproj" || fi.Extension = ".nproj" || fi.Extension = ".vcxproj" + supportedEndings + |> List.exists (fun e -> fi.Extension.Contains e) let name (projectFile:ProjectFile) = FileInfo(projectFile.FileName).Name