Skip to content

Commit 83d8511

Browse files
author
Tomasz Dłuski
committed
update all dependencies to .net 5
1 parent 36d4858 commit 83d8511

File tree

7 files changed

+21
-24
lines changed

7 files changed

+21
-24
lines changed

EntityFrameworkCore.Diagrams/EntityFrameworkCore.Diagrams.Demo/EntityFrameworkCore.Diagrams.Demo.csproj

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp1.1</TargetFramework>
4+
<TargetFramework>net5.0</TargetFramework>
55
</PropertyGroup>
66

77
<PropertyGroup>
88
<PackageTargetFallback>$(PackageTargetFallback);portable-net45+win8+wp8+wpa81;</PackageTargetFallback>
99
</PropertyGroup>
1010
<ItemGroup>
11-
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.0.0" />
12-
<PackageReference Include="Microsoft.AspNetCore" Version="1.1.2" />
13-
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.1.3" />
14-
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="1.1.2" />
15-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="1.1.2" />
16-
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="1.1.2" />
17-
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="1.1.2" />
18-
<PackageReference Include="Microsoft.VisualStudio.Web.BrowserLink" Version="1.1.2" />
19-
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="1.1.0" />
11+
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.19.0" />
12+
<PackageReference Include="Microsoft.AspNetCore" Version="2.2.0" />
13+
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.2.0" />
14+
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="2.2.0" />
15+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="5.0.12" />
16+
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="5.0.12">
17+
<PrivateAssets>all</PrivateAssets>
18+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
19+
</PackageReference>
20+
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="5.0.0" />
21+
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="5.0.10" />
2022
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL.Design" Version="1.1.0" />
2123
</ItemGroup>
2224
<ItemGroup>

EntityFrameworkCore.Diagrams/EntityFrameworkCore.Diagrams.Demo/Migrations/20170713212439_Initial.Designer.cs

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

EntityFrameworkCore.Diagrams/EntityFrameworkCore.Diagrams.Demo/Migrations/20170713212439_Initial.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using System.Collections.Generic;
33
using Microsoft.EntityFrameworkCore.Migrations;
44
using Microsoft.EntityFrameworkCore.Metadata;
5+
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
56

67
namespace EntityFrameworkCore.Diagrams.Demo.Migrations
78
{

EntityFrameworkCore.Diagrams/EntityFrameworkCore.Diagrams.Demo/Migrations/ApplicationDbContextModelSnapshot.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using Microsoft.EntityFrameworkCore.Metadata;
55
using Microsoft.EntityFrameworkCore.Migrations;
66
using EntityFrameworkCore.Diagrams.Demo.Models;
7+
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
78

89
namespace EntityFrameworkCore.Diagrams.Demo.Migrations
910
{

EntityFrameworkCore.Diagrams/EntityFrameworkCore.Diagrams.Demo/Startup.cs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,9 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Threading.Tasks;
5-
using Microsoft.AspNetCore.Builder;
1+
using Microsoft.AspNetCore.Builder;
62
using Microsoft.AspNetCore.Hosting;
73
using Microsoft.Extensions.Configuration;
84
using Microsoft.Extensions.DependencyInjection;
95
using Microsoft.Extensions.Logging;
10-
using EntityFrameworkCore.Diagrams;
116
using EntityFrameworkCore.Diagrams.Demo.Models;
12-
using Npgsql.EntityFrameworkCore.PostgreSQL.Storage;
13-
using Npgsql.EntityFrameworkCore.PostgreSQL;
14-
using Npgsql.EntityFrameworkCore;
15-
using Npgsql;
167
using Microsoft.EntityFrameworkCore;
178

189
namespace EntityFrameworkCore.Diagrams.Demo
@@ -44,13 +35,10 @@ public void ConfigureServices(IServiceCollection services)
4435
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
4536
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
4637
{
47-
loggerFactory.AddConsole(Configuration.GetSection("Logging"));
48-
loggerFactory.AddDebug();
4938

5039
if (env.IsDevelopment())
5140
{
5241
app.UseDeveloperExceptionPage();
53-
app.UseBrowserLink();
5442
app.AddEfDiagrams<ApplicationDbContext>();
5543
}
5644
else

EntityFrameworkCore.Diagrams/EntityFrameworkCore.Diagrams/EfDiagramsOptions.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ internal static string GetEfDiagramsContentRoot()
3636
// NOTE: this means that we are not installed as NuGet packange
3737
contentRoot = Path.Combine(dllPath, "..", "..", "..", "..", "EntityFrameworkCore.Diagrams");
3838
}
39+
if (!Directory.Exists(contentRoot))
40+
{
41+
Directory.CreateDirectory(contentRoot);
42+
}
3943
contentRoot = Path.Combine(contentRoot, "wwwroot", "db-diagrams");
4044
return contentRoot;
4145
}

EntityFrameworkCore.Diagrams/EntityFrameworkCore.Diagrams/EntityFrameworkCore.Diagrams.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ https://github.com/EvAlex/ef-db-diagrams
3030
</PropertyGroup>
3131

3232
<PropertyGroup>
33-
<TargetFramework>netstandard1.6</TargetFramework>
33+
<TargetFramework>netstandard2.1</TargetFramework>
3434
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
3535
<AssemblyVersion>0.4.2.0</AssemblyVersion>
3636
<FileVersion>0.4.2.0</FileVersion>

0 commit comments

Comments
 (0)