Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

sqlite

msbuild

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?

like image 320
Orson Avatar asked Aug 21 '26 11:08

Orson


1 Answers

This worked;

<Exec Command='sqlite3 "@(DeployedSqliteDbPath)" "DELETE FROM BatchConfig;"'/>
like image 176
Orson Avatar answered Aug 24 '26 07:08

Orson