Replies: 2 comments 1 reply
-
Good catch. They should all be targeting As for the failing tests, try doing a |
Beta Was this translation helpful? Give feedback.
-
Hey you are up! (are you on Europe time? FWIW I'm in Seattle/PST). Good news, I got a clean build/run in Rider. The Would you like me to go ahead and send in a PR to move all three postgrest projects back to netstandard2.0 as a target and lang level 9? Off the cuff I think the only thing missing was a few lines to polyfill back HttpUtility query parse, I think maybe a HashCode polyfill as well. |
Beta Was this translation helpful? Give feedback.
-
I'm working on a PR for https://github.com/supabase-community/postgrest-csharp, and I'm noticing that there appears to be some inconsistency in the version[s] of .NET used for the projects & builds. I'm also getting test failures that appear to be related to LINQ queries.
I think the best option would be to target the following, either netstandard2.0 or netstandard2.1.
This happens to be the same levels of support for the current LTS version of Unity.
Right now it appears that some of the other projects (e.g. the PostgrestTests) are built targeting net7.0. If I leave it targeting net7.0 the build works but I'm getting 49 test failures out of 78 tests. Looks like all of the failures are related to LINQ queries.
Here's one example of test failure I'm getting. This is targeting net7.0, docker compose up seems to be working fine. macOS, Rider.
I think the first step would be to sort out/confirm a working net7.0 build w/tests. Any thoughts on possible tweaks/fixes to get the LINQ-related stuff working?
The second step I think would be to be more explicit about the recommended target settings in all of the projects.
FWIW I'm using degit to drop source into Unity for subprojects right now (easier to debug). It's working great for auth, only thing I'm running into with postgrest-csharp is it's complaining about file based namespaces are C# 10 and Unity only goes up to C# 9. It's a minor tweak but it's making my local copy drift. It would be a very minor PR to swap them back to C# 9 namespaces, but I don't want to do a PR until I have working tests locally.
Beta Was this translation helpful? Give feedback.
All reactions