This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
DependencyContextAssemblyProvider assumes the entry assembly has a .deps.json file #4136
Closed
Description
Tests in the aspnet/Performance repo are failing because DependencyContextAssemblyProvider.GetCandidateLibraries()
assumes that DependencyContext.Default
is not null. Our tests are throwing a System.NullReferenceException
when accessing DependencyContext.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.