How do I format date and time strings in Blazor?
The format-value attribute is used to format the DateTime strings. Other formats, like currency or number formats, are currently not available. Refer to the link format strings to learn more about formatting.
Why is the DateTime 24-hours conversion to AM/PM is not working?
You have to use the format-value string “yyyy-MM-ddTHH:mm” to work with AM/PM conversion properly. Refer to this thread for more information.
Every time I need to run the application manually, live reloading is not working. Why?
For now, you must manually run the application to reflect the changes in the browser. There is an issue tracker for the live reloading feature.
Issue—Blazor – System.InvalidOperationException: Object of type
‘BlazorDataBinding.Pages.Counter’ has a property matching the name ‘IncrementValue’, but it does not have [ParameterAttribute] or [CascadingParameterAttribute] applied. You must mention the [Parameter] attribute for the component attributes.
Issue—Blazor – InvalidOperationException: Cannot identify unique bin directory for Blazor app.
Open the application in File Explorer and delete the bin/Debug & bin/Release folders. Now, clean and run the application.