Skip to content
This repository was archived by the owner on Dec 18, 2017. It is now read-only.

Commit

Permalink
Fix build: React to CoreCLR behavior change.
Browse files Browse the repository at this point in the history
  • Loading branch information
troydai committed Mar 23, 2015
1 parent 3a62feb commit 196e111
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/Microsoft.Framework.ApplicationHost/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,19 @@ private Task<int> ExecuteMain(DefaultHost host, string applicationName, string[]
{
assembly = host.GetEntryPoint(applicationName);
}
catch (FileNotFoundException ex) when (new AssemblyName(ex.FileName).Name == applicationName)
catch (FileLoadException ex) when (new AssemblyName(ex.FileName).Name == applicationName)
{
if (ex.InnerException is ICompilationException)
{
throw ex.InnerException;
}

ThrowEntryPointNotfoundException(
host,
applicationName,
ex.InnerException);
}
catch (FileNotFoundException ex) when (ex.FileName == applicationName)
{
if (ex.InnerException is ICompilationException)
{
Expand Down

0 comments on commit 196e111

Please sign in to comment.