Skip to content

Commit b81b687

Browse files
authored
Merge pull request #21 from GaProgMan/net-core-2-1
Upgraded to .NET and ASP .NET Core 2.1
2 parents 6187214 + 8e97e66 commit b81b687

File tree

6 files changed

+16
-25
lines changed

6 files changed

+16
-25
lines changed

dwCheckApi.Common/dwCheckApi.Common.csproj

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
<TargetFramework>netcoreapp2.1</TargetFramework>
44
</PropertyGroup>
55
<ItemGroup>
6-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="2.1.0-rc1-final" />
7-
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="2.1.0-rc1-final" />
8-
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="2.1.0-rc1-final" />
6+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="2.1.1" />
7+
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="2.1.1" />
8+
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="2.1.1" />
99
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.Design" Version="2.0.0-preview1-final" />
10-
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="2.1.0-rc1-final" />
10+
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="2.1.1" />
1111
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
1212
<PackageReference Include="NETStandard.Library" Version="2.0.3" />
13-
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="2.1.0-rc1-final" />
13+
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="2.1.1" />
1414
</ItemGroup>
1515

1616
<ItemGroup>

dwCheckApi.Persistence/dwCheckApi.Persistence.csproj

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
<TargetFramework>netcoreapp2.1</TargetFramework>
44
</PropertyGroup>
55
<ItemGroup>
6-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="2.1.0-rc1-final" />
7-
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="2.1.0-rc1-final" />
8-
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="2.1.0-rc1-final" />
6+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="2.1.1" />
7+
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="2.1.1" />
8+
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="2.1.1" />
99
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.Design" Version="2.0.0-preview1-final" />
10-
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="2.1.0-rc1-final" />
10+
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="2.1.1" />
1111
<PackageReference Include="NETStandard.Library" Version="2.0.3" />
1212
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
1313
</ItemGroup>

dwCheckApi.Tests/dwCheckApi.Tests.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
</PropertyGroup>
1111
<ItemGroup>
1212
<PackageReference Include="xunit" Version="2.3.1" />
13-
<PackageReference Include="Moq" Version="4.8.2" />
14-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.7.0" />
13+
<PackageReference Include="Moq" Version="4.8.3" />
14+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.7.2" />
1515
</ItemGroup>
1616
<ItemGroup>
1717
<DotNetCliToolReference Include="dotnet-xunit" Version="2.3.1" />

dwCheckApi/ConfigureContainerExtenstions.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using dwCheckApi.Persistence;
66
using Microsoft.EntityFrameworkCore;
77
using Microsoft.Extensions.DependencyInjection;
8-
using Microsoft.Extensions.PlatformAbstractions;
98
using Swashbuckle.AspNetCore.Swagger;
109

1110
namespace dwCheckApi
@@ -94,7 +93,7 @@ public static void AddSwagger(this IServiceCollection serviceCollection, string
9493

9594
if (!includeXmlDocumentation) return;
9695
// Set the comments path for the Swagger JSON and UI.
97-
var basePath = PlatformServices.Default.Application.ApplicationBasePath;
96+
var basePath = Directory.GetCurrentDirectory();
9897
var xmlPath = Path.Combine(basePath, "dwCheckApi.xml");
9998
if (File.Exists(xmlPath))
10099
{

dwCheckApi/dwCheckApi.csproj

+3-11
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,14 @@
2525
</Content>
2626
</ItemGroup>
2727
<ItemGroup>
28-
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.1.0-rc1-final" />
29-
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="2.1.0-rc1-final" />
28+
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.1" />
3029
<PackageReference Include="NETStandard.Library" Version="2.0.3" />
3130
<PackageReference Include="ClacksMiddlware" Version="2.0.2" />
3231
<PackageReference Include="OwaspHeaders.Core" Version="3.3.2" />
33-
<PackageReference Include="Swashbuckle.AspNetCore" Version="1.1.0" />
32+
<PackageReference Include="Swashbuckle.AspNetCore" Version="2.5.0" />
3433
</ItemGroup>
3534
<ItemGroup>
36-
<!--
37-
Useful for the `dotnet-aspnet-codegenerator` command line
38-
options (for generating controllers and views
39-
-->
40-
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.1.0-preview1-final" />
41-
</ItemGroup>
42-
<!-- Required to ensure that we have the appsettings file copied to the publish directory -->
43-
<ItemGroup>
35+
<!-- Required to ensure that we have the appsettings file copied to the publish directory -->
4436
<None Include="appsettings.Production.json" CopyToPublishDirectory="Always" CopyToOutputDirectory="Always" />
4537
</ItemGroup>
4638
<ItemGroup>

global.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"sdk": {
3-
"version": "2.1.300-rc1-008673"
3+
"version": "2.1.301"
44
}
55
}

0 commit comments

Comments
 (0)