Application Name: SPOT Client
OS: Windows10 21h2
CPU: x64
.NET Build: 8.0.100-preview.5.23276.4
App, App Source or detailed repro information checking at: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1829070/
Verify Scenarios:
- Windows10 21h2 x64 + dotnet-sdk-8.0.100-preview.5.23276.4: Fail
- Windows10 21h2 x64 + dotnet-sdk-8.0.100-preview.3.23178.7: Pass
- Windows10 21h2 x64 + 7.0.302: Pass
- Windows10 21h2 x64 + 6.0.408 Pass
App repro steps on repro machine:
1.Build and Publish the app against .NET 8 Preview 5 build.
2.Execute the app.
3.Launch url: https://localhost:5005.
4.Click “Login” button.
5.Type 9191 for pin.
6.Click “Continue” button.
7.Click “Cancel” button.
8.Click “Not Now” button.
9.Type “Brown” in the search box.
10.Select “Brown, Alex”.
11.Click “Pickup” button.
12.Click “Card” button.
13.Click “Add another card” button.
Expected Result: Add card window opens.
Actual Result: Window doesn't open.
Findings
For this app, we were able to build and publish successfully, but there is an error at runtime in one of our cases. This issue only happens after building the app with.NET 8 Preview 5 SDK , it does not repro if it was built/published with the .NET 8 Preview 3, .NET 7, or .NET 6 SDK build.
in a page, app passes data to a component (DateModalInput) like this:
<DateModalInput PlaceHolder="@(S.ExpirationPlaceholderCaption)" />
Component receives data like this:
[Parameter] public string Placeholder { get; set; }
S.ExpirationPlaceholderCaption data type is not string, but it works when we build and run it with .NET6, .NET7 and .NET 8 Preview 3 SDK.
For .NET8 Preview 5 SDK, we need to change Parameter data type, so it doesn't need to cast.
Error :
System.InvalidOperationException: Unable to set property 'PlaceHolder' on object of type 'XYZ.Platform.Client.UI.Components.DateModalInput'. The error was: Unable to cast object of type 'XYZ.Platform.StringProperty' to type 'System.String'.
---> System.InvalidCastException: Unable to cast object of type 'XYZ.Platform.StringProperty' to type 'System.String'.
at Microsoft.AspNetCore.Components.Reflection.PropertySetter.CallPropertySetter[TTarget,TValue](Action`2 setter, Object target, Object value)
at Microsoft.AspNetCore.Components.Reflection.ComponentProperties.<SetProperties>g__SetProperty|2_0(Object target, PropertySetter writer, String parameterName, Object value)
--- End of inner exception stack trace ---
at Microsoft.AspNetCore.Components.Reflection.ComponentProperties.<SetProperties>g__SetProperty|2_0(Object target, PropertySetter writer, String parameterName, Object value)
at Microsoft.AspNetCore.Components.Reflection.ComponentProperties.SetProperties(ParameterView& parameters, Object target)
at Microsoft.AspNetCore.Components.ComponentBase.SetParametersAsync(ParameterView parameters)
at Microsoft.AspNetCore.Components.Rendering.ComponentState.SetDirectParameters(ParameterView parameters)
at Microsoft.AspNetCore.Components.
@dotnet-actwx-bot @dotnet/compat
Application Name: SPOT Client
OS: Windows10 21h2
CPU: x64
.NET Build: 8.0.100-preview.5.23276.4
App, App Source or detailed repro information checking at: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1829070/
Verify Scenarios:
App repro steps on repro machine:
1.Build and Publish the app against .NET 8 Preview 5 build.
2.Execute the app.
3.Launch url: https://localhost:5005.
4.Click “Login” button.
5.Type 9191 for pin.
6.Click “Continue” button.
7.Click “Cancel” button.
8.Click “Not Now” button.
9.Type “Brown” in the search box.
10.Select “Brown, Alex”.
11.Click “Pickup” button.
12.Click “Card” button.
13.Click “Add another card” button.
Expected Result: Add card window opens.
Actual Result: Window doesn't open.
Findings
For this app, we were able to build and publish successfully, but there is an error at runtime in one of our cases. This issue only happens after building the app with.NET 8 Preview 5 SDK , it does not repro if it was built/published with the .NET 8 Preview 3, .NET 7, or .NET 6 SDK build.
in a page, app passes data to a component (DateModalInput) like this:
Component receives data like this:
S.ExpirationPlaceholderCaption data type is not string, but it works when we build and run it with .NET6, .NET7 and .NET 8 Preview 3 SDK.
For .NET8 Preview 5 SDK, we need to change Parameter data type, so it doesn't need to cast.
Error :
@dotnet-actwx-bot @dotnet/compat