I am using VS2017 v15.4.1. and using EF Core 2.0. When i create a migration, the migration script is created inside \Migrations folder but the .designer.cs file is creating separately.
Can anyone help how to make the designer file get created inside the main migration file?
Yes, we're all waiting for issue dotnet/project-system#159 to get fixed. 😉 Until then, you can manually edit the *.csproj
file:
<ItemGroup>
<Compile Update="MyMigration.Designer.cs">
<DependentUpon>MyMigration.cs</DependentUpon>
</Compile>
</ItemGroup>