Use Execute.Script() come out "!!! Illegal characters in path" for no reason
See original GitHub issueDescribe the question
Use Execute.Script()
come out
!!! Illegal characters in path
error in PowerShell. Multiple time checked, the error come out for no reason Tried absolute path also come out same error.
The Migration Code
using FluentMigrator;
namespace WPF_SQLite
{
[Migration(20200428022647)]
public class RenameColumnIdFromTablePersonToPersonId : Migration
{
public override void Up()
{
Execute.Script(@"Migrations\Scripts\20200428022647_RenameColumnIdFromTablePersonToPersonId.sql");
}
public override void Down()
{
Execute.Script(@"Migrations\Scripts\20200428022647_RenameColumnIdFromTablePersonToPersonId_Down.sql");
}
}
}
The PowerShell Command
.\packages\FluentMigrator.Console.3.2.6\tools\net461\any\Migrate.exe -t:migrate -db Sqlite -configPath "D:\Jason Tam\Desktop\Playground\WPF (.NET Framework)\WPF_SQLite_Solution\WPF_SQLite\bin\Debug\WPF_SQLite.exe.config" -c "Data Source=.\WPF_SQLite\bin\Debug\Application.db" -a "D:\Jason Tam\Desktop\Playground\WPF (.NET Framework)\WPF_SQLite_Solution\WPF_SQLite\bin\Debug\WPF_SQLite.exe" -wd "D:\Jason Tam\Desktop\Playground\WPF (.NET Framework)\WPF_SQLite_Solution\WPF_SQLite\bin\Debug\" -verbose "TRUE"
Documentation Pages You’ve Read So Far Everything
Expected benefit
- I’m still learning to use this framework and also new in WPF. Hoping someone professional can explain the error behind this problems and provide solution. Thank very much.
Information (please complete the following information):
- OS: [ Windows 10 ]
- Platform [ .NET Framework 4.7.2 ]
- FluentMigrator version [ 3.2.6 ]
- FluentMigrator runner [ FluentMigrator.Console.3.2.6 ]
- Database Management System [ SQLite ]
- Database Management System Version [ SQLite Version 3 ]
Additional context I used Alt.FluentMigrator.VStudio package to auto generate the migrations file and SQL script.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6
Top GitHub Comments
@jzabroski
Thanks very much for the suggestions. I will try it update here. I also not very familiar with PowerShell and still learning on it.
I tested Execute.EmbeddedScript() method to run the SQL scripts, and it run flawlessly. I also tested Execute.Sql(), it run perfectly as well. Only Execute.Script() will resulting error.
@Jason6809 Hi - I am going to close this issue. Please re-open if you have renewed interest in getting help.