Sigeer
How can I reference a Blazor Hybrid project’s form or component in WinForms?
Alright, in my attempt, it is necessary to modify the sdk of .csproj to
<?xml version="1.0" encoding="utf-8"?>\n<Project Sdk="Microsoft.NET.Sdk.Razor">,
and add <ItemGroup><PackageReference Include="Microsoft.AspNetCore.Components.WebView.WindowsForms" Version="6." /><PackageReference Include="Microsoft.Extensions.Hosting" Version="6." /></ItemGroup>
to make it work. I hope my attempt can help others.
4 replies
How can I reference a Blazor Hybrid project’s form or component in WinForms?
this my demo https://github.com/SIGEER2222/BlazorWinForms5
4 replies