File tree Expand file tree Collapse file tree 8 files changed +17
-34
lines changed
src/Blazor.Extensions.Canvas
test/Blazor.Extensions.Canvas.Test.ClientSide Expand file tree Collapse file tree 8 files changed +17
-34
lines changed Original file line number Diff line number Diff line change 15
15
- name : Setup .NET Core
16
16
uses : actions/setup-dotnet@v1
17
17
with :
18
- dotnet-version : 3.1.100-preview1-014459
18
+ dotnet-version : 3.1.301
19
19
- name : Build
20
20
run : dotnet build --configuration Release
Original file line number Diff line number Diff line change 15
15
- name : Setup .NET Core
16
16
uses : actions/setup-dotnet@v1
17
17
with :
18
- dotnet-version : 3.1.100-preview1-014459
18
+ dotnet-version : 3.1.301
19
19
- name : Build
20
20
run : dotnet build --configuration Release
21
21
- name : Pack
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ Both Canvas 2D and WebGL are supported.
18
18
19
19
Both Blazor Server Apps and Blazor WebAssembly Apps are supported.
20
20
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
22
22
23
23
# Installation
24
24
Original file line number Diff line number Diff line change 17
17
<LangVersion >7.3</LangVersion >
18
18
<RazorLangVersion >3.0</RazorLangVersion >
19
19
<AddRazorSupportForMvc >true</AddRazorSupportForMvc >
20
+ <TargetFramework >netstandard2.1</TargetFramework >
20
21
</PropertyGroup >
21
22
22
23
<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 " />
24
25
</ItemGroup >
25
26
26
27
<ItemGroup >
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk.Web" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >netstandard2.0</TargetFramework >
5
- <OutputType >Exe</OutputType >
4
+ <TargetFramework >netstandard2.1</TargetFramework >
6
5
<LangVersion >7.3</LangVersion >
7
6
<RazorLangVersion >3.0</RazorLangVersion >
8
7
</PropertyGroup >
9
8
10
9
<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
+
14
14
</ItemGroup >
15
15
16
16
<ItemGroup >
Original file line number Diff line number Diff line change 1
- using Microsoft . AspNetCore . Blazor . Hosting ;
1
+ using Microsoft . AspNetCore . Components . WebAssembly . Hosting ;
2
+ using System . Threading . Tasks ;
2
3
3
4
namespace Blazor . Extensions . Canvas . Test . ClientSide
4
5
{
5
6
public class Program
6
7
{
7
- static void Main ( string [ ] args )
8
+ public static async Task Main ( string [ ] args )
8
9
{
9
- CreateHostBuilder ( args ) . Build ( ) . Run ( ) ;
10
+ var builder = WebAssemblyHostBuilder . CreateDefault ( args ) ;
11
+ builder . RootComponents . Add < App > ( "app" ) ;
12
+ await builder . Build ( ) . RunAsync ( ) ;
10
13
}
11
-
12
- public static IWebAssemblyHostBuilder CreateHostBuilder ( string [ ] args ) =>
13
- BlazorWebAssemblyHost . CreateDefaultBuilder ( )
14
- . UseBlazorStartup < Startup > ( ) ;
15
14
}
16
15
}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments