RollForward not working as expected with ExcelDna

113 views
Skip to first unread message

Josh Bridenbaugh

unread,
Mar 13, 2024, 5:46:16 PM3/13/24
to Excel-DNA
Hello,

After reading the thread on github about .net 8 support, I decided to target .net 6 with RollForward LatestMajor in order to use the latest runtime while still remaining compatible with other add ins targeting different versions of .net.

When I try to load the add in into Excel with no other add ins enabled, I get an error that .NET Desktop Runtime 6.0.2 can not be found which is accurate because it isn't installed. However, I do have .NET Desktop Runtime 8.0.1 installed so I would expect my add in to be trying to load that and not 6.0.2. 
2024-03-13 17_14_28-v24 Install on JBRIDENBAUGH - Virtual Machine Connection.png2024-03-13 17_17_15-AllProjects - Microsoft Visual Studio (Administrator).png
I created a console app targeting .net 6 and set RollForward to LatestMajor to test this issue and see if it was .net related, but that worked fine so it has be an issue related to Excel or ExcelDna somehow. If you have any ideas or suggestions, please let me know.

Thanks,
Josh

Govert van Drimmelen

unread,
Mar 13, 2024, 6:06:27 PM3/13/24
to Excel-DNA
Hi Josh,

Can you confirm the exact Excel-DNA package version you're using?

-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/607da028-80cb-43c8-8c24-de611ff3bed6n%40googlegroups.com.

Josh Bridenbaugh

unread,
Mar 14, 2024, 8:54:24 AM3/14/24
to Excel-DNA
Hi Govert,

I am using Excel-DNA 1.7.0. I also tried creating a new add in with very basic functionality using 1.7.0 and the LatestMajor property to see if it was something with my Add-In project and that failed with the same error about .net 6.0.2 runtime.

Govert van Drimmelen

unread,
Mar 14, 2024, 1:17:41 PM3/14/24
to Excel-DNA
Hi Josh,

Support for .NET 8 and the <RollForward> option are available in the pre-release versions of 1.8.0.
I suggest you try the latest package version 1.8.0-alpha3.

-Govert

Josh Bridenbaugh

unread,
Mar 14, 2024, 1:53:25 PM3/14/24
to Excel-DNA
Thanks Govert,

Reading back through the github thread for .net 8 support I realized I missed that fact that you mentioned the RollForward property was supported in the 1.8 alpha version of ExcelDna. I will update the package and see if I can get it working.

-Josh

Reply all
Reply to author
Forward
0 new messages