问题
I am trying to run some queries on my sqlite database after building my application.
I have tried;
<Exec Command='sqlite3 "@(DeployedSqliteDbPath) DELETE FROM BatchConfig";'/>
and
<Exec Command='sqlite3 "@(DeployedSqliteDbPath)";'/>
<Exec Command='sqlite3 "DELETE FROM BatchConfig";'/>
But it doesn't seem to work. Can someone help?
回答1:
This worked;
<Exec Command='sqlite3 "@(DeployedSqliteDbPath)" "DELETE FROM BatchConfig;"'/>
来源:https://stackoverflow.com/questions/29846013/how-can-i-execute-sqlite-sqlite3-statements-in-msbuild-the-exec-task