Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2ffc387

Browse files
Mark the specific DNNE version to use. (#7038)
Delete no longer needed redeclaration of DNNE attributes. Fix warnings by passing .def file to DNNE.
1 parent 3e634d0 commit 2ffc387

File tree

2 files changed

+6
-29
lines changed

2 files changed

+6
-29
lines changed

core/interop/source-generation/ComWrappersGeneration/Server/DNNE.cs

-27
This file was deleted.

core/interop/source-generation/ComWrappersGeneration/Server/Server.csproj

+6-2
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,17 @@
88

99
<!-- Uncomment to publish as a native executable -->
1010
<!-- <PublishAOT>true</PublishAOT> -->
11+
</PropertyGroup>
1112

13+
<PropertyGroup Condition="'$(PublishAOT)' != 'true'">
1214
<!-- Enable DNNE to dynamically load the managed .dll -->
13-
<EnableDynamicLoading Condition="'$(PublishAOT)' != 'true'">true</EnableDynamicLoading>
15+
<EnableDynamicLoading>true</EnableDynamicLoading>
16+
<!-- Use our own .def file to export the COM methods as PRIVATE. The Windows native linker (Link.exe) warns when exported COM methods are not PRIVATE. -->
17+
<DnneWindowsExportsDef>Server.def</DnneWindowsExportsDef>
1418
</PropertyGroup>
1519

1620
<ItemGroup>
17-
<PackageReference Include="DNNE" Version="2.*" Condition="'$(PublishAOT)' != 'true'"/>
21+
<PackageReference Include="DNNE" Version="2.0.7" Condition="'$(PublishAOT)' != 'true'"/>
1822
<PackageReference Include="Microsoft.Win32.Registry" Version="5.0.0" />
1923
<!-- When publishing AOT, use our own .def file to export the COM methods as PRIVATE. The Windows native linker (Link.exe) warns when exported COM methods are not PRIVATE. -->
2024
<LinkerArg Include="/DEF:&quot;Server.def&quot;" Condition="'$(PublishAOT)' == 'true'"/>

0 commit comments

Comments
 (0)