I have created a .NET Core application. I am using Entity Framework Core with Code first approach and I am creating migrations.
For some reason the .designer.cs
file of the migration is not associated with the principal .cs
file.
I have seen this solution but it seems is not correct for .net core application.
Any help please?
Thank you
Try to use Update instead of Include.
In your .csproj
file, add these lines to the ItemGroup
:
<Compile Update="yourfilename.Designer.cs">
<DependentUpon>yourfilename.cs</DependentUpon>
</Compile>