Skip to content

Commit

Permalink
Upgrade to WebAssembly 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dodyg committed Jan 29, 2020
1 parent 292636a commit a8019d2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 26 deletions.
7 changes: 2 additions & 5 deletions projects/blazor/ComponentEleven/ComponentEleven.csproj
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<TargetFramework>netstandard2.1</TargetFramework>
<RazorLangVersion>3.0</RazorLangVersion>
<AssemblyName>ComponentEleven</AssemblyName>
<LangVersion>7.3</LangVersion>
<DisableImplicitComponentsAnalyzers>true</DisableImplicitComponentsAnalyzers>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Blazor" Version="3.2.0-preview1.20073.1" />
<PackageReference Include="Microsoft.AspNetCore.Blazor.Build" Version="3.2.0-preview1.20073.1" PrivateAssets="all" />
<PackageReference Include="Microsoft.AspNetCore.Blazor.DevServer" Version="3.2.0-preview1.20073.1" />
<PackageReference Include="Microsoft.AspNetCore.Components.Authorization" Version="3.0.0" />

<Watch Include="**\*.cshtml" />

<Watch Include="**\*.razor" />
</ItemGroup>

Expand Down
24 changes: 8 additions & 16 deletions projects/blazor/ComponentEleven/Program.cs
Original file line number Diff line number Diff line change
@@ -1,24 +1,16 @@
using Microsoft.AspNetCore.Components.Builder;
using Microsoft.AspNetCore.Blazor.Hosting;
using Microsoft.AspNetCore.Blazor.Hosting;
using System.Threading.Tasks;

namespace ComponentEleven
{
public class Startup
{
public void Configure(IComponentsApplicationBuilder app)
{
app.AddComponent<App>("app");
}
}

public class Program
{
public static void Main(string[] args)
public static async Task Main(string[] args)
{
CreateHostBuilder(args).Build().Run();
}
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<App>("app");

public static IWebAssemblyHostBuilder CreateHostBuilder(string[] args) =>
BlazorWebAssemblyHost.CreateDefaultBuilder()
.UseBlazorStartup<Startup>();
await builder.Build().RunAsync();
}
}
}
7 changes: 2 additions & 5 deletions projects/blazor/ComponentEleven/_Imports.razor
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
@using System.Net.Http

@using Microsoft.AspNetCore.Components.Routing
@using Microsoft.AspNetCore.Components.Web
@using Microsoft.JSInterop
@using ComponentEleven
@using ComponentEleven.Shared
@using Microsoft.AspNetCore.Components.Web
@using Microsoft.AspNetCore.Components.Authorization
@using ComponentEleven.Shared

0 comments on commit a8019d2

Please sign in to comment.