Skip to content

Commit 4b391a3

Browse files
committed
HttpClient: Fix ExplicitRegistration
1 parent fdd4c6f commit 4b391a3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

HttpClient/HttpClient.csproj

+11
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
<PropertyGroup>
44
<TargetFrameworks>net472;net6.0-windows</TargetFrameworks>
5+
6+
<!--
7+
Normally, Excel-DNA will register all 'public static' methods.
8+
However, in this project we are doing the registration explicitly
9+
(in the AutoOpen, using the ExcelDna.Registration helper library).
10+
Automatic registration for this project will show an error,
11+
because the httpGetString method has an 'incompatible' signature (returning Task<string>).
12+
This property configures explicit registration mode.
13+
-->
14+
<ExcelAddInExplicitRegistration>true</ExcelAddInExplicitRegistration>
15+
516
</PropertyGroup>
617

718
<ItemGroup>

0 commit comments

Comments
 (0)