Comments (2)
Another symptom of possibly-the-same root issue is that a custom View Model defined within the plugin cannot be used as the @model
of a View. The plugin assembly cannot be found at runtime.
from dotnetcoreplugins.
Thanks for reporting. There were two problems.
- The sample didn't load related assemblies (e.g. the Views assembly) correctly. MVC's
RelatedAssemblyAttribute.GetRelatedAssemblies
API callsAssembly.LoadFile
under the hood, which creates its own unique load context and bypasses the plugin's assembly resolution logic. - The implementation of assembly resolution always skipped assemblies which were not predefined in .deps.json (or programmatically with AssemblyLoadContextBuilder.) I added a change so that when all else fails, the loader tries to find assemblies in the plugin's base directory.
Give this a shot and let me know if it works: https://www.myget.org/feed/natemcmaster/package/nuget/McMaster.NETCore.Plugins/0.2.2-rtm.41
from dotnetcoreplugins.
Related Issues (20)
- Use WeakReference to check if unload is successful HOT 3
- [Question] What happened to AddDependencyContext? HOT 9
- Add hot-reload to ASP.NET Core sample HOT 2
- How do I "Unload" a plugin/dll HOT 1
- Error starting application when plugin controller decorating with [ApiController]
- How can i use Plugin DBContext ? HOT 2
- Docker file build problems HOT 3
- [Question] Diamond dependency & shared types doesn't work
- Diamond dependency & shared types doesn't work when using NuGet packages HOT 2
- Error on loading NuGet package HOT 2
- [Question] [Help Wanted] JSON Serialization problems; can assembly name or version be changed at load time? HOT 1
- [Question] Some questions about the state of the project HOT 8
- 支持卸载吗 HOT 2
- [Question] How to inject Logger or IConfiguration in Plugins ? I tried and failed HOT 1
- Using the library in MacOs project
- [Question] Capturing exceptions
- RobiniaDocs API Explorer
- [Question] System.Data.SqlClient could not be found on my plugin HOT 1
- [Question] Hot-reload managed assemblies using assembly file lock instead of through FileStream
- System.PlatformNotSupportedException on Android
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dotnetcoreplugins.