Appdomain Issue while loading the plugin in Revit2025 developed using .NET 8.0

Appdomain Issue while loading the plugin in Revit2025 developed using .NET 8.0

mayank.desaiXQQJ9
Explorer Explorer
335 Views
2 Replies
Message 1 of 3

Appdomain Issue while loading the plugin in Revit2025 developed using .NET 8.0

mayank.desaiXQQJ9
Explorer
Explorer

mayankdesaiXQQJ9_0-1723832805783.png

 

Has anybody encountered this issue while loading Revit addin in Revit2025. I am using PrismApplication and DryIoc which seem to have good compatibility with .NET Core. I use the latest versions of Prism libraries. No compilation errors.
The only error is when the addin is loaded in Revit at startup.
Thanks in advance.

0 Likes
336 Views
2 Replies
Replies (2)
Message 2 of 3

ricaun
Advisor
Advisor

Good compatibility with .NET Core does not mean that gonna work fine inside Revit 😐

 

Looks like this PrismApplication is trying to create a new Window Application and that's is not allowed, because Revit already have one.

 

Luiz Henrique Cassettari

ricaun.com - Revit API Developer

AppLoader EasyConduit WireInConduit ConduitMaterial CircuitName ElectricalUtils

0 Likes
Message 3 of 3

mayank.desaiXQQJ9
Explorer
Explorer

Thanks for the reply Ricaun. That was an upgrade job from

Revit 2022 to 2025. The plugin worked well in R22 but it malfunctioned after the upgrade to .Net 8.0. However the issue has been fixed.

upon a bit more research, I found out that the Prism application has different implementation for .Net 8.0.

thanks again.

0 Likes