dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.44k stars 10.01k forks source link

Compile error on new project version 0.8.0-preview-19104-04 #7295

Closed ejdoming closed 5 years ago

ejdoming commented 5 years ago

Program.cs public static IWebAssemblyHostBuilder CreateHostBuilder(string[] args) => BlazorWebAssemblyHost.CreateDefaultBuilder() .UseBlazorStartup();

Error message: 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.8.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' GCMobileSPA1 X:\Desenvolvimento\fontes\Jean\GCMobSPA\GCMobileSPA1\Program.cs

ejdoming commented 5 years ago

Solved. I was using Blazored.LocalStorage, that use 0.7.0 version of Blazor libs.

arivera12 commented 5 years ago

Just ran into same issue I was using a component that was running on 0.7.0 instead of 0.8.0.