CommunityToolkit / Microsoft.Toolkit.Win32

ARCHIVE - This repository contained XAML Islands wrapper controls and tooling for XAML Islands with WinUI 2, see readme for more info about XAML Islands with WinUI 3 and the WindowsAppSDK.
https://aka.ms/windowsappsdk
Other
384 stars 89 forks source link

Xaml Island Sample fails #345

Open r-laf opened 2 years ago

r-laf commented 2 years ago

Describe the bug

A clear and concise description of what the bug is.

Microsoft.Toolkit.Win32.UI.SDK 6.1.2 fails to run the Xaml Island Sample https://github.com/microsoft/Xaml-Islands-Samples/blob/master/NativeXamlIslands.sln in packaged mode.

See https://github.com/microsoft/Xaml-Islands-Samples/issues/46

It appears Microsoft.WinRT.Win32.targets fails to copy some essentials files to AppX folder after build, for example, the following files are missing in AppX folder

.\Microsoft.UI.Xaml.dll
.\Microsoft.UI.Xaml.pri
.\Microsoft.UI.Xaml.winmd
.\SampleLibraryCS.dll
.\SampleLibraryCS.runtimeconfig.json
.\SceneLoaderComponent.dll
.\SceneLoaderComponent.winmd
.\TreeViewHostUserControl.xbf
.\dummy.exe

Steps to Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Build https://github.com/microsoft/Xaml-Islands-Samples/blob/master/NativeXamlIslands.sln with Microsoft.Toolkit.Win32.UI.SDK 6.1.2 will give the error.

Build https://github.com/microsoft/Xaml-Islands-Samples/blob/master/NativeXamlIslands.sln Microsoft.Toolkit.Win32.UI.SDK 6.0.0-preview7.1 will give no error.

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Environment

NuGet Package(s): 

Package Version(s): 

Project .NET Version:
- [ ] .NET Framework (version: )
- [ ] .NET Core 3
- [ ] .NET Core 3.1 Preview (version: )

Windows 10 Build Number:
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [ ] October 2018 Update (17763)
- [ ] May 2019 Update (18362)
- [ ] Insider Build (build number: )
Win 11 22000.556

App min and target version:
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [ ] October 2018 Update (17763)
- [ ] May 2019 Update (18362)
- [ ] Insider Build (xxxxx)

Device form factor:
- [x ] Desktop
- [ ] Xbox
- [ ] Surface Hub
- [ ] IoT

Visual Studio 
- [ ] 2017 (version: )
- [ ] 2019 (version: ) 
- [ ] 2019 Preview (version: )
2022

Additional context

Add any other context about the problem here.

ghost commented 2 years ago

Hello zh4ui, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌

michael-hawker commented 2 years ago

FYI @ocalvo @marb2000