Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

NET8 fail to load file or assembly 'System.Runtime, Version= 8.0.0.0

989 views
Skip to first unread message

Glayson Patricio

unread,
Jun 11, 2024, 12:44:40 PM6/11/24
to Excel-DNA
Hi Govert,

(I am a BIG FAN of your work and a hithub sponsor)

I have an addin that has been stable using .net 6.0 for a couple of years.

After your release of 1.8.0 exceldna, witch has support for .net8.0, i am trying to upgrade to my project.

but i get this error message when the addin is loaded: 
"Initialization [warning] Type Addin.Essentials.Ribbon could not be processed. Error: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=8.0.0.0, ................................."

It seems like the addin is still trying being opened using .net 6.0, even with 
<TargetFramework>net8.0-windows</TargetFramework>

I have tryed several things
  - instaling latest .net 8.0 sdk
  - clean nuget cash
  - set RowForward to Major
  - Clean the project ....

but the error persists....

Any kind of tip ?? what am i doing wrong ??

thanks,
Glayson


Govert van Drimmelen

unread,
Jun 11, 2024, 10:11:21 PM6/11/24
to exce...@googlegroups.com

Hi Glayson,

 

Do you perhaps have a .dna file in your project directory?

If so,  the build would not generate one with the updated .NET version.

 

If that’s not it,  I’m wondering why you say

It seems like the addin is still trying being opened using .net 6.0”

Are you seeing a message or something indicating this?

 

-Govet

--
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/87036d1d-643e-4512-9578-d5aa701f2c42n%40googlegroups.com.

Message has been deleted
Message has been deleted
Message has been deleted

Glayson Patricio

unread,
Jun 13, 2024, 3:47:23 PM6/13/24
to Excel-DNA
Hi Govert,

As you mentioned, i had a .dna file on my project.
Exploring your comment, i realized that you have moved the properties i used to declare on the .dna file to the project file.

So i removed the .dna file and declared the properties into the project file.

And everything seems to me working.

thankyou very much!

Glayson

Glayson Patricio

unread,
Jun 14, 2024, 8:23:22 PM6/14/24
to Excel-DNA

Glayson Patricio

unread,
Jun 14, 2024, 8:23:22 PM6/14/24
to exce...@googlegroups.com
Hi Govert,

As you mentioned, i had a .dna file on my project.
Exploring your comment, i realized that you have moved the properties i used to declare on the .dna file to the project file.

So i removed the .dna file and declared the properties into the project file.

And everything seems to me working.

thankyou very much!

Glayson

You received this message because you are subscribed to a topic in the Google Groups "Excel-DNA" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/exceldna/WkwVw9-wCBs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to exceldna+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/exceldna/02c601dabc6d%24cc6c07a0%24654416e0%24%40gmail.com.


--
Obrigado,

Glayson Patrício
(11) 96207-4813


Reply all
Reply to author
Forward
0 new messages