Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save default-writer/5c85233c3f2844b8bc86a4ffea49af6d to your computer and use it in GitHub Desktop.
Save default-writer/5c85233c3f2844b8bc86a4ffea49af6d to your computer and use it in GitHub Desktop.
ASP.NET Core 2.0 MVC + EF Core 2.0 fixes
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<!--https://blogs.msdn.microsoft.com/dotnet/2017/08/14/announcing-entity-framework-core-2-0-->
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.3" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="2.0.0" />
<!--https://docs.microsoft.com/en-us/ef/core/get-started/aspnetcore/existing-db#blogging-database-->
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="2.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="2.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="2.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="2.0.1" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.0.1" />
</ItemGroup>
<ItemGroup>
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.0.1" />
<!--https://docs.microsoft.com/en-us/ef/core/miscellaneous/cli/dotnet-->
<DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="2.0.0" />
</ItemGroup>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment