Skip to content

Commit 4ede4c2

Browse files
authored
Merge pull request #86 from eiximenis/update-3.2.0
Update 3.2.0 (GA of WebAssembly)
2 parents 84eccf1 + 775aaac commit 4ede4c2

File tree

8 files changed

+17
-34
lines changed

8 files changed

+17
-34
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ jobs:
1515
- name: Setup .NET Core
1616
uses: actions/setup-dotnet@v1
1717
with:
18-
dotnet-version: 3.1.100-preview1-014459
18+
dotnet-version: 3.1.301
1919
- name: Build
2020
run: dotnet build --configuration Release

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Setup .NET Core
1616
uses: actions/setup-dotnet@v1
1717
with:
18-
dotnet-version: 3.1.100-preview1-014459
18+
dotnet-version: 3.1.301
1919
- name: Build
2020
run: dotnet build --configuration Release
2121
- name: Pack

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Both Canvas 2D and WebGL are supported.
1818

1919
Both Blazor Server Apps and Blazor WebAssembly Apps are supported.
2020

21-
**NOTE** Currently targets the v3.0.0-preview8 version of Blazor.
21+
**NOTE** Currently targets the v3.1.5 of Blazor with 3.2.0 of WebAssembly
2222

2323
# Installation
2424

src/Blazor.Extensions.Canvas/Blazor.Extensions.Canvas.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@
1717
<LangVersion>7.3</LangVersion>
1818
<RazorLangVersion>3.0</RazorLangVersion>
1919
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
20+
<TargetFramework>netstandard2.1</TargetFramework>
2021
</PropertyGroup>
2122

2223
<ItemGroup>
23-
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="3.1.0-preview1.19508.20" />
24+
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="3.1.5" />
2425
</ItemGroup>
2526

2627
<ItemGroup>

src/Blazor.Extensions.Canvas/wwwroot/blazor.extensions.canvas.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/Blazor.Extensions.Canvas.Test.ClientSide/Blazor.Extensions.Canvas.Test.ClientSide.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>netstandard2.0</TargetFramework>
5-
<OutputType>Exe</OutputType>
4+
<TargetFramework>netstandard2.1</TargetFramework>
65
<LangVersion>7.3</LangVersion>
76
<RazorLangVersion>3.0</RazorLangVersion>
87
</PropertyGroup>
98

109
<ItemGroup>
11-
<PackageReference Include="Microsoft.AspNetCore.Blazor" Version="3.1.0-preview1.19508.20" />
12-
<PackageReference Include="Microsoft.AspNetCore.Blazor.Build" Version="3.1.0-preview1.19508.20" PrivateAssets="all" />
13-
<PackageReference Include="Microsoft.AspNetCore.Blazor.DevServer" Version="3.1.0-preview1.19508.20" PrivateAssets="all" />
10+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="3.2.0" />
11+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Build" Version="3.2.0" PrivateAssets="all" />
12+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="3.2.0" PrivateAssets="all" />
13+
1414
</ItemGroup>
1515

1616
<ItemGroup>
Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
using Microsoft.AspNetCore.Blazor.Hosting;
1+
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
2+
using System.Threading.Tasks;
23

34
namespace Blazor.Extensions.Canvas.Test.ClientSide
45
{
56
public class Program
67
{
7-
static void Main(string[] args)
8+
public static async Task Main(string[] args)
89
{
9-
CreateHostBuilder(args).Build().Run();
10+
var builder = WebAssemblyHostBuilder.CreateDefault(args);
11+
builder.RootComponents.Add<App>("app");
12+
await builder.Build().RunAsync();
1013
}
11-
12-
public static IWebAssemblyHostBuilder CreateHostBuilder(string[] args) =>
13-
BlazorWebAssemblyHost.CreateDefaultBuilder()
14-
.UseBlazorStartup<Startup>();
1514
}
1615
}

test/Blazor.Extensions.Canvas.Test.ClientSide/Startup.cs

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)