-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Open
Milestone
Description
Description
When using EFCore and building the app in Release mode, the first query that returns any result, will throw an exception "Could not load file or assembly 'System.Runtime.Caching'... or one of its dependencies"
Every subsequent query works fine, and building the app in Debug mode works fine as well.
video_2022-11-16_11-55-22.mp4
Steps to Reproduce
- Create MAUI app, add the EFCore packages, try to read a row from a SQL database in Release mode
or take the repo, modify it so it reads any data from any sql database (as far as I am aware, you have to embed the .cer file that is used on the sql server, or install it onto the testing device)
Press the bottom button once for error, twice for success
Link to public reproduction project repository
https://github.com/jovanmhn/EFCoreTest
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 12 API 31
Did you find any workaround?
No response
Relevant log output
No response
danielchalmers