Skip to content

Commit

Permalink
Merge pull request #969 from khanage/fsiassembly-relativepath-fix
Browse files Browse the repository at this point in the history
Ensure FSI-ASSEMBLY.dll path exists
  • Loading branch information
forki committed Oct 7, 2015
2 parents aff62a2 + b761f99 commit 9303556
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/app/FakeLib/FSIHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,12 @@ let internal runFAKEScriptWithFsiArgsAndRedirectMessages printDetails (FsiArgs(f
let di = Directory.CreateDirectory cacheDir.FullName
di.Attributes <- FileAttributes.Directory ||| FileAttributes.Hidden

let destinationFile = FileInfo(assemblyPath.Value)
let targetDirectory = destinationFile.Directory

if (not <| targetDirectory.Exists) then targetDirectory.Create()
if (destinationFile.Exists) then destinationFile.Delete()

File.Move("FSI-ASSEMBLY.dll", assemblyPath.Value)

if File.Exists("FSI-ASSEMBLY.pdb") then
Expand Down

0 comments on commit 9303556

Please sign in to comment.