-
Notifications
You must be signed in to change notification settings - Fork 697
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
Navigation to a Blank Page in Class library project leads to Exception in UWP #4618
Comments
@syncsiva In your example, you've added a UWP (WInUI 2) blank page to the ClassLibrary but then are trying to compile it with the WinUI 3 toolchain. If you update using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Microsoft.Foundation;
//using Windows.Foundation.Collections;
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Controls.Primitives;
using Microsoft.UI.Xaml.Data;
using Microsoft.UI.Xaml.Input;
using Microsoft.UI.Xaml.Media;
using Microsoft.UI.Xaml.Navigation; To avoid this in future, make sure you add a It would be really great if tooling could detect this and provide a more helpful/specific error message. |
@syncsiva Having investigated, this looks to be an issue with the code that WinUI3 generates as part of compiling the XAML files, so I have logged a bug there. |
@mrlacey It was worked when i use WinUI3 Preview4 project template and not working after upgrading to Project Reunion 0.5 Preview. |
Any workaround solution to the problem would be greatly appreciated! |
UWP is no longer supported by WinUI 3. If you can repro the issue on current builds without UWP, please reactivate or open a new issue. Thanks! |
Describe the bug
Navigation to a Blank Page in Class library project leads to Exception
Steps to reproduce the bug
ReunionBlackAppUWP.zip
Steps to reproduce the behavior:
Exception thrown: 'Windows.UI.Xaml.Markup.XamlParseException' in ClassLibrary1.dll
An exception of type 'Windows.UI.Xaml.Markup.XamlParseException' occurred in ClassLibrary1.dll but was not handled in user code
XAML parsing failed.
Expected behavior
Should work without any exception. It works fine with WinUI3 Preview4 and facing exception only after updating to Project reunion.
Screenshots
Version Info
Microsoft.ProjectReunion -> Version="0.5.0-prerelease
Visual Studio : VS 2019 16.10 Preview 1.0
Microsoft Windows Version 20H2 (OS build 19042.867)
Additional context
It works fine with WinUI3 Preview4 and facing exception only after updating to Project. Any workaround is very helpful.
The text was updated successfully, but these errors were encountered: