You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use Environment.SpecialFolder.UserProfile, not SpecialFolder.Personal (#7481)
Context: dotnet/runtime#68610
Context: dotnet/android-tools@0be567a
In .NET 8, a test using `SpecialFolder.Personal` failed with:
[FAIL] Create table attempt failed!
SQLite.SQLiteException: Could not open database file: /data/user/0/com.xamarin.customlinkdescriptionpreserve/files/Documents/TaskDB.db3 (CannotOpen)
at SQLite.SQLiteConnection..ctor(SQLiteConnectionString )
at SQLite.SQLiteConnectionWithLock..ctor(SQLiteConnectionString )
at SQLite.SQLiteConnectionPool.Entry..ctor(SQLiteConnectionString )
at SQLite.SQLiteConnectionPool.GetConnectionAndTransactionLock(SQLiteConnectionString , Object& )
at SQLite.SQLiteConnectionPool.GetConnection(SQLiteConnectionString )
at SQLite.SQLiteAsyncConnection.GetConnection()
at SQLite.SQLiteAsyncConnection.<>c__DisplayClass33_0`1[[SQLite.CreateTableResult, SQLite-net, Version=1.7.335.0, Culture=neutral, PublicKeyToken=null]].<WriteAsync>b__0()
at System.Threading.Tasks.Task`1[[SQLite.CreateTableResult, SQLite-net, Version=1.7.335.0, Culture=neutral, PublicKeyToken=null]].InnerInvoke()
at System.Threading.Tasks.Task.<>c.<.cctor>b__273_0(Object )
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread , ExecutionContext , ContextCallback , Object )
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread , ExecutionContext , ContextCallback , Object )
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& , Thread )
--- End of stack trace from previous location ---
at LinkTestLib.Bug35195.AttemptCreateTable()
All regression tests completed.
In .NET 8+, we should use `SpecialFolder.UserProfile` instead.
0 commit comments