Skip to content

Commit

Permalink
Merge pull request #61 from stone-payments/feat/bumps-to-dotnet8
Browse files Browse the repository at this point in the history
feat: Bumps version to dotnet 8
  • Loading branch information
brennogb authored Feb 8, 2024
2 parents a9541ff + 1ce2b77 commit 276e070
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 91 deletions.
8 changes: 6 additions & 2 deletions src/StrangerData.SqlServer/SqlServerDialect.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
using System;
using System.Collections.Generic;
#if NET8_0_OR_GREATER
using Microsoft.Data.SqlClient;
#else
using System.Data.SqlClient;
#endif
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

Expand Down
37 changes: 24 additions & 13 deletions src/StrangerData.SqlServer/StrangerData.SqlServer.csproj
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<!-- NuGet properties -->
<Id>StrangerData.SqlServer</Id>
<Version>101.0.0</Version>
<Title>StrangerData</Title>
<Authors>Pedro Henrique B. Fernandes;Diego Anckizes;Mateus Dalepiane</Authors>
<PackageLicenseUrl>https://github.com/stone-pagamentos/StrangerData/master/LICENSE</PackageLicenseUrl>
<PackageProjectUrl>https://github.com/stone-pagamentos/StrangerData</PackageProjectUrl>
<Description>MS SQL Server Dialect for StrangerData data generator.</Description>
<Copyright>StoneCo 2021</Copyright>
<Copyright>StoneCo 2024</Copyright>
<PackageTags>fixture;data-builder;fake-data;test-data;integration-test</PackageTags>
<RequireLicenseAcceptance>false</RequireLicenseAcceptance>
<!-- NuGet properties -->
</PropertyGroup>

<PropertyGroup>
<AssemblyTitle>StrangerData - SQL Server Dialect</AssemblyTitle>
<VersionPrefix>100.0.1</VersionPrefix>
<Authors>Pedro Henrique B. Fernandes;Diego Anckizes;Mateus Dalepiane</Authors>
<TargetFrameworks>net452;netcoreapp1.0</TargetFrameworks>
<AssemblyName>StrangerData.SqlServer</AssemblyName>
<PackageId>StrangerData.SqlServer</PackageId>
<PackageTags>fixture;data-builder;fake-data;test-data;integration-test</PackageTags>
<PackageProjectUrl>https://github.com/stone-pagamentos/StrangerData</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/stone-pagamentos/StrangerData/blob/master/LICENSE</PackageLicenseUrl>
<TargetFrameworks>net452;netstandard2.0;net8.0</TargetFrameworks>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
Expand All @@ -21,15 +28,19 @@
<ProjectReference Include="..\StrangerData\StrangerData.csproj" />
</ItemGroup>


<ItemGroup Condition=" '$(TargetFramework)' == 'net452' ">
<PackageReference Include="System.Data.SqlClient" Version="4.3.0" />
<PackageReference Include="System.Data.SqlClient" Version="4.8.6" />
<Reference Include="System" />
<Reference Include="Microsoft.CSharp" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp1.0' ">
<PackageReference Include="System.Data.SqlClient" Version="4.1.0" />
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
<PackageReference Include="System.Data.SqlClient" Version="4.8.6" />
<PackageReference Include="System.Linq" Version="4.3.0" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' ">
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.1.5" />
<PackageReference Include="System.Linq" Version="4.3.0" />
</ItemGroup>

Expand Down
27 changes: 0 additions & 27 deletions src/StrangerData.SqlServer/StrangerData.SqlServer.nuspec

This file was deleted.

33 changes: 20 additions & 13 deletions src/StrangerData/StrangerData.csproj
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Description>Automatically fills your testing database with random generated data.</Description>
<Copyright>StoneCo 2021</Copyright>
<AssemblyTitle>StrangerData</AssemblyTitle>
<VersionPrefix>100.0.1</VersionPrefix>
<!-- NuGet properties -->
<Id>StrangerData</Id>
<Version>101.0.0</Version>
<Title>StrangerData</Title>
<Authors>Pedro Henrique B. Fernandes;Diego Anckizes;Mateus Dalepiane</Authors>
<TargetFrameworks>net452;netcoreapp1.0</TargetFrameworks>
<AssemblyName>StrangerData</AssemblyName>
<PackageId>StrangerData</PackageId>
<PackageTags>fixture;data-builder;fake-data;test-data;integration-test</PackageTags>
<PackageLicenseUrl>https://github.com/stone-pagamentos/StrangerData/master/LICENSE</PackageLicenseUrl>
<PackageProjectUrl>https://github.com/stone-pagamentos/StrangerData</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/stone-pagamentos/StrangerData/blob/master/LICENSE</PackageLicenseUrl>
<Description>Automatically fills your testing database with random generated data for testing purposes.</Description>
<Copyright>StoneCo 2024</Copyright>
<PackageTags>fixture;data-builder;fake-data;test-data;integration-test</PackageTags>
<RequireLicenseAcceptance>false</RequireLicenseAcceptance>
<!-- NuGet properties -->
</PropertyGroup>

<PropertyGroup>
<AssemblyTitle>StrangerData</AssemblyTitle>
<AssemblyName>StrangerData</AssemblyName>
<TargetFrameworks>net452;netstandard2.0;net8.0</TargetFrameworks>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
Expand All @@ -23,10 +30,10 @@
<Reference Include="Microsoft.CSharp" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp1.0' ">
<PackageReference Include="Microsoft.Extensions.Configuration" Version="1.1.1" />
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="1.0.2" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="1.0.2" />
<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' Or '$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" />
</ItemGroup>

</Project>
28 changes: 0 additions & 28 deletions src/StrangerData/StrangerData.nuspec

This file was deleted.

19 changes: 11 additions & 8 deletions test/StrangerData.UnitTests/StrangerData.UnitTests.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<VersionPrefix>100.0.0</VersionPrefix>
<TargetFramework>net452</TargetFramework>
<TargetFramework>net462</TargetFramework>
<AssemblyName>StrangerData.UnitTests</AssemblyName>
<PackageId>StrangerData.UnitTests</PackageId>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
Expand All @@ -16,12 +16,15 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0-preview-20170106-08" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.2.0-beta5-build1225" />
<PackageReference Include="FluentAssertions" Version="4.19.0" />
<PackageReference Include="Moq" Version="4.5.30" />
<PackageReference Include="Newtonsoft.Json" Version="9.0.1" />
<PackageReference Include="xunit" Version="2.2.0-beta5-build3474" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.6">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="Moq" Version="4.20.70" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="xunit" Version="2.6.6" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net452' ">
Expand Down

0 comments on commit 276e070

Please sign in to comment.