chore: update the docs project to .net 5 rc1 (#612)

* chore: update the docs project to .net 5 rc1

* chore: update dotnet sdk for pr check actions

* chore: update cli to .net5

* fix: cli output path

* fix: also should install 3.1

* fix: switch installation sequence

* chore: update test to .net 5
This commit is contained in:
James Yeung 2020-09-17 15:03:25 +08:00 committed by GitHub
parent ef7f557a7f
commit e95ee75f80
8 changed files with 18 additions and 16 deletions

View File

@ -23,7 +23,7 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.300
dotnet-version: 5.0.100-rc.1.20452.10
- uses: actions/setup-node@v1
with:

View File

@ -41,7 +41,7 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.300
dotnet-version: 5.0.100-rc.1.20452.10
- name: Setup Node.js
uses: actions/setup-node@v1

View File

@ -12,10 +12,15 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Setup .NET Core
- name: Setup .NET Core 3.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.300
- name: Setup .NET 5
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.100-rc.1.20452.10
- uses: actions/setup-node@v1
with:

View File

@ -49,7 +49,7 @@
<PropertyGroup>
<CLIProjectDir>site/AntDesign.Docs.Build.CLI</CLIProjectDir>
<CLIPath>$(CLIProjectDir)/bin/Debug/netcoreapp3.1/AntDesign.Docs.Build.CLI.dll</CLIPath>
<CLIPath>$(CLIProjectDir)/bin/Debug/net5.0/AntDesign.Docs.Build.CLI.dll</CLIPath>
</PropertyGroup>
<Target Name="RunCli" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Debug'">

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net5.0</TargetFramework>
<OutputType>Exe</OutputType>
</PropertyGroup>

View File

@ -1,15 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<RazorLangVersion>3.0</RazorLangVersion>
<TargetFramework>net5.0</TargetFramework>
<ServiceWorkerAssetsManifest>service-worker-assets.js</ServiceWorkerAssetsManifest>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="3.2.1" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Build" Version="3.2.1" PrivateAssets="all" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="3.2.1" PrivateAssets="all" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="5.0.0-rc.1.20451.17" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="5.0.0-rc.1.20451.17" PrivateAssets="all" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Authentication" Version="5.0.0-rc.1.20451.17" />
</ItemGroup>
<ItemGroup>

View File

@ -1,12 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<DisableImplicitComponentsAnalyzers>true</DisableImplicitComponentsAnalyzers>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="3.2.1" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="5.0.0-rc.1.20451.17" />
</ItemGroup>
<ItemGroup>

View File

@ -1,8 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<RazorLangVersion>3.0</RazorLangVersion>
<TargetFramework>net5.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>