11<Project Sdk =" Microsoft.NET.Sdk" >
2- <PropertyGroup >
3- <TargetFrameworks >net8.0;net9.0;net10.0</TargetFrameworks >
4- <RootNamespace >Odin</RootNamespace >
5- <ImplicitUsings >true</ImplicitUsings >
6- <Nullable >enable</Nullable >
7- <PackageIcon >icon.png</PackageIcon >
8- <PackageReadmeFile >README.md</PackageReadmeFile >
9- <Description >Provides ILoggerWrapper that extends .NET's ILogger of T
10- with all the LogXXX(...) calls as provided by the .NET LoggerExtensions extension methods.
11- The primary reason being for much more convenient assertions of logger calls compared to mocking ILogger,
12- and asserting ILogger -> Log(LogLevel logLevel, EventId eventId, TState state, Exception? exception, etc...
13-
14-
15-
2+ <PropertyGroup >
3+ <TargetFrameworks >net8.0;net9.0;net10.0</TargetFrameworks >
4+ <RootNamespace >Odin</RootNamespace >
5+ <ImplicitUsings >true</ImplicitUsings >
6+ <Nullable >enable</Nullable >
7+ <PackageIcon >icon.png</PackageIcon >
8+ <PackageReadmeFile >README.md</PackageReadmeFile >
9+ <Description >Provides ILoggerWrapper that extends .NET's ILogger of T
10+ with all the LogXXX(...) calls as provided by the .NET LoggerExtensions extension methods.
11+ The primary reason being for much more convenient assertions of logger calls compared to mocking ILogger,
12+ and asserting ILogger -> Log(LogLevel logLevel, EventId eventId, TState state, Exception? exception, etc...
13+
14+
1615 </Description >
17- <WarningsAsErrors >1591;1573;</WarningsAsErrors > <!-- Not to be removed. Documentation is required. -->
18- </PropertyGroup >
19- <ItemGroup >
20- <PackageReference Include =" Microsoft.Extensions.DependencyInjection.Abstractions" Version =" 10.0.1" />
21- <PackageReference Include =" Microsoft.Extensions.Logging.Abstractions" Version =" 10.0.1" />
22- </ItemGroup >
23- <ItemGroup >
24- <None Include =" ../../Assets/icon.png" Pack =" true" PackagePath =" " />
25- <None Include =" ..\README.md" Pack =" true" PackagePath =" " />
26- </ItemGroup >
16+ <WarningsAsErrors >1591;1573;</WarningsAsErrors > <!-- Not to be removed. Documentation is required. -->
17+ </PropertyGroup >
18+
19+ <ItemGroup Condition =" '$(TargetFramework)' == 'net8.0'" >
20+ <PackageReference Include =" Microsoft.Extensions.DependencyInjection.Abstractions" Version =" 8.0.2" />
21+ <PackageReference Include =" Microsoft.Extensions.Logging.Abstractions" Version =" 8.0.3" />
22+ </ItemGroup >
23+
24+ <ItemGroup Condition =" '$(TargetFramework)' == 'net9.0'" >
25+ <PackageReference Include =" Microsoft.Extensions.DependencyInjection.Abstractions" Version =" 9.0.11" />
26+ <PackageReference Include =" Microsoft.Extensions.Logging.Abstractions" Version =" 9.0.11" />
27+ </ItemGroup >
28+
29+ <ItemGroup Condition =" '$(TargetFramework)' == 'net10.0'" >
30+ <PackageReference Include =" Microsoft.Extensions.DependencyInjection.Abstractions" Version =" 10.0.1" />
31+ <PackageReference Include =" Microsoft.Extensions.Logging.Abstractions" Version =" 10.0.1" />
32+ </ItemGroup >
33+
34+ <ItemGroup >
35+ <None Include =" ../../Assets/icon.png" Pack =" true" PackagePath =" " />
36+ <None Include =" ..\README.md" Pack =" true" PackagePath =" " />
37+ </ItemGroup >
2738</Project >
0 commit comments