How can i execute sqlite (sqlite3) statements in MSBUILD, the Exec Task?

≡放荡痞女 提交于 2019-12-13 12:31:17

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!