New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error since adding MatBlazor: The types BlazorWebAssemblyHost and IWebAssemblyHostBuilder exist in two assemblies #30
Comments
As I know MatBlazor was not updated to latest version of Blazor 0.9. |
I hope so! It would be great to be able to use it again! |
I think will fix this today or tomorrow. |
Hello! Now, on nuget available new version of MatBlazor 0.5 Work is not completed, some components still not works, but in general you can try to use MatBlazor with new Blazor 0.9. Also in nearest feature I will improve and add new components. |
Thank you for your efforts on this and thank you for notifying us of your progress here, @SamProf! |
Now, I have made my upgraded release MatBlazor 0.6. (Upgraded to Blazor 0.9) and fix some problems. So, now MatBlazor works with client side Blazor 0.9. I found that Razor Component Application not loaded empbedded resource content from my library - so, I need few days to fix this. |
Great news! Thanks for your efforts and keeping us updated. |
Hey! I introduce v 0.6.1 with supporting Razor Components. |
@SamProf Thanks for MatBlazor =) However, the error described above still exists:
This happened when I added the https://www.nuget.org/packages/Cloudcrate.AspNetCore.Blazor.Browser.Storage/ package. What am I missing? =) |
It's not because MatBlazor. You use old version of Cloudcrate.AspNetCore.Blazor.Browser.Storage Latest is https://www.nuget.org/packages/Cloudcrate.AspNetCore.Blazor.Browser.Storage/3.0.0-preview5-19227-02 Conflict of versions of Blazor. |
Aha, thanks a lot for the info, got it and it works =) |
Hello MatBlazor developers!
Blazor and MatBlazor are both great ideas. I'm experimenting with them at the moment in a Blazor
app using v 0.9.0 Preview 3 of Blazor.
Since I installed the MatBlazor library (latest stable v 0.4.5 from Nuget) it has introduced a compilation error into my project. The error is below:
Error CS0433 The type 'IWebAssemblyHostBuilder' exists in both 'Microsoft.AspNetCore.Blazor.Browser, Version=0.7.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Blazor, Version=0.9.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' BlazorClient C:\Users\USER\BlazorClient\Program.cs 12
And here is line 12-16 of Program.cs (which I have not changed - it's just from the template)
Fully qualifying the names of these two classes (IWebAssemblyHostBuilder and BlazorWebAssemblyHost) did not help. I guess because they're exactly the same classes in the same namespaces but have moved from one DLL to another.
Can anybody assist with this error please?
Many thanks in advance!
Benjamin
The text was updated successfully, but these errors were encountered: