edandersen / blazor-desktop-crossplatform-sample

Example of an actual cross platform web and desktop hybrid Blazor app using the .NET 6 Blazor Desktop implementation
168 stars 46 forks source link

Error to publish with ClickOne #6

Open alberto202 opened 2 years ago

alberto202 commented 2 years ago

Hi @edandersen and thanks for this repo!

I have been watching the video and the repo, and I have an error publishing the windows form project with ClickOne. The error it gives me is 2> Manifest file at 'obj \ Release \ net6.0-windows \ staticwebassets.build.json' not found.

Would you by any chance know what the problem could be? I can't find how to solve it.

My version of visual studio is Microsoft Visual Studio Community 2022 (64-bit) - Preview Version 17.1.0 Preview 1.1

FelipeCostaGualberto commented 2 years ago

Try editing the project BlazorWpfApp. Change the code <TargetFramework>net6.0</TargetFramework> to <TargetFramework>net6.0-windows</TargetFramework>