Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<Project>

<PropertyGroup>
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
<LangVersion>latest</LangVersion>
<Nullable>disable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<!-- warnings: 612 [Obsolete], 618 [Obsolete("with message")] -->
<WarningsNotAsErrors>612,618</WarningsNotAsErrors>
</PropertyGroup>

<Choose>
<When Condition="$([System.Text.RegularExpressions.Regex]::IsMatch($(MSBuildProjectName), '.*tests'))">
<PropertyGroup>
<IsPackable>false</IsPackable>
<Nullable>disable</Nullable>
<IsTestProject>true</IsTestProject>
</PropertyGroup>
<ItemGroup>
</ItemGroup>
</When>
</Choose>

</Project>
41 changes: 41 additions & 0 deletions src/Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<Project>
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<!--
This prevents overrides of a version.
If we need to override, it should be temporary and explicit.
When changing this to true, add a comment at the end of this section
with the reasons why and when we can change it back.
-->
<EnablePackageVersionOverride>false</EnablePackageVersionOverride>
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
</PropertyGroup>

<ItemGroup>
<PackageVersion Include="CommandLineParser" Version="2.9.1" />
<PackageVersion Include="dbup-core" Version="6.0.4" />
<PackageVersion Include="dbup-mysql" Version="6.0.4" />
<PackageVersion Include="dbup-postgresql" Version="6.0.0-beta.44" />
<PackageVersion Include="dbup-sqlserver" Version="6.0.0" />
<PackageVersion Include="DotNetEnv" Version="3.1.1" />
<PackageVersion Include="Microsoft.Azure.KeyVault" Version="3.0.5" />
<PackageVersion Include="Microsoft.Azure.Services.AppAuthentication" Version="1.6.2" />
<PackageVersion Include="Npgsql" Version="9.0.2" />
<PackageVersion Include="Optional" Version="4.0.0" />
<PackageVersion Include="System.Text.Encoding.CodePages" Version="9.0.0" />
<PackageVersion Include="YamlDotNet" Version="16.2.1" />
</ItemGroup>

<ItemGroup Label="test packages">
<PackageVersion Include="FakeItEasy" Version="8.3.0" />
<PackageVersion Include="FluentAssertions" Version="7.0.0" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageVersion Include="MSTest.TestAdapter" Version="3.6.4" />
<PackageVersion Include="MSTest.TestFramework" Version="3.6.4" />
<PackageVersion Include="MySql.Data" Version="9.1.0" />
<PackageVersion Include="Testcontainers" Version="4.1.0" />
<PackageVersion Include="Testcontainers.MsSql" Version="4.1.0" />
<PackageVersion Include="Testcontainers.MySql" Version="4.1.0" />
<PackageVersion Include="Testcontainers.PostgreSql" Version="4.1.0" />
</ItemGroup>
</Project>
91 changes: 14 additions & 77 deletions src/dbup-cli.integration-tests/dbup-cli.integration-tests.csproj
Original file line number Diff line number Diff line change
@@ -1,94 +1,31 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
<LangVersion>latest</LangVersion>
<RootNamespace>DbUp.Cli.IntegrationTests</RootNamespace>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="dbup-postgresql" Version="6.0.0-beta.44" />
<PackageReference Include="FakeItEasy" Version="8.3.0" />
<PackageReference Include="FluentAssertions" Version="7.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageReference Include="MSTest.TestAdapter" Version="3.6.4" />
<PackageReference Include="MSTest.TestFramework" Version="3.6.4" />
<PackageReference Include="MySql.Data" Version="9.1.0" />
<PackageReference Include="Npgsql" Version="9.0.2" />
<PackageReference Include="Testcontainers" Version="4.1.0" />
<PackageReference Include="Testcontainers.MsSql" Version="4.1.0" />
<PackageReference Include="Testcontainers.MySql" Version="4.1.0" />
<PackageReference Include="Testcontainers.PostgreSql" Version="4.1.0" />
<PackageReference Include="dbup-postgresql" />
<PackageReference Include="FakeItEasy" />
<PackageReference Include="FluentAssertions" />
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="MSTest.TestAdapter" />
<PackageReference Include="MSTest.TestFramework" />
<PackageReference Include="MySql.Data" />
<PackageReference Include="Npgsql" />
<PackageReference Include="Testcontainers" />
<PackageReference Include="Testcontainers.MsSql" />
<PackageReference Include="Testcontainers.MySql" />
<PackageReference Include="Testcontainers.PostgreSql" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\dbup-cli.tests.core\dbup-cli.tests.core.csproj" />
<ProjectReference Include="..\dbup-cli\dbup-cli.csproj" />
</ItemGroup>

<ItemGroup>
<None Update="Scripts\MySql\JournalTableScript\001.sql">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Scripts\MySql\JournalTableScript\dbup.yml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Scripts\PostgreSql\EmptyScript\001.sql">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Scripts\PostgreSql\EmptyScript\dbup.yml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Scripts\PostgreSql\EmptyScript\001.sql">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Scripts\PostgreSql\EmptyScript\dbup.yml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Scripts\PostgreSql\JournalTableScript\001.sql">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Scripts\PostgreSql\JournalTableScript\dbup.yml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Scripts\PostgreSql\Timeout\001.sql">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Scripts\PostgreSql\Timeout\dbup.yml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Scripts\MySql\EmptyScript\001.sql">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Scripts\MySql\EmptyScript\dbup.yml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Scripts\MySql\Timeout\001.sql">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Scripts\MySql\Timeout\dbup.yml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Scripts\SqlServer\EmptyScript\001.sql">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Scripts\SqlServer\EmptyScript\dbup.yml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Scripts\SqlServer\JournalTableScript\001.sql">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Scripts\SqlServer\JournalTableScript\dbup.yml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Scripts\SqlServer\Timeout\001.sql">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Scripts\SqlServer\Timeout\dbup.yml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="$Scripts\**" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>

</Project>
3 changes: 1 addition & 2 deletions src/dbup-cli.tests.core/dbup-cli.tests.core.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
<RootNamespace>DbUp.Cli.Tests</RootNamespace>
</PropertyGroup>

Expand All @@ -10,7 +9,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="dbup-postgresql" Version="6.0.0-beta.44" />
<PackageReference Include="dbup-postgresql" />
</ItemGroup>

</Project>
Loading
Loading