-
-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Audit.NET / Audit.EntityFramework.Core: Upgrade to net7.0 as target, …
…adding support for EF Core 7.0.0 (#544)
- Loading branch information
1 parent
5d2e886
commit 754de28
Showing
62 changed files
with
564 additions
and
424 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
219 changes: 112 additions & 107 deletions
219
src/Audit.EntityFramework.Core/Audit.EntityFramework.Core.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,124 +1,129 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<Description>Generate Audit Logs from EntityFramework context changes</Description> | ||
<Copyright>Copyright 2016</Copyright> | ||
<AssemblyTitle>Audit.EntityFramework.Core</AssemblyTitle> | ||
<Authors>Federico Colombo</Authors> | ||
<TargetFrameworks>netstandard1.5;netstandard2.0;net461;netstandard2.1;net472;net5.0;net6.0</TargetFrameworks> | ||
<DefineConstants>$(DefineConstants);STRONG_NAME;EF_CORE</DefineConstants> | ||
<NoWarn>$(NoWarn);1591</NoWarn> | ||
<GenerateDocumentationFile>true</GenerateDocumentationFile> | ||
<AssemblyName>Audit.EntityFramework.Core</AssemblyName> | ||
<AssemblyOriginatorKeyFile>../StrongName/Audit.NET.snk</AssemblyOriginatorKeyFile> | ||
<SignAssembly>true</SignAssembly> | ||
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign> | ||
<PackageId>Audit.EntityFramework.Core</PackageId> | ||
<PackageTags>Audit;Trail;Log;EntityFramework;Core</PackageTags> | ||
<PackageIcon>icon.png</PackageIcon> | ||
<PackageProjectUrl>https://github.com/thepirat000/Audit.NET</PackageProjectUrl> | ||
<NetStandardImplicitPackageVersion Condition=" '$(TargetFramework)' == 'netstandard2.0' ">2.0.3</NetStandardImplicitPackageVersion> | ||
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute> | ||
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute> | ||
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute> | ||
<PackageLicenseExpression>MIT</PackageLicenseExpression> | ||
<RepositoryUrl>https://github.com/thepirat000/Audit.NET</RepositoryUrl> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<Description>Generate Audit Logs from EntityFramework context changes</Description> | ||
<Copyright>Copyright 2016</Copyright> | ||
<AssemblyTitle>Audit.EntityFramework.Core</AssemblyTitle> | ||
<Authors>Federico Colombo</Authors> | ||
<TargetFrameworks>netstandard1.5;netstandard2.0;net461;netstandard2.1;net472;net5.0;net6.0;net7.0</TargetFrameworks> | ||
<DefineConstants>$(DefineConstants);STRONG_NAME;EF_CORE</DefineConstants> | ||
<NoWarn>$(NoWarn);1591</NoWarn> | ||
<GenerateDocumentationFile>true</GenerateDocumentationFile> | ||
<AssemblyName>Audit.EntityFramework.Core</AssemblyName> | ||
<AssemblyOriginatorKeyFile>../StrongName/Audit.NET.snk</AssemblyOriginatorKeyFile> | ||
<SignAssembly>true</SignAssembly> | ||
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign> | ||
<PackageId>Audit.EntityFramework.Core</PackageId> | ||
<PackageTags>Audit;Trail;Log;EntityFramework;Core</PackageTags> | ||
<PackageIcon>icon.png</PackageIcon> | ||
<PackageProjectUrl>https://github.com/thepirat000/Audit.NET</PackageProjectUrl> | ||
<NetStandardImplicitPackageVersion Condition=" '$(TargetFramework)' == 'netstandard2.0' ">2.0.3</NetStandardImplicitPackageVersion> | ||
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute> | ||
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute> | ||
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute> | ||
<PackageLicenseExpression>MIT</PackageLicenseExpression> | ||
<RepositoryUrl>https://github.com/thepirat000/Audit.NET</RepositoryUrl> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard1.5' "> | ||
<DefineConstants>$(DefineConstants);EF_CORE_1</DefineConstants> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(TargetFramework)' == 'net461' "> | ||
<DefineConstants>$(DefineConstants);EF_CORE_2</DefineConstants> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' or '$(TargetFramework)' == 'net472' "> | ||
<DefineConstants>$(DefineConstants);EF_CORE_3</DefineConstants> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard2.1' or '$(TargetFramework)' == 'net5.0' "> | ||
<DefineConstants>$(DefineConstants);EF_CORE_5</DefineConstants> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(TargetFramework)' == 'net6.0' "> | ||
<DefineConstants>$(DefineConstants);EF_CORE_6</DefineConstants> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard1.5' "> | ||
<DefineConstants>$(DefineConstants);EF_CORE_1</DefineConstants> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(TargetFramework)' == 'net461' "> | ||
<DefineConstants>$(DefineConstants);EF_CORE_2;EF_CORE_2_OR_GREATER</DefineConstants> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' or '$(TargetFramework)' == 'net472' "> | ||
<DefineConstants>$(DefineConstants);EF_CORE_3;EF_CORE_2_OR_GREATER;EF_CORE_3_OR_GREATER</DefineConstants> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard2.1' or '$(TargetFramework)' == 'net5.0' "> | ||
<DefineConstants>$(DefineConstants);EF_CORE_5;EF_CORE_2_OR_GREATER;EF_CORE_3_OR_GREATER;EF_CORE_5_OR_GREATER</DefineConstants> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(TargetFramework)' == 'net6.0' "> | ||
<DefineConstants>$(DefineConstants);EF_CORE_6;EF_CORE_2_OR_GREATER;EF_CORE_3_OR_GREATER;EF_CORE_5_OR_GREATER;EF_CORE_6_OR_GREATER</DefineConstants> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(TargetFramework)' == 'net7.0' "> | ||
<DefineConstants>$(DefineConstants);EF_CORE_7;EF_CORE_2_OR_GREATER;EF_CORE_3_OR_GREATER;EF_CORE_5_OR_GREATER;EF_CORE_6_OR_GREATER</DefineConstants> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<None Include="..\..\LICENSE" Pack="true" PackagePath="LICENSE" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="..\Audit.EntityFramework\**\*.cs" Exclude="..\Audit.EntityFramework\obj\**\*.*;..\**\AssemblyInfo.cs" /> | ||
</ItemGroup> | ||
<None Include="..\..\LICENSE" Pack="true" PackagePath="LICENSE" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Compile Remove="ConfigurationApi\**" /> | ||
<EmbeddedResource Remove="ConfigurationApi\**" /> | ||
<None Remove="ConfigurationApi\**" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="..\Audit.EntityFramework\**\*.cs" Exclude="..\Audit.EntityFramework\obj\**\*.*;..\**\AssemblyInfo.cs" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Audit.NET\Audit.NET.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.1' "> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="5.0.1" /> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="5.0.1" /> | ||
<PackageReference Include="Microsoft.CSharp" Version="4.5.0" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Remove="ConfigurationApi\**" /> | ||
<EmbeddedResource Remove="ConfigurationApi\**" /> | ||
<None Remove="ConfigurationApi\**" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' "> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.1.0" /> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="3.1.0" /> | ||
<PackageReference Include="Microsoft.CSharp" Version="4.5.0" /> | ||
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" /> | ||
<ItemGroup> | ||
<ProjectReference Include="..\Audit.NET\Audit.NET.csproj" /> | ||
</ItemGroup> | ||
|
||
</ItemGroup> | ||
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.1' "> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="5.0.1" /> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="5.0.1" /> | ||
<PackageReference Include="Microsoft.CSharp" Version="4.5.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.5' "> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="1.1.2" /> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="1.1.2" /> | ||
</ItemGroup> | ||
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' "> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.1.0" /> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="3.1.0" /> | ||
<PackageReference Include="Microsoft.CSharp" Version="4.5.0" /> | ||
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" /> | ||
|
||
<ItemGroup Condition=" '$(TargetFramework)' == 'net461' "> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="2.2.4" /> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="2.2.4" /> | ||
<Reference Include="System" /> | ||
<Reference Include="Microsoft.CSharp" /> | ||
<Reference Include="System.Transactions" /> | ||
</ItemGroup> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition=" '$(TargetFramework)' == 'net472' "> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.1.0" /> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="3.1.0" /> | ||
<Reference Include="System" /> | ||
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" /> | ||
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.5' "> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="1.1.2" /> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="1.1.2" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition=" '$(TargetFramework)' == 'net461' "> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="2.2.4" /> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="2.2.4" /> | ||
<Reference Include="System" /> | ||
<Reference Include="Microsoft.CSharp" /> | ||
<Reference Include="System.Transactions" /> | ||
</ItemGroup> | ||
|
||
<Reference Include="Microsoft.CSharp" /> | ||
<Reference Include="System.Transactions" /> | ||
</ItemGroup> | ||
<ItemGroup Condition=" '$(TargetFramework)' == 'net472' "> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.1.0" /> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="3.1.0" /> | ||
<Reference Include="System" /> | ||
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" /> | ||
<Reference Include="Microsoft.CSharp" /> | ||
<Reference Include="System.Transactions" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition=" '$(TargetFramework)' != 'net5.0' AND '$(TargetFramework)' != 'net6.0' "> | ||
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" /> | ||
</ItemGroup> | ||
<ItemGroup Condition=" '$(TargetFramework)' == 'net5.0' "> | ||
<PackageReference Include="System.Text.Json" Version="5.0.2" /> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="5.0.8" /> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="5.0.8" /> | ||
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" /> | ||
</ItemGroup> | ||
<ItemGroup Condition=" '$(TargetFramework)' == 'net6.0' "> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.0" /> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="6.0.0" /> | ||
</ItemGroup> | ||
<PropertyGroup Condition=" '$(TargetFramework)' != 'net5.0' AND '$(TargetFramework)' != 'net6.0' "> | ||
<DefineConstants>$(DefineConstants);IS_NK_JSON</DefineConstants> | ||
</PropertyGroup> | ||
<ItemGroup Condition=" '$(TargetFramework)' != 'net5.0' AND '$(TargetFramework)' != 'net6.0' AND '$(TargetFramework)' != 'net7.0' "> | ||
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" /> | ||
</ItemGroup> | ||
<ItemGroup Condition=" '$(TargetFramework)' == 'net5.0' "> | ||
<PackageReference Include="System.Text.Json" Version="5.0.2" /> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="5.0.8" /> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="5.0.8" /> | ||
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" /> | ||
</ItemGroup> | ||
<ItemGroup Condition=" '$(TargetFramework)' == 'net6.0' "> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.0" /> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="6.0.0" /> | ||
</ItemGroup> | ||
<ItemGroup Condition=" '$(TargetFramework)' == 'net7.0' "> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.0" /> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="7.0.0" /> | ||
</ItemGroup> | ||
<PropertyGroup Condition=" '$(TargetFramework)' != 'net5.0' AND '$(TargetFramework)' != 'net6.0' AND '$(TargetFramework)' != 'net7.0' "> | ||
<DefineConstants>$(DefineConstants);IS_NK_JSON</DefineConstants> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition=" '$(TargetFramework)' == 'net5.0' OR '$(TargetFramework)' == 'net6.0' "> | ||
<DefineConstants>$(DefineConstants);IS_TEXT_JSON</DefineConstants> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<None Include="images\icon.png" Pack="true" PackagePath="\"/> | ||
</ItemGroup> | ||
<PropertyGroup Condition=" '$(TargetFramework)' == 'net5.0' OR '$(TargetFramework)' == 'net6.0' OR '$(TargetFramework)' == 'net7.0' "> | ||
<DefineConstants>$(DefineConstants);IS_TEXT_JSON</DefineConstants> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<None Include="images\icon.png" Pack="true" PackagePath="\" /> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.