Commit ab6712a
authored
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.1 parent fb63684 commit ab6712a
File tree
4 files changed
+4
-4
lines changed- build-tools/xaprepare/xaprepare/ConfigAndData
- src-ThirdParty/NUnitLite
- tests
- MSBuildDeviceIntegration/Resources/LinkDescTest
- Mono.Android-Tests/Mono.Data.Sqlite
4 files changed
+4
-4
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
| 235 | + | |
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
0 commit comments