question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DefaultTemplateFactory.GetEmbeddedLiquidTemplate AssemblyResolve issue

See original GitHub issue

Issue here that Assembly.Load do not trigger AssemblyResolve event. So .NET expected to see this assembly in AppDomain codebase folder.

Could you scan current AppDomain prior to Assembly.Load call?

Example:

var assemblyName = "NSwag.CodeGeneration." + language;
var assembly = AppDomain.CurrentDomain.GetAssemblies().FirstOrDefault(a => a.GetName().Name == assemblyName) ??
               Assembly.Load(new AssemblyName(assemblyName));

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
BlackGadcommented, Nov 14, 2017

Yep looks promising 😃

0reactions
BlackGadcommented, Nov 16, 2017

Works like a charm! Thank you again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

VSTO AssemblyResolve issue
I sovled the problem by assigning the handler to the AppDomain.CurrentDomain.AssemblyResolve event in the Addins.Designer.cs class, but as you ...
Read more >
AppDomain.AssemblyResolve Event (System)
The following sample demonstrates the AssemblyResolve event. For this code example to run, you must provide the fully qualified assembly name.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found