Nice3point / RevitToolkit

Toolkit for Revit plugin development
MIT License
81 stars 12 forks source link

Revit 2025: FileLoadException - could not load file Nice3Point.Revit.Toolkit #11

Open harrymattison opened 1 month ago

harrymattison commented 1 month ago

Hi Roman - I am getting this error when starting Revit 2025

image

But that DLL does exist in the folder with the add-in dll image

image

CSPROJ.txt

Is there some other file that needs to be included? Thanks

AmeerMansour commented 1 month ago

can you ensure that you don't implement Revit Api IexternalCommand and IexternalApp ?

harrymattison commented 1 month ago

I have one instance of Nice3point.Revit.Toolkit.External.ExternalCommand and one Nice3point.Revit.Toolkit.External.ExternalApplication

The only "IExt..." in the project is IExternalEventHandler

harrymattison commented 1 month ago

also, it works fine with Revit 2024

Nice3point commented 1 month ago

A known problem on Revit 2025, the issue is that Revit doesn't want to load a dependency that is a higher version than the one already loaded. A temporary solution is to run DependenciesReport https://github.com/jeremytammik/RevitLookup/issues/269#issuecomment-2323309590 to find a plugin with an older version and copy Toolkit version 2025.0.3 to it

harrymattison commented 1 month ago

A known problem on Revit 2025

Does this mean that Nice3point/RevitToolkit should not be used with Revit 2025 unless the temporary solution is used?

find a plugin with an older version and copy Toolkit version 2025.0.3 to it

Could you explain in more detail what this means? What older version of which plugin would resolve this?

Nice3point commented 1 month ago

Does this mean that Nice3point/RevitToolkit should not be used with Revit 2025 unless the temporary solution is used?

you can, why not, you just need to update the plugins that use RevitToolkit with older versions, like 2025.0.1

Could you explain in more detail what this means? What older version of which plugin would resolve this?

Can you run DependenciesReport from the link above and send the generated report here so we can figure out the cause of the problem?

harrymattison commented 1 month ago

DependenciesReport-2024-10-10.txt

Nice3point commented 1 month ago

@harrymattison Update please RevitLookup to the 2025.0.10 version изображение

harrymattison commented 1 month ago

Thanks, but how can I publish a product that will fail to load based on the version of some other product?

Nice3point commented 1 month ago

Toolkit gives more conflict protection than not using it at all. There are always chances to encounter incompatible plugins, Autodesk solves this problem, so we can only hope that they will do something in Revit 2026.