Fix to "hosted in ASP.NET" startup logic when consuming via package references not project references

This commit is contained in:
Steve Sanderson 2018-02-27 16:38:15 +00:00
parent 2fc2a23d41
commit ff5b6a7f30
1 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ using Microsoft.AspNetCore.StaticFiles;
using Microsoft.Extensions.FileProviders;
using System.IO;
using System.Net.Mime;
using System.Reflection;
namespace Microsoft.AspNetCore.Builder
{
@ -22,7 +23,7 @@ namespace Microsoft.AspNetCore.Builder
this IApplicationBuilder applicationBuilder,
string clientAssemblyName)
{
var binDir = Path.GetDirectoryName(typeof(BlazorConfig).Assembly.Location);
var binDir = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
var clientAssemblyPath = Path.Combine(binDir, $"{clientAssemblyName}.dll");
applicationBuilder.UseBlazor(new BlazorOptions
{