Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
Upgrade all tha thingz
Browse files Browse the repository at this point in the history
  • Loading branch information
Gervasio Marchand committed Nov 17, 2018
1 parent e02cb7a commit f614f10
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pipeline:
- mkdir -p app/backend

- cd Traducir.Api
- dotnet publish -c Release -f netcoreapp2.0 -o ../app/backend
- dotnet publish -c Release -f netcoreapp2.1 -o ../app/backend
frontend:
image: g3rv4/traducir-builder
commands:
Expand Down
26 changes: 16 additions & 10 deletions Traducir.Api/Traducir.Api.csproj
Original file line number Diff line number Diff line change
@@ -1,25 +1,31 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFramework>netcoreapp2.1</TargetFramework>
<PublishWithAspNetCoreTargetManifest>false</PublishWithAspNetCoreTargetManifest>
<CodeAnalysisRuleSet>ca.ruleset</CodeAnalysisRuleSet>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.3" />
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.6.0" />
<PackageReference Include="MiniProfiler.AspNetCore.Mvc" Version="4.0.0-alpha9-00206" />
<PackageReference Include="StackExchange.Exceptional.AspNetCore" Version="2.0.0-rc2.12" />
<PackageReference Include="Simple.Migrations" Version="0.9.19" />
<PackageReference Include="StyleCop.Analyzers" Version="1.0.2" />
<PackageReference Include="System.Data.SqlClient" Version="4.4.2" />
<ProjectReference Include="..\Traducir.Core\Traducir.Core.csproj" />
<ProjectReference Include="..\Traducir.Migrations\Traducir.Migrations.csproj" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Traducir.Core\Traducir.Core.csproj" />
<ProjectReference Include="..\Traducir.Migrations\Traducir.Migrations.csproj" />
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.1.6" />
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.6.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="MiniProfiler.AspNetCore.Mvc" Version="4.0.138" />
<PackageReference Include="Simple.Migrations" Version="0.9.19" />
<PackageReference Include="StackExchange.Exceptional.AspNetCore" Version="2.0.0-rc2.28" />
<PackageReference Include="StyleCop.Analyzers" Version="1.0.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="System.Data.SqlClient" Version="4.5.1" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions Traducir.Core/Services/SOStringService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public async Task StoreNewStringsAsync(ImmutableArray<TransifexString> strings)
table.Rows.Add(s.NormalizedKey, s.Key, s.Variant, s.Source, s.Translation);
}

var copyDb = (SqlConnection)db.InnerConnection;
var copyDb = (SqlConnection)db.WrappedConnection;
using (var copy = new SqlBulkCopy(copyDb))
{
copy.DestinationTableName = "dbo.ImportTable";
Expand Down Expand Up @@ -442,7 +442,7 @@ public async Task PullSODump(string dumpUrl)
s.TranslationOverride == "NULL" ? null : s.TranslationOverride);
}

var copyDb = (SqlConnection)db.InnerConnection;
var copyDb = (SqlConnection)db.WrappedConnection;
using (var copy = new SqlBulkCopy(copyDb))
{
copy.DestinationTableName = "dbo.SODumpTable";
Expand Down
29 changes: 18 additions & 11 deletions Traducir.Core/Traducir.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,24 @@
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CsvHelper" Version="7.1.0" />
<PackageReference Include="Dapper" Version="1.50.4" />
<PackageReference Include="Jil" Version="2.15.4" />
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.6.0" />
<PackageReference Include="MiniProfiler.AspNetCore.Mvc" Version="4.0.0-alpha9-00206" />
<PackageReference Include="System.Collections.Immutable" Version="1.4.0" />
<PackageReference Include="System.Data.SqlClient" Version="4.4.2" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="2.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="2.0.0" />
<PackageReference Include="StyleCop.Analyzers" Version="1.0.2" />
<ItemGroup>
<PackageReference Include="CsvHelper" Version="9.1.0" />
<PackageReference Include="Dapper" Version="1.50.5" />
<PackageReference Include="Jil" Version="2.16.0" />
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.6.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.Extensions.Configuration" Version="2.1.1" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="2.1.1" />
<PackageReference Include="MiniProfiler.AspNetCore.Mvc" Version="4.0.138" />
<PackageReference Include="StyleCop.Analyzers" Version="1.0.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="System.Collections.Immutable" Version="1.5.0" />
<PackageReference Include="System.Data.SqlClient" Version="4.5.1" />
<PackageReference Include="WebPush" Version="1.0.11" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion Traducir.Migrations/Traducir.Migrations.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<ItemGroup>
<PackageReference Include="Simple.Migrations" Version="0.9.19" />
<PackageReference Include="System.Data.SqlClient" Version="4.4.2" />
<PackageReference Include="System.Data.SqlClient" Version="4.5.1" />
</ItemGroup>

</Project>

0 comments on commit f614f10

Please sign in to comment.