-
Notifications
You must be signed in to change notification settings - Fork 2.1k
CandidateAssemblies should always include the entry assembly? #4318
Comments
/cc @pranavkm |
That's not true though. It should include the entry assembly if it references Mvc. What's the specific issue you were seeing? |
Running MVCSandbox, the MVCSandbox assembly wouldn't be included. @pakrym is investigating and I believe he has more context |
This is fixed in latest Cli+DependencyModel, lets keep it open to track the issue |
If you have a bug/PR number that would be good. |
Fixed == It's not broken there. Cli and dependency model being out of sync in mvc causes it. |
Yeah, I haven't noticed this using 1.0.0-beta-001718 CLI + the DependencyModel clone we have in Mvc. |
Ah so we think it's fixed in newer builds? |
Yes |
Ok, we'll just hold onto this issue until we can verify. Thanks! |
Alright, turns out this happens if you don't do Ignore me. |
Looks like this is fixed with the newest DependencyModel. @NTaylorMullen, the other issue is to make view discovery work and we could consider adding it to MvcSandbox to make our work flow bit easier. |
This is now fixed. |
Scenario, I'm running MVC Sandbox and I get a 404 on startup.
Default assembly manager does this:
https://github.com/aspnet/Mvc/blob/dev/src/Microsoft.AspNetCore.Mvc.Core/Infrastructure/DefaultAssemblyProvider.cs#L75
GetCandidateLibraries only includes dependent assemblies (which for MVCSandbox only contains the MVC assemblies)
I believe the list of candidate assemblies should always contain the entry assembly plus optionally a set of referenced assemblies based on whether or not the DependencyContext is available.
The text was updated successfully, but these errors were encountered: