You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`set EfMigrationsNamespace=%1
set EfMigrationsDllName=%2.dll
set EfMigrationsDllDepsJson=%2.deps.json
set DllDir=%cd%
set PathToNuGetPackages=%USERPROFILE%.nuget\packages
set NuGetFallbackFolder="C:\Program Files\dotnet\sdk\NuGetFallbackFolder"
set PathToEfDll="C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.entityframeworkcore.tools.dotnet\2.0.0\tools\netcoreapp2.0\ef.dll"
This works locally, but fails in the hosted agent because it cannot find the location of %PathtoEfDll%. Where can I reliably locate the ef.dll on the hosted vs2017 build agent?
Reacted by Dennis Daume, Soheil Alizadeh and Nacho Orlandoni
@footedr Are you saying that ef.dll is not present on the disk after installation of the .NET 2.0 SDK? Have you checked whether it is under Program Files or Program Files (x86)?
Are you saying that ef.dll is not present on the disk after installation of the .NET 2.0 SDK? Have you checked whether it is under Program Files or Program Files (x86)?
Correct. I tried both Program Files and Program Files (x86).
I managed to find the ef.dll and copy it in my artifacts. But when I run it in a Release I get the following error: A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found in...
Anyone?
Just a comment / question: I have a legacy app I'm migrating to EF Core 2.0 and one of the first things I did was change migrations to use EF Core 2.0 migrations running at app startup. I was considering changing this to run migrations during VSTS CD Release instead, but it looks like there's a gap in VSTS support.
Anyone working with VSTS to make dotnet ef easier to run during release? I'd be willing to start that discussion (VSTS forum, or SO).
In the end it proved too fiddly. I've moved to using migrations when the app starts up. I feel bad but I haven't succeeded with other avenues and I'm out of time. I need to ship.
This all feels harder than it ought to and I wonder if the team would consider giving this some love?
Thanks for all your work!
Reacted by Chris Tracy, Scott Wilson and Wahid Bitar
Activity
ajcvickers commentedon Sep 18, 2017
@footedr Are you saying that ef.dll is not present on the disk after installation of the .NET 2.0 SDK? Have you checked whether it is under Program Files or Program Files (x86)?
footedr commentedon Sep 19, 2017
Correct. I tried both Program Files and Program Files (x86).
broersa commentedon Oct 6, 2017
I managed to find the ef.dll and copy it in my artifacts. But when I run it in a Release I get the following error: A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found in...
Anyone?
bricelam commentedon Oct 9, 2017
You may also need to copy
ef.runtimeconfig.json...yzorg commentedon Dec 7, 2017
Just a comment / question: I have a legacy app I'm migrating to EF Core 2.0 and one of the first things I did was change migrations to use EF Core 2.0 migrations running at app startup. I was considering changing this to run migrations during VSTS CD Release instead, but it looks like there's a gap in VSTS support.
Anyone working with VSTS to make
dotnet efeasier to run during release? I'd be willing to start that discussion (VSTS forum, or SO).johnnyreilly commentedon Mar 4, 2018
I'd just like to second what @yzorg said; I think it would be tremendous if deploying EF Core migrations was a "first class citizen" in VSTS.
I've found myself looking at various solutions:
In the end it proved too fiddly. I've moved to using migrations when the app starts up. I feel bad but I haven't succeeded with other avenues and I'm out of time. I need to ship.
This all feels harder than it ought to and I wonder if the team would consider giving this some love?
Thanks for all your work!
ErikEJ commentedon Mar 4, 2018
Maybe someone in the Community could publish a VSTS extension?
yzorg commentedon Mar 8, 2018
Maybe this will come with the Core 2.1 support for global installed tools? (Like npm install --global but for dotnet CLI tools.)
Any plans to add a migration tool as a Core 2.1 global CLI tool?
28 remaining items
ajcvickers commentedon Apr 23, 2022
Note from triage: we believe this is covered by bundles.