Weiferl.Database.EF/Weiferl.Databas.EF/Weiferl.Databas.EF.csproj

56 lines
2.4 KiB
XML
Raw Normal View History

2023-07-08 19:43:36 +02:00
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Title>Weiferl Database Ef</Title>
2023-07-09 11:51:47 +02:00
<Version>1.0.3</Version>
2023-07-08 19:43:36 +02:00
<VersionSuffix></VersionSuffix>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="EfCore.SchemaCompare" Version="7.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.8" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="7.0.8">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="7.0.8" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="7.0.8" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="7.0.8">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="MySql.EntityFrameworkCore" Version="7.0.2" />
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="7.0.0" />
</ItemGroup>
<Target Name="AutoIncrementVersion" BeforeTargets="Pack">
<PropertyGroup>
<Major>$(VersionMajor)</Major>
<Minor>$(VersionMinor)</Minor>
<Patch>$(VersionPatch)</Patch>
<VersionPrefix>$(Major).$(Minor).$(Patch)</VersionPrefix>
</PropertyGroup>
<!-- Erhöhe die Versionsnummer -->
<PropertyGroup Condition="'$(Major)' == '' or '$(Minor)' == '' or '$(Patch)' == ''">
<VersionMajor>1</VersionMajor>
<VersionMinor>0</VersionMinor>
<VersionPatch>0</VersionPatch>
</PropertyGroup>
<PropertyGroup>
<VersionPatch Condition="'$(PackageVersion)' != ''">$(VersionPatch + 1)</VersionPatch>
<VersionMinor Condition="'$(VersionPatch)' == '' or '$(PackageVersion)' == ''">$(Minor + 1)</VersionMinor>
<VersionMajor Condition="'$(VersionPatch)' == '' and '$(PackageVersion)' == ''">$(Major + 1)</VersionMajor>
</PropertyGroup>
<PropertyGroup>
<PackageVersion>$(VersionPrefix)</PackageVersion>
</PropertyGroup>
</Target>
</Project>