DefaultTemplateFactory.GetEmbeddedLiquidTemplate AssemblyResolve issue
See original GitHub issueIssue 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:
- Created 6 years ago
- Comments:11 (6 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yep looks promising 😃
Works like a charm! Thank you again.