Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AddAzureWebAppDiagnostics() is required on .NET Framework #5016

Closed
ljani opened this issue Dec 15, 2017 · 1 comment
Closed

AddAzureWebAppDiagnostics() is required on .NET Framework #5016

ljani opened this issue Dec 15, 2017 · 1 comment
Assignees

Comments

@ljani
Copy link

ljani commented Dec 15, 2017

The docs for Microsoft.Extensions.Logging.AzureAppServices provider state that:

You don't have to install the provider package or call the AddAzureWebAppDiagnostics extension method. The provider is automatically available to your app when you deploy the app to Azure App Service.

However, if my ASP.NET Core 2.0 (<PackageReference Include="Microsoft.AspNetCore" Version="2.0.0" />) project targets the full .NET Framework (<TargetFramework>net47</TargetFramework>), this is no longer true. I need to install the provider package and call AddAzureWebAppDiagnostics() explicitly. Can you reword the paragraph to make a distinction between the behavior on .NET Core and .NET Framework please?

This is by design as per aspnet/Logging#716.

@scottaddie
Copy link
Member

@ljani Thank you for reporting this issue. The fix has been merged and should go live within the next 24 hours.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants