Sigeer
Sigeer
CC#
Created by Sigeer on 12/20/2023 in #help
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
CC#
Created by Sigeer on 12/20/2023 in #help
How can I reference a Blazor Hybrid project’s form or component in WinForms?
4 replies
CC#
Created by Sigeer on 12/20/2023 in #help
How can I reference a Blazor Hybrid project’s form or component in WinForms?
Just to clarify: this is just for testing purposes and I have no other intentions. In fact, I plan to use Blazor components in my existing WinForms project.
4 replies