Comments (4)
I've updated the description to point to my repo. If you run the UnitTests in Debug configuration, they will fail because a NullReferenceException is thrown. If you run the UnitTests in Release configuration they will fail because the exception will be swallowed and no BindingError will be logged.
from maui.
Verified this issue with Visual Studio 17.10 Preview 5 (8.0.21). Can not repro issue with sample project.
from maui.
I have updated the repo to .21 (sorry, didn't check this before - kinda assumed that dotnet new will create a project using the most recent version). Strangely I also had to adjust the test and add yet another mock... but anyway, the issue is still there.
BTW, I am not running this in Visual Studio but from the command-line:
dotnet test -c Debug
[xUnit.net 00:00:00.28] UnitTests.Issue22078Tests.SetBindingContext [FAIL] Failed UnitTests.Issue22078Tests.SetBindingContext [189 ms] Error Message: System.NullReferenceException : Object reference not set to an instance of an object. Stack Trace: at MauiIssues.Issue22078ViewModel.get_ObjectType()
vs
dotnet test -c Release
[xUnit.net 00:00:00.26] UnitTests.Issue22078Tests.SetBindingContext [FAIL] Failed UnitTests.Issue22078Tests.SetBindingContext [176 ms] Error Message: If a binding throws an exception, I kinda expect diagnostic logging :) Stack Trace: at UnitTests.Issue22078Tests.SetBindingContext()
from maui.
Thanks for your explanation, executing from the command line can reproduce the issue.
from maui.
Related Issues (20)
- Functionality to check if GPS/Location is enabled on mobile HOT 1
- Android platform throws exception when loading image from HTTPS source. HOT 2
- 'Microsoft.Maui.Platform.LayoutView' does not have a constructor that takes one NativeHandle argument HOT 4
- Keyboard does not showing up on SearchHandler.Focus() HOT 4
- SwipeView Events - (SwipeView)sender.Open does not work HOT 9
- iOS : No Route to Host on LAN HOT 1
- CollectionView with grouping enabled behaves abnormally after adding a new child record HOT 2
- CollectionView with grouping enabled doesn't reflect the change on UI when a child record is added/removed HOT 5
- .net sdk style dev HOT 1
- CollectionView - ItemsUpdatingScrollMode="KeepScrollOffset" does not work in Windows HOT 2
- The TapGestureRecognizer does not function properly when the view is clipped. HOT 3
- CollectionView scrolling not working when using SwipeView (only in iOS) HOT 3
- Maui Android app icon does not scale - Workaround required HOT 1
- Blazor Hybrid Hello World - Windows - The project doesn't know how to run the profile with name 'Windows Machine' and command 'MsixPackage HOT 5
- FlyoutPage Shadow works incorrectly on iOS HOT 2
- visionOS support
- iOS Release build crashing. HOT 5
- ios flyout page HOT 1
- MAUI Error : None of the input catalogs contained a matching stickers icon set or app icon set named "AppIcons" HOT 4
- SetTitleBar not working on Windows HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maui.