KennanChan / Revit.Async

Use task-based asynchronous pattern (TAP) to run Revit API code from any execution context.
MIT License
223 stars 51 forks source link

A strongly-named assembly is required #13

Closed plindjo closed 2 years ago

plindjo commented 2 years ago

Hi and thanks for creating a great library! I've used the nuget package for a while without any errors. But now I am on a new PC and trying to use it on a new project (with Revit 2020), and I get a FileLoadException stating that the Revit assemblies or dependencies could not be loaded: StronglyTypedAssemblyRequired

I have tried all versions on nuget and get the same exception with them all. I don't know if this is a problem on my computer or something else but I can't figure out how to resolve it or investigate it further. I even tried placing Revit 2016 DLLs along side the addin and add an AssebmlyResolve but without any luck. Any ideas are greatly appreciated. Thanks

KennanChan commented 2 years ago

It seems to be a problem with the latest version(v2.0.0) of Revit.Async #11. A strong name was signed to Revit.Async.dll but RevitAPIUI.dll as a reference was not signed with strong name. That's not allowed. I will soon publish a new release to get rid of the strong name signing. I have unlist the v2.0.0 nuget package. For now just fallback your reference to v1.3.1 and shift to the old usage.

plindjo commented 2 years ago

Thank you for the response. Looking forward to the next release! I'll close the issue. Cheers