Files
OnDoc/packages/NetOffice.Core.Net45.1.7.4.11/tools/install.ps1
2024-07-29 15:00:22 +02:00

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
}