Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Make identity server work with publish single file in .NET 5.0 #4868

Merged
merged 1 commit into from
Sep 11, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
using Microsoft.Extensions.Logging;
using System;
using System.Diagnostics;
using System.Reflection;
using System.Threading.Tasks;

namespace Microsoft.AspNetCore.Builder
Expand Down Expand Up @@ -54,7 +55,7 @@ internal static void Validate(this IApplicationBuilder app)
if (loggerFactory == null) throw new ArgumentNullException(nameof(loggerFactory));

var logger = loggerFactory.CreateLogger("IdentityServer4.Startup");
logger.LogInformation("Starting IdentityServer4 version {version}", FileVersionInfo.GetVersionInfo(typeof(IdentityServer4.Hosting.IdentityServerMiddleware).Assembly.Location).ProductVersion);
logger.LogInformation("Starting IdentityServer4 version {version}", typeof(IdentityServer4.Hosting.IdentityServerMiddleware).Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>().InformationalVersion);

var scopeFactory = app.ApplicationServices.GetService<IServiceScopeFactory>();

Expand Down