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

WPF MSBuild is failed with Microsoft.Toolkit.Wpf.UI.XamlHost #357

Open vvanparthi opened 1 year ago

vvanparthi commented 1 year ago

I am using Microsoft.Toolkit.Wpf.UI.XamlHost nuget package in my WPF project for accessing UWP UI element in WPF.

I am able to Build and Run the project from Visual Studio 2019.

But Build is failed in Azure Pipeline.

I am getting below error.

_C:\Users\svc_build_ado.nuget\packages\microsoft.toolkit.win32.ui.sdk\6.1.2\build\Microsoft.WinRT.Win32.targets(207,5): error MSB4801: The task factory "CodeTaskFactory" is not supported on the .NET Core version of MSBuild. [F:\builds\agent8_work\1\s\WPFApp.csproj] C:\Users\svc_buildado.nuget\packages\microsoft.toolkit.win32.ui.sdk\6.1.2\build\Microsoft.WinRT.Win32.targets(207,5): error MSB4175: The task factory "CodeTaskFactory" could not be loaded from the assembly "F:\builds\agent8_work_tool\dotnet\sdk\3.1.200\Microsoft.Build.Tasks.Core.dll". The task factory must return a value for the "TaskType" property. [F:\builds\agent8_work\1\s\WPFApp.csproj]

Any Ideas on this issue.

ghost commented 1 year ago

Hello vvanparthi, 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 🙌

ghost commented 1 year ago

This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.

ghost commented 1 year ago

This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.

ghost commented 1 year ago

This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.