NUnit [TearDown] fails — what process is accessing my files?

前端 未结 11 2558
你的背包
你的背包 2021-02-12 14:17

Final Edit: I found a solution to the problem (at the bottom of the question).

I\'ve got an Nunit problem that\'s causing me grief. Edit:

11条回答
  •  日久生厌
    2021-02-12 15:03

    try calling Close on the dbconnection

    make sure the sqllite process is terminated

    you can see what process has your file locked with the Unlocker (free) utility

    this may be a 'known' issue with SqlLite; the forum banter suggests closing the connection and disposing the command, and suggests that this will be fixed in a future version (since this behavior is not consistent with other ADO providers)

提交回复
热议问题