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

Update .NET SDK version in project file of Logging in C# article #44204

Open
Ranzeplay opened this issue Jan 10, 2025 · 0 comments
Open

Update .NET SDK version in project file of Logging in C# article #44204

Ranzeplay opened this issue Jan 10, 2025 · 0 comments

Comments

@Ranzeplay
Copy link

Ranzeplay commented Jan 10, 2025

Type of issue

Typo

Description

At here This project file for this example includes two NuGet packages:

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net8.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.0" />
    <PackageReference Include="Microsoft.Extensions.Logging.Console" Version="9.0.0" />
  </ItemGroup>

</Project>

Change to:

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net9.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.0" />
    <PackageReference Include="Microsoft.Extensions.Logging.Console" Version="9.0.0" />
  </ItemGroup>

</Project>

Update .NET SDK version to 9.0

Page URL

https://learn.microsoft.com/en-us/dotnet/core/extensions/logging?tabs=get-started

Content source URL

https://github.com/dotnet/docs/blob/main/docs/core/extensions/logging.md

Document Version Independent Id

0e787ac2-1108-1d94-d62f-ccffa93e06c3

Article author

@IEvangelist

Metadata

  • ID: 346bbcf3-9f8e-b253-09fe-906195392783
  • Service: dotnet-fundamentals

Related Issues

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

No branches or pull requests

1 participant