George Varghese
George Varghese

Reputation: 582

Desktop bridge - wpftool kit dependency issue

I have a desktop WPF application and its have the dependency of WPFToolkit binary. Currently I'm trying to convert WPF application to UWP using desktop bridge manual option.

referring the below option to do it,

https://learn.microsoft.com/en-us/windows/uwp/porting/desktop-to-uwp-packaging-dot-net

I got the below build issue,

Error MSB4018 The "GenerateResource" task failed unexpectedly. System.InvalidOperationException: Item named 'themes/luna.normalcolor.baml' of type 'System.IO.UnmanagedMemoryStream' cannot be added to the resource file because it is not serializable. at Microsoft.Build.Tasks.ProcessResourceFiles.WriteResources(ReaderInfo reader, IResourceWriter writer) at Microsoft.Build.Tasks.ProcessResourceFiles.WriteResources(ReaderInfo reader, String filename) at Microsoft.Build.Tasks.ProcessResourceFiles.ProcessFile(String inFile, String outFileOrDir) at Microsoft.Build.Tasks.ProcessResourceFiles.Run(TaskLoggingHelper log, ITaskItem[] assemblyFilesList, List1 inputs, List1 satelliteInputs,

if anybody faced the same issue, please reply.

Thanks

Upvotes: 1

Views: 132

Answers (3)

Kasper
Kasper

Reputation: 831

This is a known issue.

Baml error in Desktop Bridge

Add the following to the first PropertyGroup of your csproj file.

<AppxGeneratePrisForPortableLibrariesEnabled>false</AppxGeneratePrisForPortableLibrariesEnabled>

Upvotes: 0

Xeorge Xeorge
Xeorge Xeorge

Reputation: 462

From a little research i did, it seems that this style is not supported anymore, in fact, it is as old as Aero, even if you managed to bypass the error, the app wouldn't work.

Upvotes: 0

Related Questions