File tree Expand file tree Collapse file tree 14 files changed +71
-52
lines changed
.template.config/templates Expand file tree Collapse file tree 14 files changed +71
-52
lines changed Original file line number Diff line number Diff line change 1
- <Project Sdk =" Microsoft.NET.Sdk.Web " >
1
+ <Project Sdk =" Microsoft.NET.Sdk.BlazorWebAssembly " >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >netstandard2.1</TargetFramework >
5
- <RazorLangVersion >3.0</RazorLangVersion >
4
+ <TargetFramework >net5.0</TargetFramework >
6
5
</PropertyGroup >
7
6
8
7
<ItemGroup >
9
8
<PackageReference Include =" AntDesign" Version =" 0.5.0-*" />
10
9
<PackageReference Include =" AntDesign.Charts" Version =" 0.2.0-*" />
11
10
<PackageReference Include =" AntDesign.Pro.Layout" Version =" 0.1.0-*" />
12
- <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly" Version =" 3.2.0" />
13
- <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly.Build" Version =" 3.2.0" PrivateAssets =" all" />
14
- <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version =" 3.2.0" PrivateAssets =" all" />
15
- <PackageReference Include =" Microsoft.Extensions.Options.ConfigurationExtensions" Version =" 3.1.6" />
16
- <PackageReference Include =" System.Net.Http.Json" Version =" 3.2.0" />
11
+ <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly" Version =" 5.0.0" />
12
+ <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version =" 5.0.0" PrivateAssets =" all" />
13
+ <PackageReference Include =" Microsoft.Extensions.Options.ConfigurationExtensions" Version =" 5.0.0" />
14
+ <PackageReference Include =" System.Net.Http.Json" Version =" 5.0.0" />
17
15
</ItemGroup >
18
16
19
17
<PropertyGroup Condition =" '$(SolutionDir)'==''" >
38
36
<Exec WorkingDirectory =" $(SolutionDir)" Command =" npm install" />
39
37
<Exec WorkingDirectory =" $(SolutionDir)" Command =" npm run gulp:pro" />
40
38
</Target >
41
-
42
- <ItemGroup >
43
- <Watch Include =" **\*.razor" />
44
- <Watch Include =" **\*.less" />
45
- </ItemGroup >
46
39
</Project >
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ public class Program
15
15
public static async Task Main ( string [ ] args )
16
16
{
17
17
var builder = WebAssemblyHostBuilder . CreateDefault ( args ) ;
18
- builder . RootComponents . Add < App > ( "app" ) ;
18
+ builder . RootComponents . Add < App > ( "# app" ) ;
19
19
20
20
builder . Services . AddScoped ( sp => new HttpClient { BaseAddress = new Uri ( builder . HostEnvironment . BaseAddress ) } ) ;
21
21
builder . Services . AddAntDesign ( ) ;
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 >netcoreapp3.1 </TargetFramework >
4
+ <TargetFramework >net5.0 </TargetFramework >
5
5
</PropertyGroup >
6
6
7
7
<ItemGroup >
8
- <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly.Server" Version =" 3.2 .0" />
8
+ <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly.Server" Version =" 5.0 .0" />
9
9
</ItemGroup >
10
10
11
11
<ItemGroup >
Original file line number Diff line number Diff line change 6
6
"Microsoft.Hosting.Lifetime" : " Information"
7
7
}
8
8
}
9
- }
9
+ }
Original file line number Diff line number Diff line change 1
1
{
2
2
"Logging" : {
3
- "LogLevel" : {
3
+ "LogLevel" : {
4
4
"Default" : " Information" ,
5
5
"Microsoft" : " Warning" ,
6
6
"Microsoft.Hosting.Lifetime" : " Information"
7
- }
8
- },
9
- "AllowedHosts" : " *"
10
- }
7
+ }
8
+ },
9
+ "AllowedHosts" : " *"
10
+ }
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 >netcoreapp3.1 </TargetFramework >
4
+ <TargetFramework >net5.0 </TargetFramework >
5
5
</PropertyGroup >
6
6
7
7
<ItemGroup >
8
8
<PackageReference Include =" AntDesign" Version =" 0.5.0-*" />
9
9
<PackageReference Include =" AntDesign.Charts" Version =" 0.2.0-*" />
10
10
<PackageReference Include =" AntDesign.Pro.Layout" Version =" 0.1.0-*" />
11
- <PackageReference Include =" System.Net.Http.Json" Version =" 3.2 .0" />
11
+ <PackageReference Include =" System.Net.Http.Json" Version =" 5.0 .0" />
12
12
</ItemGroup >
13
13
14
14
<PropertyGroup Condition =" '$(SolutionDir)'==''" >
33
33
<Exec WorkingDirectory =" $(SolutionDir)" Command =" npm install" />
34
34
<Exec WorkingDirectory =" $(SolutionDir)" Command =" npm run gulp:pro" />
35
35
</Target >
36
-
37
- <ItemGroup >
38
- <Watch Include =" **\*.razor" />
39
- <Watch Include =" **\*.less" />
40
- </ItemGroup >
41
36
</Project >
Original file line number Diff line number Diff line change
1
+ {
2
+ "iisSettings" : {
3
+ "windowsAuthentication" : false ,
4
+ "anonymousAuthentication" : true ,
5
+ "iisExpress" : {
6
+ "applicationUrl" : " http://localhost:53775" ,
7
+ "sslPort" : 44358
8
+ }
9
+ },
10
+ "profiles" : {
11
+ "IIS Express" : {
12
+ "commandName" : " IISExpress" ,
13
+ "launchBrowser" : true ,
14
+ "environmentVariables" : {
15
+ "ASPNETCORE_ENVIRONMENT" : " Development"
16
+ }
17
+ },
18
+ "AntDesign.Pro.Template" : {
19
+ "commandName" : " Project" ,
20
+ "dotnetRunMessages" : " true" ,
21
+ "launchBrowser" : true ,
22
+ "applicationUrl" : " https://localhost:5001;http://localhost:5000" ,
23
+ "environmentVariables" : {
24
+ "ASPNETCORE_ENVIRONMENT" : " Development"
25
+ }
26
+ }
27
+ }
28
+ }
Original file line number Diff line number Diff line change 1
- <Project Sdk =" Microsoft.NET.Sdk.Web " >
1
+ <Project Sdk =" Microsoft.NET.Sdk.BlazorWebAssembly " >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >netstandard2.1 </TargetFramework >
4
+ <TargetFramework >net5 </TargetFramework >
5
5
<RazorLangVersion >3.0</RazorLangVersion >
6
6
</PropertyGroup >
7
7
8
8
<ItemGroup >
9
9
<PackageReference Include =" AntDesign" Version =" 0.5.0-*" />
10
10
<PackageReference Include =" AntDesign.Charts" Version =" 0.2.0-*" />
11
11
<PackageReference Include =" AntDesign.Pro.Layout" Version =" 0.1.0-*" />
12
- <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly" Version =" 3.2.0" />
13
- <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly.Build" Version =" 3.2.0" PrivateAssets =" all" />
14
- <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version =" 3.2.0" PrivateAssets =" all" />
15
- <PackageReference Include =" Microsoft.Extensions.Options.ConfigurationExtensions" Version =" 3.1.6" />
16
- <PackageReference Include =" System.Net.Http.Json" Version =" 3.2.0" />
12
+ <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly" Version =" 5.0.0" />
13
+ <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version =" 5.0.0" PrivateAssets =" all" />
14
+ <PackageReference Include =" Microsoft.Extensions.Options.ConfigurationExtensions" Version =" 5.0.0" />
15
+ <PackageReference Include =" System.Net.Http.Json" Version =" 5.0.0" />
17
16
</ItemGroup >
18
17
19
18
<PropertyGroup Condition =" '$(SolutionDir)'==''" >
38
37
<Exec WorkingDirectory =" $(SolutionDir)" Command =" npm install" />
39
38
<Exec WorkingDirectory =" $(SolutionDir)" Command =" npm run gulp:pro" />
40
39
</Target >
41
-
42
- <ItemGroup >
43
- <Watch Include =" **\*.razor" />
44
- <Watch Include =" **\*.less" />
45
- </ItemGroup >
46
40
</Project >
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ public class Program
15
15
public static async Task Main ( string [ ] args )
16
16
{
17
17
var builder = WebAssemblyHostBuilder . CreateDefault ( args ) ;
18
- builder . RootComponents . Add < App > ( "app" ) ;
18
+ builder . RootComponents . Add < App > ( "# app" ) ;
19
19
20
20
builder . Services . AddScoped ( sp => new HttpClient { BaseAddress = new Uri ( builder . HostEnvironment . BaseAddress ) } ) ;
21
21
builder . Services . AddAntDesign ( ) ;
Original file line number Diff line number Diff line change 18
18
19
19
< body >
20
20
< noscript > Out-of-the-box mid-stage front/design solution!</ noscript >
21
- < app id ="root ">
21
+ < div id ="app ">
22
22
< style >
23
23
html ,
24
24
body ,
25
- # root {
25
+ # app {
26
26
height : 100% ;
27
27
margin : 0 ;
28
28
padding : 0 ;
29
29
}
30
30
31
- # root {
31
+ # app {
32
32
background-image : url ('<%= context.config.publicPath +"home_bg.png"%>' );
33
33
background-repeat : no-repeat;
34
34
background-size : 100% auto;
199
199
Ant Design Blazor
200
200
</ div >
201
201
</ div >
202
- </ app >
202
+ </ div >
203
203
204
204
< script src ="_content/AntDesign.Charts/g2plot.js "> </ script >
205
205
< script src ="_content/AntDesign/js/ant-design-blazor.js "> </ script >
You can’t perform that action at this time.
0 commit comments