Guest User

Untitled

a guest
Apr 25th, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. function Invoke-ForcePaketRestore
  2. {
  3. $solution = $dte.Solution.FullName
  4. $path = Split-Path $solution
  5. $dte.Solution.Close()
  6. kill -processname msbuild
  7. cd $path
  8. & paket.exe restore --force
  9. $dte.Solution.Open($solution)
  10. }
  11.  
  12. $solution = $dte.Solution.FullName
  13. $path = Split-Path $solution
  14. $paketPath = Join-Path $path '.paket'
  15. if (Test-Path $paketPath)
  16. {
  17.  
  18. $ENV:PATH+=";$paketPath"
  19. }
  20.  
  21. Export-ModuleMember -function Invoke-ForcePaketRestore
Add Comment
Please, Sign In to add comment