From 472ecf61e470d14294c2e588c66996da9c8af951 Mon Sep 17 00:00:00 2001 From: AlexNek Date: Mon, 28 Jun 2021 12:28:01 +0200 Subject: [PATCH 1/3] update appveyour --- appveyor.yml | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 684e04b..d7ae439 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -4,26 +4,35 @@ branches: only: - master +skip_tags: true image: Visual Studio 2019 configuration: Release -platform: Any CPU - -assembly_info: +dotnet_csproj: patch: true - file: '**\AssemblyInfo.*' + file: '**\*.csproj' + version: '{version}' + version_prefix: '{version}' + package_version: '{version}' assembly_version: '{version}' - assembly_file_version: '{version}' - assembly_informational_version: '{version}' - -nuget: - project_feed: true + file_version: '{version}' + informational_version: '{version}' before_build: -- ps: nuget restore +- ps: dotnet restore build: + project: Babylon.Blazor.Lib\Babylon.Blazor.csproj verbosity: minimal artifacts: -- path: BlazorBabylon\Babylon.Blazor.Lib\bin\Release\net5.0\Babylon.Blazor.dll - name: Babylon.Blazor.dll +- path: Babylon.Blazor.Lib\bin\Release\net5.0\Babylon.Blazor.dll + name: Babylon.Blazor + +deploy: +- provider: GitHub + auth_token: + secure: F/19bv2TYoeZ5LhzsKZUeVYgpbI53wUcX8RSHE9+T8CD1Q6tXF+3IBU5xe2YyQQx + artifact: Babylon.Blazor +- provider: NuGet + api_key: + secure: 7uBsvquYgLqrQREBfflKXMwz8H1yJizhlIAwug+V4iW6W/pIJrTy5Wb5XfBxpecl From 321a4239e7c46d802fe7288a7a488b9d4dd29e2d Mon Sep 17 00:00:00 2001 From: AlexNek Date: Mon, 28 Jun 2021 22:31:32 +0200 Subject: [PATCH 2/3] Update readme --- readme.md | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index be7f338..7fdc10c 100644 --- a/readme.md +++ b/readme.md @@ -33,6 +33,9 @@ Using .NET CLI dotnet add package Babylon.Blazor ``` +Using MS VS Manage NuGet Packages +Search for `Babylon.Blazor` + Add reference to babylon js library. Add 2 lines into index.html ```html @@ -52,6 +55,22 @@ Add reference to babylon js library. Add 2 lines into index.html ``` +Add `InstanceCreator` to **DI** +```C# + public class Program + { + public static async Task Main(string[] args) + { + ... + + builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) }); + + builder.Services.AddTransient(sp => new InstanceCreator(sp.GetService())); + await builder.Build().RunAsync(); + } + } +``` + Add Razor page and replace context to similar code ```C# @using Babylon.Blazor.Chemical @@ -60,7 +79,7 @@ Add Razor page and replace context to similar code

Chemical formula of water is H2O

- +
@code { @@ -88,6 +107,13 @@ Add Razor page and replace context to similar code } ``` + +Add to _Imports.razor +``` +@using Babylon.Blazor +``` +> **_NOTE:_** You can skip this step + ### Demo Application From 5ff44363c5430ad9ea743a9afc6052ef97ed8f24 Mon Sep 17 00:00:00 2001 From: AlexNek Date: Mon, 28 Jun 2021 22:33:06 +0200 Subject: [PATCH 3/3] update readme --- readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/readme.md b/readme.md index 7fdc10c..77e3c7b 100644 --- a/readme.md +++ b/readme.md @@ -73,6 +73,7 @@ Add `InstanceCreator` to **DI** Add Razor page and replace context to similar code ```C# +@page "/test" @using Babylon.Blazor.Chemical

Water