In our ASP.NET Core 2.1 solution, we have placed EF and migrations into a separate project.
It is fine for us manage migrations from default project thanks to CLI e.g :
dotnet ef migrations add NewMigration --project MyApp.MyBdd
In this example, we set MyApp.MyBdd as target project.
But the WebDeploy wizard doesn't shows any settings about Bdd migration.
I can manually set EF migration into pubxml file like this :
Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<TimeStampOfAssociatedLegacyPublishXmlFile />
<EncryptedPassword />
</PropertyGroup>
<ItemGroup>
<EFMigrations Include="MyApp.MyBdd.MyDbContext">
<Value>Server=MyServer%3bDatabase=MyBdd%3bIntegrated Security=True%3b</Value>
</EFMigrations>
</ItemGroup>
</Project>
Entity Framework SQL Script generation fails (nothing into logs)
Question: how to set target project to webdeploy settings file?