Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TimeSpan parsing failed with NAOT #1696

Closed
4OTbIPE opened this issue Aug 2, 2024 · 2 comments
Closed

TimeSpan parsing failed with NAOT #1696

4OTbIPE opened this issue Aug 2, 2024 · 2 comments
Labels
AOT bug Something isn't working
Milestone

Comments

@4OTbIPE
Copy link

4OTbIPE commented Aug 2, 2024

Describe the bug
When using animation in XAML from the Community Toolkit, the application crashes. I suppose in this lines:
image
Error text: Failed to create a Windows.Foundation.IReference1<TimeSpan> from the text '0:0:0.3'

To Reproduce

  1. Install CommunityToolkit.WinUI.Animations package
  2. Enable PublishAot in csproj
  3. Use lines from the screenshot above

Expected behavior

Application does not crash. animations works correctly

Version Info

CsWinRT: 2.1.0-preview2
WinUI: 1.6-exp2
WinSDK: 10.0.22621.37-preview
NET: net8.0-windows10.0.22621
Windows: build 26100

Additional context

@4OTbIPE 4OTbIPE added the bug Something isn't working label Aug 2, 2024
@manodasanW
Copy link
Member

Should be fixed by #1684. Will be publishing updated CsWinRT preview shortly.

@manodasanW manodasanW added the AOT label Aug 2, 2024
@manodasanW
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AOT bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants