Skip to content

Commit

Permalink
Using .NET Core 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
anfomin committed Jan 10, 2020
1 parent 80df273 commit 9a20b41
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
7 changes: 2 additions & 5 deletions RaygunCore.AspNetCore/RaygunCore.AspNetCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,11 @@
<AssemblyName>RaygunCore.AspNetCore</AssemblyName>
<Description>Raygun provider for ASP.NET Core.</Description>
<PackageTags>raygun;core;netcore;aspnetcore;aspnetcoremvc</PackageTags>
<TargetFramework>netstandard2.0</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="../RaygunCore/RaygunCore.csproj" />
<PackageReference Include="Microsoft.AspNetCore.Http" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Http.Extensions" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Hosting.Abstractions" Version="2.2.0" />
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion RaygunCore.AspNetCore/Services/UserMessageProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public void Apply(RaygunMessageDetails details)
return;

if (context.User.Identity.IsAuthenticated)
details.User = new RaygunUserMessage(context.User.Identity.Name);
details.User = new RaygunUserMessage(context.User.Identity.Name!);
}
}
}
8 changes: 6 additions & 2 deletions RaygunCore.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/anfomin/rayguncore</RepositoryUrl>
<PackageProjectUrl>https://github.com/anfomin/rayguncore</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/anfomin/rayguncore/blob/master/LICENSE</PackageLicenseUrl>
<VersionPrefix>1.5.0</VersionPrefix>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<VersionPrefix>1.6.0</VersionPrefix>
<VersionSuffix Condition="'$(VERSION_SUFFIX)'!=''">$(VERSION_SUFFIX)</VersionSuffix>
<NoWarn>$(NoWarn);1573;1591</NoWarn>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<None Include="../LICENSE" Pack="true" PackagePath="" />
</ItemGroup>
</Project>
15 changes: 7 additions & 8 deletions RaygunCore/RaygunCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="12.0.1" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Http" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="2.2.0" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="3.1.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="3.1.0" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="3.1.0" />
<PackageReference Include="Microsoft.Extensions.Http" Version="3.1.0" />
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="3.1.0" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="3.1.0" />
</ItemGroup>

</Project>

0 comments on commit 9a20b41

Please sign in to comment.