Skip to content

Commit

Permalink
NetOffice v1.9.3 release (PR #385)
Browse files Browse the repository at this point in the history
Configure `EmbedInteropTypes` value in classic nuget references
  • Loading branch information
jozefizso committed Mar 4, 2023
2 parents 3f1d459 + 91d3eca commit 94d432d
Show file tree
Hide file tree
Showing 16 changed files with 104 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.201'

- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1.1

Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## v1.9.3

### Fixed
* Configure EmbedInteropTypes value in classic nuget references [#371](https://github.com/NetOfficeFw/NetOffice/issues/371)


## v1.9.2

### Fixed
Expand Down
7 changes: 7 additions & 0 deletions Source/ADODB/Tools/install.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
param($installPath, $toolsPath, $package, $project)

$ref = $project.Object.References.Item("ADODBApi")
if ($ref -and $ref.EmbedInteropTypes)
{
$ref.EmbedInteropTypes = $false
}
7 changes: 7 additions & 0 deletions Source/Access/Tools/install.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
param($installPath, $toolsPath, $package, $project)

$ref = $project.Object.References.Item("AccessApi")
if ($ref -and $ref.EmbedInteropTypes)
{
$ref.EmbedInteropTypes = $false
}
7 changes: 7 additions & 0 deletions Source/DAO/Tools/install.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
param($installPath, $toolsPath, $package, $project)

$ref = $project.Object.References.Item("DAOApi")
if ($ref -and $ref.EmbedInteropTypes)
{
$ref.EmbedInteropTypes = $false
}
7 changes: 7 additions & 0 deletions Source/Excel/Tools/install.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
param($installPath, $toolsPath, $package, $project)

$ref = $project.Object.References.Item("ExcelApi")
if ($ref -and $ref.EmbedInteropTypes)
{
$ref.EmbedInteropTypes = $false
}
7 changes: 7 additions & 0 deletions Source/MSComctlLib/Tools/install.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
param($installPath, $toolsPath, $package, $project)

$ref = $project.Object.References.Item("MSComctlLibApi")
if ($ref -and $ref.EmbedInteropTypes)
{
$ref.EmbedInteropTypes = $false
}
7 changes: 7 additions & 0 deletions Source/MSDATASRC/Tools/install.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
param($installPath, $toolsPath, $package, $project)

$ref = $project.Object.References.Item("MSDATASRCApi")
if ($ref -and $ref.EmbedInteropTypes)
{
$ref.EmbedInteropTypes = $false
}
3 changes: 2 additions & 1 deletion Source/NetOffice.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<!-- Common properties for NetOffice projects -->
<PropertyGroup>
<NetOfficeRelease>1.9.2</NetOfficeRelease>
<NetOfficeRelease>1.9.3</NetOfficeRelease>
</PropertyGroup>

<PropertyGroup>
Expand All @@ -27,6 +27,7 @@
<None Include="../../LICENSE.txt" Pack="true" PackagePath="/" />
<None Include="../../icon.png" Pack="true" PackagePath="/" />
<None Include="$(PackageReadmeFile)" Pack="true" PackagePath="/" Condition=" '$(PackageReadmeFile)' != '' " />
<None Include="tools/install.ps1" Pack="true" PackagePath="/tools/install.ps1" Condition=" Exists('tools/install.ps1') " />
</ItemGroup>

<PropertyGroup>
Expand Down
7 changes: 7 additions & 0 deletions Source/NetOffice/Tools/install.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
param($installPath, $toolsPath, $package, $project)

$ref = $project.Object.References.Item("NetOffice")
if ($ref -and $ref.EmbedInteropTypes)
{
$ref.EmbedInteropTypes = $false
}
7 changes: 7 additions & 0 deletions Source/OWC10/Tools/install.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
param($installPath, $toolsPath, $package, $project)

$ref = $project.Object.References.Item("OWC10Api")
if ($ref -and $ref.EmbedInteropTypes)
{
$ref.EmbedInteropTypes = $false
}
7 changes: 7 additions & 0 deletions Source/Office/Tools/install.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
param($installPath, $toolsPath, $package, $project)

$ref = $project.Object.References.Item("OfficeApi")
if ($ref -and $ref.EmbedInteropTypes)
{
$ref.EmbedInteropTypes = $false
}
7 changes: 7 additions & 0 deletions Source/Outlook/Tools/install.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
param($installPath, $toolsPath, $package, $project)

$ref = $project.Object.References.Item("OutlookApi")
if ($ref -and $ref.EmbedInteropTypes)
{
$ref.EmbedInteropTypes = $false
}
7 changes: 7 additions & 0 deletions Source/PowerPoint/Tools/install.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
param($installPath, $toolsPath, $package, $project)

$ref = $project.Object.References.Item("PowerPointApi")
if ($ref -and $ref.EmbedInteropTypes)
{
$ref.EmbedInteropTypes = $false
}
7 changes: 7 additions & 0 deletions Source/VBIDE/Tools/install.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
param($installPath, $toolsPath, $package, $project)

$ref = $project.Object.References.Item("VBIDEApi")
if ($ref -and $ref.EmbedInteropTypes)
{
$ref.EmbedInteropTypes = $false
}
7 changes: 7 additions & 0 deletions Source/Word/Tools/install.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
param($installPath, $toolsPath, $package, $project)

$ref = $project.Object.References.Item("WordApi")
if ($ref -and $ref.EmbedInteropTypes)
{
$ref.EmbedInteropTypes = $false
}

0 comments on commit 94d432d

Please sign in to comment.