20 lines
444 B
PowerShell
20 lines
444 B
PowerShell
param($installPath, $toolsPath, $package, $project)
|
|
|
|
$ref = $project.Object.References.Item("NetOffice")
|
|
if ($ref -and $ref.EmbedInteropTypes)
|
|
{
|
|
$ref.EmbedInteropTypes = $false
|
|
}
|
|
|
|
$ref = $project.Object.References.Item("OfficeApi")
|
|
if ($ref -and $ref.EmbedInteropTypes)
|
|
{
|
|
$ref.EmbedInteropTypes = $false
|
|
}
|
|
|
|
$ref = $project.Object.References.Item("VBIDEApi")
|
|
if ($ref -and $ref.EmbedInteropTypes)
|
|
{
|
|
$ref.EmbedInteropTypes = $false
|
|
}
|