Skip to content

Commit

Permalink
Delete assets file on install
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Nov 26, 2017
1 parent 0fae339 commit 11ed738
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Paket.Core/Installation/InstallProcess.fs
Expand Up @@ -324,6 +324,9 @@ let invalidateRestoreCachesForDotnetSdk (projectFileInfo:FileInfo) =
let old = File.ReadAllText paketPropsFile.FullName
let newContent = old.Replace("<!-- <RestoreSuccess>False</RestoreSuccess> -->","<RestoreSuccess>False</RestoreSuccess>")
File.WriteAllText(paketPropsFile.FullName, newContent)
let assetsFile = ProjectFile.getAssetsFileInfo projectFileInfo
if assetsFile.Exists then
try assetsFile.Delete() with | _ -> ()

let installForDotnetSDK root (project:ProjectFile) =
let paketTargetsPath = RestoreProcess.extractRestoreTargets root
Expand Down
3 changes: 3 additions & 0 deletions src/Paket.Core/PaketConfigFiles/ProjectFile.fs
Expand Up @@ -1528,6 +1528,9 @@ module ProjectFile =
let getPaketPropsFileInfo (projectFileInfo:FileInfo) =
FileInfo(Path.Combine(projectFileInfo.Directory.FullName,"obj",projectFileInfo.Name + ".paket.props"))

let getAssetsFileInfo (projectFileInfo:FileInfo) =
FileInfo(Path.Combine(projectFileInfo.Directory.FullName,"obj","project.assets"))

let getOutputDirectory buildConfiguration buildPlatform (project:ProjectFile) =
let targetFramework =
match getTargetFramework project with
Expand Down

0 comments on commit 11ed738

Please sign in to comment.