How can I execute sqlite (sqlite3) in MSBUILD, Exec Task?

I am trying to run some queries in my sqlite database after creating my application.

I tried;

<Exec Command='sqlite3 "@(DeployedSqliteDbPath) DELETE FROM BatchConfig";'/>

and

<Exec Command='sqlite3 "@(DeployedSqliteDbPath)";'/>
<Exec Command='sqlite3 "DELETE FROM BatchConfig";'/>

But that does not work. Can anyone help?

+3
source share
1 answer

It worked;

<Exec Command='sqlite3 "@(DeployedSqliteDbPath)" "DELETE FROM BatchConfig;"'/>
+3
source

Source: https://habr.com/ru/post/1792062/


All Articles