I was building a wpf application on ADO pipeline agent Windows2022-DEV
Here is the error and warning I got:
##[error]XXXManager\Assets\XXTC_Modern_Resource_Dictionary.xaml(239,26): Error MC3074: The tag 'Interaction.Behaviors' does not exist in XML namespace 'http://schemas.microsoft.com/xaml/behaviors'. Line 239 Position 26.
C:\agent\_work\2\s\XXXManager\XXXManager\Assets\XXTC_Modern_Resource_Dictionary.xaml(239,26): error MC3074: The tag 'Interaction.Behaviors' does not exist in XML namespace 'http://schemas.microsoft.com/xaml/behaviors'. Line 239 Position 26. [C:\agent\_work\2\s\XXXManager\XXXManager\XXXManager.csproj]
Done Building Project "C:\agent\_work\2\s\XXXManager\XXXManager\XXXManager.csproj" (default targets) -- FAILED.
Primary reference "Microsoft.Expression.Interactions, Version=4.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL".
[warning]C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2302,5): Warning MSB3245: Could not resolve this reference. Could not locate the assembly "Microsoft.Expression.Interactions, Version=4.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.`
I searched the web and I guess this error may caused by the blend SDK is not installed on the agent Windows2022-DEV.
https://www.nuget.org/packages/Expression.Blend.Sdk
So, what command should I use in the pipeline YML file to install the blend SDK nuget package into the agent edWindows2022-DEV? Thanks.