You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PR 630 added a Microsoft.AspNetCore.App framework dependency to both App.Metrics.AppNetCore and App.Metrics.Extensions.Hosting.
As a result, it's no longer possible to host AppMetrics endpoints without AspNetCore also being installed. This is evident when trying to host endpoints in a console application (using a raw HttpListener or lightweight web server) inside a docker container based on mcr.microsoft.com/dotnet/runtime:6.0.
When running against AppMetrics 4.2.0 or later a framework error cause the application to crash:
You must install or update .NET to run this application.
App: /app/bin/Debug/net6.0/AppName.dll
Architecture: x64
Framework: 'Microsoft.AspNetCore.App', version '6.0.0' (x64)
.NET location: /usr/share/dotnet/
No frameworks were found.
Downgrading AppMetrics to 4.1.0 allows this to work as expected.
Is there anything about 4.2.0 that means these packages are actually now tied to ASP.NET or is the framework reference an oversight that should be removed?
The text was updated successfully, but these errors were encountered:
I certainly don't want to bring in an ASP.NET Core dependency when using the new .NET Hosting framework. Can this change be reverted?
It also looks like Microsoft.Extensions.Hosting.Abstractions is not one of those libraries that was merged into the app framework, so the NuGet package can still be used fine outside of it when targeting netcoreapp3.1.
PR 630 added a Microsoft.AspNetCore.App framework dependency to both App.Metrics.AppNetCore and App.Metrics.Extensions.Hosting.
As a result, it's no longer possible to host AppMetrics endpoints without AspNetCore also being installed. This is evident when trying to host endpoints in a console application (using a raw HttpListener or lightweight web server) inside a docker container based on mcr.microsoft.com/dotnet/runtime:6.0.
When running against AppMetrics 4.2.0 or later a framework error cause the application to crash:
Downgrading AppMetrics to 4.1.0 allows this to work as expected.
Is there anything about 4.2.0 that means these packages are actually now tied to ASP.NET or is the framework reference an oversight that should be removed?
The text was updated successfully, but these errors were encountered: