Skip to content

Commit

Permalink
Add fsi files as Compile by default
Browse files Browse the repository at this point in the history
  • Loading branch information
tpetricek committed Apr 5, 2016
1 parent 303ceaf commit 9f2107b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Paket.Core/ProjectFile.fs
Original file line number Diff line number Diff line change
Expand Up @@ -1156,6 +1156,7 @@ module ProjectFile =
match (Path.GetExtension fileName).ToLowerInvariant() with
| ext when Path.GetExtension project.FileName = ext + "proj"
-> BuildAction.Compile
| ".fsi" -> BuildAction.Compile
| ".xaml" -> BuildAction.Page
| ".ttf" | ".png" | ".ico" | ".jpg" | ".jpeg"| ".bmp" | ".gif"
| ".wav" | ".mid" | ".midi"| ".wma" | ".mp3" | ".ogg" | ".rma"
Expand Down
1 change: 1 addition & 0 deletions tests/Paket.Tests/ProjectFile/FileBuildActionSpecs.fs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ let createProject name =
let ``should recognize compilable files``() =
(createProject "A.csproj").DetermineBuildAction "Class.cs" |> shouldEqual BuildAction.Compile
(createProject "B.fsproj").DetermineBuildAction "Module.fs" |> shouldEqual BuildAction.Compile
(createProject "B.fsproj").DetermineBuildAction "Module.fsi" |> shouldEqual BuildAction.Compile
(createProject "C.vbproj").DetermineBuildAction "Whatever.vb" |> shouldEqual BuildAction.Compile
(createProject "D.nproj").DetermineBuildAction "Main.n" |> shouldEqual BuildAction.Compile

Expand Down

0 comments on commit 9f2107b

Please sign in to comment.