-
Notifications
You must be signed in to change notification settings - Fork 2.1k
DependencyContextAssemblyProvider assumes the entry assembly has a .deps.json file #4136
Comments
That's fixed in #4088 |
@pranavkm will check his change in soon, so this should be a non-issue soon. |
Fixed in 5b805bb |
We still null ref with this change. Should we throw an exception stating you should set the |
Self assigning since this would be a relatively small fix. |
Then we need 2 APIs. TryLoad and Load |
Why are we still null reffing? |
There's an obvious bug in my code (I call |
There's no deps file so act like it returns 0 results.
Yes.
This is tricky. Right now I would say don't throw. Especially in light of this dotnet/cli@acd581c |
Tests in the aspnet/Performance repo are failing because
DependencyContextAssemblyProvider.GetCandidateLibraries()
assumes thatDependencyContext.Default
is not null. Our tests are throwing aSystem.NullReferenceException
when accessingDependencyContext.Default
as it's null.Note that the current implementation of
DependencyContext.get_Default()
allows for it to be null when the entry assembly (in our case xunit.console.exe) doesn't provide a dependencies description file (in our case xunit.console.deps.json).Let me know if I'm interpreting something wrong, this has the Performance repository blocked aspnet/Performance#62.
@NTaylorMullen @muratg @sajayantony
The text was updated successfully, but these errors were encountered: