I think the problem was the project file format, which is different depending on which Visual Studio template (called .NET Framework or not) you pick.
Excel-DNA supports .NET Framework, and your life will be better by targeting it.
Just change the TargetFramework in the project file, like this:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net472</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="ExcelDna.Addin" Version="1.7.0-rc6" />
</ItemGroup>
</Project>
-Govert
--
You received this message because you are subscribed to the Google Groups "Excel-DNA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to exceldna+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/exceldna/2f58cfef-884f-4205-a819-3e71da950f58n%40googlegroups.com.
No, you can just edit the .csproj file that you have working with .NET 6, but update the TargetFramework, save it and rebuild.
The new ‘SDK-style’ project files are nicer than the old project files, and support both .NET Framework and .NET core projects.
You might need to remove some extra properties for features that .NET Framework does not support, like ‘Nullable’.
To view this discussion on the web visit https://groups.google.com/d/msgid/exceldna/c8d8ee30-0d7c-4038-bd4f-a51df31cd95dn%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/exceldna/507c39dc-4a21-4f2f-8d7d-cafc997ca304n%40googlegroups.com.