I have created a .net core web app targeting the full .net framework
I Have created a class library (.net framework) In this dll I have referenced ef core and created a context. Migrations work when I use the package manager.
The Problem I am currently facing I need to be able to use migrations during a VSTS deployment.
I have tried creating a powershell deployment script in VSTS to call dotnet-ef commands. This doesn't work, because I can't install Microsoft.EntityFrameworkCore.Tools.DotNet in my projects
I have tried to add the reference manually in my .csproj Manual update .csproj
But unfortunately this doesn't solve my problem and only produces this result. Faulty reference
<ItemGroup> <DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="1.0.0" /> <DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="1.0.0" /> </ItemGroup>
similar as setting in this article docs.microsoft.com/en-us/aspnet/core/data/ef-mvc/…? And can you upload the whole project in one drive? – Marina Liu