praeclarum / praeclarum/sqlite-net
Can't use source file SQLite.cs in a lib
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 4.5k
- Forks
- 1.4k
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I have a Xamarin solution and inside it I created a netstandard 2 lib for managing database stuff using sqlite-net-pcl lib.
I'm trying to use last version of SQLite.cs because I wanted to test if it solves an issue I reported you in 1.5.231 regarding order async methods but unfortunately it does not work because I'm getting this error:
/Users/endymion/code/hybrid_app/DataStore/Data/WorkItemsDatabase.cs(18,18): Error CS0246: The type or namespace name 'SQLiteAsyncConnection' could not be found (are you missing a using directive or an assembly reference?) (CS0246) (DataStore)
For some reason the compiler can't found SQLiteAsyncConnection although using SQLite is placed in WorkItemsDatabase.cs
By the way I tried the same in a Console app project and it works fine so I'm a bit confused.
My environment:
IDE: Visual Studio Code for Mac
MacOS: 10.13.6
Lib C# version: 7.3
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported WorkItemsDatabase.cs usage and compare the netstandard library project with the Console app, focusing on how SQLite.cs and the SQLite namespace are referenced. Reproduce the CS0246 error with SQLiteAsyncConnection; done means identifying the project-reference or compatibility difference and confirming that the type resolves in the library.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, sqlite
- Domain
- database
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100