Skip to content

Commit

Permalink
fix test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Jun 13, 2017
1 parent 83f73a8 commit 120d645
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Paket.Core/PaketConfigFiles/ProjectFile.fs
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,11 @@ type ProjectFile =

[<CompilationRepresentation(CompilationRepresentationFlags.ModuleSuffix)>]
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

Expand Down

0 comments on commit 120d645

Please sign in to comment.