Merge pull request #1167 from dotnet/pakrym/notnull

Do not throw exception when DependencyModel does not exist
This commit is contained in:
Pavel Krymets 2016-02-02 09:51:26 -08:00
commit 2b5c7d06fb
2 changed files with 1 additions and 2 deletions

View file

@ -28,7 +28,6 @@ namespace Microsoft.Extensions.DependencyModel
public IEnumerable<string> ResolveReferencePaths()
{
var entryAssembly = _entryAssembly.Value;
var entryAssemblyName = entryAssembly.GetName().Name;
string basePath;
string fullName;

View file

@ -42,7 +42,7 @@ namespace Microsoft.Extensions.DependencyModel
if (stream == null)
{
throw new InvalidOperationException("Entry assembly was compiled without `preserveCompilationContext` enabled");
return null;
}
using (stream)