Exdraem
Exdraem
CC#
Created by Exdraem on 3/12/2025 in #help
it seam Entity Framework dont like me. But i will force it to
Good evening together. I've experimenting with exntity Framework and im getting crazy about some basic stuff. Maybe here someone, who can help me. In VSComunity i've created an .net Core 8 Web API and importet the follwing Pakages: <ItemGroup> <PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.14" /> <PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.14"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> </PackageReference> <PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="8.0.0" /> <PackageReference Include="Swashbuckle.AspNetCore" Version="6.6.2" /> </ItemGroup> I've also created an basic Model and App Context Class: If needed. i can provide the Code of the classes. If i try to Create an Migration on an mysql Server, that runs in Docker, i've getting the following Error after completing the Build: Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Das System kann die angegebene Datei nicht finden. File name: 'System.Runtime, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' I've also try to user other Commands like Scaffold-dbContext with the same Error Message. Hope you've an info for me. how i can fix this. Thanks ExDraem
21 replies