Public/Nuget/Paket/Invoke-PaketConvertFromNuget.ps1


function Invoke-PaketConvertFromNuget {
    [CmdletBinding()]
    [CmdLetTag(("#nuget","#paket"))]
    param (
        [switch]$Force,
        [string]$Path = "."
    )
    
    begin {
        
    }
    
    process {
        $paketExe=(Get-PaketDependenciesPath -Strict)
        if ($paketExe){
            $xtraArgs = @();
            if ($Force) {
                $xtraArgs += "--force"
            }
            Set-Location (Get-Item $paketExe).DirectoryName
            dotnet paket convert-from-nuget @xtraArgs
        }
    }
    
    end {
        
    }
}