Fix to "hosted in ASP.NET" startup logic when consuming via package references not project references
This commit is contained in:
parent
2fc2a23d41
commit
ff5b6a7f30
|
|
@ -7,6 +7,7 @@ using Microsoft.AspNetCore.StaticFiles;
|
||||||
using Microsoft.Extensions.FileProviders;
|
using Microsoft.Extensions.FileProviders;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Net.Mime;
|
using System.Net.Mime;
|
||||||
|
using System.Reflection;
|
||||||
|
|
||||||
namespace Microsoft.AspNetCore.Builder
|
namespace Microsoft.AspNetCore.Builder
|
||||||
{
|
{
|
||||||
|
|
@ -22,7 +23,7 @@ namespace Microsoft.AspNetCore.Builder
|
||||||
this IApplicationBuilder applicationBuilder,
|
this IApplicationBuilder applicationBuilder,
|
||||||
string clientAssemblyName)
|
string clientAssemblyName)
|
||||||
{
|
{
|
||||||
var binDir = Path.GetDirectoryName(typeof(BlazorConfig).Assembly.Location);
|
var binDir = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
|
||||||
var clientAssemblyPath = Path.Combine(binDir, $"{clientAssemblyName}.dll");
|
var clientAssemblyPath = Path.Combine(binDir, $"{clientAssemblyName}.dll");
|
||||||
applicationBuilder.UseBlazor(new BlazorOptions
|
applicationBuilder.UseBlazor(new BlazorOptions
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue