Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (13 sloc) 361 Bytes
function Set-AssemblyReferencesCopyLocal
{
param($package, $project, $copyLocal)
$assemblies = $package.AssemblyReferences | %{$_.Name}
foreach ($reference in $project.Object.References)
{
if ($assemblies -contains $reference.Name + ".dll")
{
$reference.CopyLocal = $copyLocal
Write-Host ($reference.Name + ".CopyLocal = $copyLocal")
}
}
}
You can’t perform that action at this time.