Skip to content

Commit e76cf72

Browse files
committed
feat: modified version
1 parent 6d3fa54 commit e76cf72

File tree

2 files changed

+35
-31
lines changed

2 files changed

+35
-31
lines changed

README.md

Lines changed: 33 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -19,31 +19,29 @@ Sample Project is TestBlocklyHtml from this repository
1919

2020
*Contributors welcome!* - please send email to <img src='email.png' height='10px' title = "please write email from image" alt='email'></img> or see issues tab.
2121

22-
# How to install NETCore2Blockly in a .NET Core 3.1 WebAPI / MVC application in 2 steps + run application
2322

24-
## Step 1
25-
Install-Package Swashbuckle.AspNetCore -Version 5.6.3
26-
Install-Package NetCore2Blockly -Version 3.2022.224.16
23+
# How to install NETCore2Blockly in a .NET Core 6 WebAPI / MVC application in 2 steps + run application
2724

28-
## Step 2
25+
## Step 1:
26+
Install https://www.nuget.org/packages/NetCore2Blockly/ by running the following command in the Package Manager Console:
27+
> Install-Package NetCore2Blockly
2928
29+
## Step 2:
3030
```csharp
31-
app.UseDefaultFiles();
32-
app.UseStaticFiles();
33-
app.UseSwagger();
34-
//code
35-
app.UseBlocklyUI(env);
36-
app.UseEndpoints(endpoints =>
37-
{
38-
endpoints.MapControllers();
39-
endpoints.UseBlocklyAutomation();
40-
});
31+
//after app.MapControllers();
32+
app.UseBlocklyUI(app.Environment);
33+
app.UseBlocklyAutomation();
34+
4135
```
42-
36+
37+
4338
## Run application
4439

4540
Run the application from VS and browse to /BlocklyAutomation/ or /BlocklyAutomation/index.html
4641

42+
## That's all !( 2 steps + run )
43+
44+
4745
# How to install NETCore2Blockly in a .NET Core 5 WebAPI / MVC application in 2 steps + run application
4846

4947
## Step 1:
@@ -86,28 +84,34 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
8684

8785
Run the application from VS and browse to /BlocklyAutomation/ or /BlocklyAutomation/index.html
8886

89-
# How to install NETCore2Blockly in a .NET Core 6 WebAPI / MVC application in 2 steps + run application
9087

91-
## Step 1:
92-
Install https://www.nuget.org/packages/NetCore2Blockly/ by running the following command in the Package Manager Console:
93-
> Install-Package NetCore2Blockly
9488

95-
## Step 2:
96-
```csharp
97-
//after app.MapControllers();
98-
app.UseBlocklyUI(app.Environment);
99-
app.UseBlocklyAutomation();
10089

101-
```
90+
# How to install NETCore2Blockly in a .NET Core 3.1 WebAPI / MVC application in 2 steps + run application
91+
92+
## Step 1
93+
Install-Package Swashbuckle.AspNetCore -Version 5.6.3
94+
Install-Package NetCore2Blockly -Version 3.2022.224.16
10295

96+
## Step 2
10397

98+
```csharp
99+
app.UseDefaultFiles();
100+
app.UseStaticFiles();
101+
app.UseSwagger();
102+
//code
103+
app.UseBlocklyUI(env);
104+
app.UseEndpoints(endpoints =>
105+
{
106+
endpoints.MapControllers();
107+
endpoints.UseBlocklyAutomation();
108+
});
109+
```
110+
104111
## Run application
105112

106113
Run the application from VS and browse to /BlocklyAutomation/ or /BlocklyAutomation/index.html
107114

108-
## That's all !( 2 steps + run )
109-
110-
111115
## Migrating from 1
112116

113117
Replace

src/NetCore2Blockly/NetCore2BlocklyNew/NetCore2BlocklyNew.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp3.1</TargetFramework>
4+
<TargetFramework>net5.0</TargetFramework>
55
</PropertyGroup>
66

77
<PropertyGroup>
@@ -18,7 +18,7 @@
1818
</ItemGroup>
1919
<PropertyGroup>
2020
<PackageId>NetCore2Blockly</PackageId>
21-
<Version>3.2022.224.16</Version>
21+
<Version>5.2022.730.2029</Version>
2222
<PackageReadmeFile>README.md</PackageReadmeFile>
2323
<GenerateEmbeddedFilesManifest>true</GenerateEmbeddedFilesManifest>
2424
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>

0 commit comments

Comments
 (0)