EF Core Power Toolsを使用していますが、「DbContext をデータベースと比較」しようとすると問題が発生します。
私はバージョン 2.5.636 を使用しています。以下は、efptparams.txt ファイルにあります。
exec --depsfile "C:\Users\MSE\source\repos\MyProject\Backend\Data\bin\Debug\net5.0\Data.deps.json" --additionalprobingpath "C:\Users\MSE\.nuget\packages" --additionalprobingpath "C:\Program Files\dotnet\sdk\NuGetFallbackFolder" --fx-version "C:\Users\MSE\AppData\Local\Temp\efpt\efpt.dll" contextlist "C:\Users\MSE\source\repos\MyProject\Backend\Data\bin\Debug\net5.0\Data.dll" "C:\Users\MSE\source\repos\MyProject\Backend\MyProjectAPI\bin\Debug\net5.0\MyProjectAPI.dll"
これを試すと、出力ウィンドウに次のように表示されます。
System.ArgumentException: Error:
The application to execute does not exist: 'contextlist'
Parameter name: processResult
at async Task<IEnumerable<string>> EFCorePowerTools.Handlers.Compare.CompareHandler.GetDbContextTypesAsync(string outputPath, Project project) in C:/projects/efcorepowertools/src/GUI/EFCorePowerTools/Handlers/Compare/CompareHandler.cs:line 170
at async Task EFCorePowerTools.Handlers.Compare.CompareHandler.HandleComparisonAsync(string outputPath, Project project) in C:/projects/efcorepowertools/src/GUI/EFCorePowerTools/Handlers/Compare/CompareHandler.cs:line 84