mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-11-29 18:48:50 +08:00
chore: add .NET 5 target framework to all projects (#758)
Co-authored-by: ElderJames <shunjiey@hotmail.com>
This commit is contained in:
parent
a6d38a6faf
commit
e672e4f363
6
.github/workflows/gh-pages.yml
vendored
6
.github/workflows/gh-pages.yml
vendored
@ -1,7 +1,7 @@
|
||||
name: Publish Docs
|
||||
|
||||
env:
|
||||
Version: 0.4.0
|
||||
Version: 0.5.0
|
||||
NUGET_API_KEY: ${{secrets.NUGET_API_KEY}}
|
||||
|
||||
on:
|
||||
@ -23,7 +23,7 @@ jobs:
|
||||
- name: Setup .NET Core
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 5.0.100-rc.2.20479.15
|
||||
dotnet-version: 5.0.100
|
||||
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
@ -44,7 +44,7 @@ jobs:
|
||||
echo "/* updated `date "+%Y-%m-%d %H:%M:%S"` */" >> ./site/AntDesign.Docs.Wasm/wwwroot/service-worker.published.js
|
||||
cp -rf scripts/gh-pages/* scripts/gh-pages/.nojekyll scripts/gh-pages/.spa ./site/AntDesign.Docs.Wasm/wwwroot
|
||||
dotnet build
|
||||
dotnet publish ./site/AntDesign.Docs.Wasm -c Release -o cargo
|
||||
dotnet publish ./site/AntDesign.Docs.Wasm -c Release -f net5 -o cargo
|
||||
|
||||
- name: Deploy 🚀
|
||||
uses: JamesIves/github-pages-deploy-action@releases/v3
|
||||
|
4
.github/workflows/pr-preview.yml
vendored
4
.github/workflows/pr-preview.yml
vendored
@ -41,7 +41,7 @@ jobs:
|
||||
- name: Setup .NET Core
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 5.0.100-rc.2.20479.15
|
||||
dotnet-version: 5.0.100
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v1
|
||||
@ -59,7 +59,7 @@ jobs:
|
||||
npm install
|
||||
cp -rf scripts/gh-pages/* scripts/gh-pages/.nojekyll scripts/gh-pages/.spa ./site/AntDesign.Docs.Wasm/wwwroot
|
||||
dotnet build
|
||||
dotnet publish ./site/AntDesign.Docs.Wasm -c Release -o cargo
|
||||
dotnet publish ./site/AntDesign.Docs.Wasm -c Release -f net5 -o cargo
|
||||
|
||||
- name: Deploy Preview 🚀
|
||||
env:
|
||||
|
4
.github/workflows/pull-request.yml
vendored
4
.github/workflows/pull-request.yml
vendored
@ -20,7 +20,7 @@ jobs:
|
||||
- name: Setup .NET 5
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 5.0.100-rc.2.20479.15
|
||||
dotnet-version: 5.0.100
|
||||
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
@ -31,7 +31,7 @@ jobs:
|
||||
npm install
|
||||
cp -rf scripts/gh-pages/* scripts/gh-pages/.nojekyll scripts/gh-pages/.spa ./site/AntDesign.Docs.Wasm/wwwroot
|
||||
dotnet build
|
||||
dotnet publish -c Release -o cargo
|
||||
dotnet publish ./site/AntDesign.Docs.Wasm -c Release -f net5 -o cargo
|
||||
|
||||
- name: Test And Coverage Report 📝
|
||||
run: |
|
||||
|
15
.github/workflows/release.yml
vendored
15
.github/workflows/release.yml
vendored
@ -37,16 +37,5 @@ jobs:
|
||||
echo "::set-env name=VERSION::${VERSION}"
|
||||
npm install
|
||||
dotnet build components/AntDesign.csproj
|
||||
dotnet pack components/AntDesign.csproj /p:PackageVersion=$VERSION -c Release -o publish
|
||||
dotnet nuget push publish/*.nupkg -s https://api.nuget.org/v3/index.json -k $NUGET_API_KEY --skip-duplicate
|
||||
|
||||
- name: Publish to npm 🎁
|
||||
env:
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
run: |
|
||||
dotnet publish scripts/npm -c Release -o npm-publish
|
||||
cp ./scripts/npm/package.json ./npm-publish/wwwroot/
|
||||
cd ./npm-publish/wwwroot/
|
||||
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
|
||||
npm version ${{ env.VERSION }}
|
||||
npm publish
|
||||
dotnet pack components/AntDesign.csproj /p:PackageVersion=$VERSION -c Release -f net5 -o publish
|
||||
dotnet nuget push publish/*.nupkg -s https://api.nuget.org/v3/index.json -k $NUGET_API_KEY --skip-duplicate
|
@ -17,6 +17,7 @@
|
||||
[![AntDesign](https://img.shields.io/badge/License-MIT-blue?style=flat-square)](https://github.com/ant-design-blazor/ant-design-blazor/blob/master/LICENSE)
|
||||
[![Slack Group](https://img.shields.io/badge/Slack-AntBlazor-blue.svg?style=flat-square&logo=slack)](https://join.slack.com/t/AntBlazor/shared_invite/zt-etfaf1ww-AEHRU41B5YYKij7SlHqajA)
|
||||
[![Ding Talk Group](https://img.shields.io/badge/DingTalk-AntBlazor-blue.svg?style=flat-square&logo=data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pg0KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGNsYXNzPSJpY29uIiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiBmaWxsPSIjZmZmZmZmIj4NCiAgPHBhdGggZD0iTTU3My43IDI1Mi41QzQyMi41IDE5Ny40IDIwMS4zIDk2LjcgMjAxLjMgOTYuN2MtMTUuNy00LjEtMTcuOSAxMS4xLTE3LjkgMTEuMS01IDYxLjEgMzMuNiAxNjAuNSA1My42IDE4Mi44IDE5LjkgMjIuMyAzMTkuMSAxMTMuNyAzMTkuMSAxMTMuN1MzMjYgMzU3LjkgMjcwLjUgMzQxLjljLTU1LjYtMTYtMzcuOSAxNy44LTM3LjkgMTcuOCAxMS40IDYxLjcgNjQuOSAxMzEuOCAxMDcuMiAxMzguNCA0Mi4yIDYuNiAyMjAuMSA0IDIyMC4xIDRzLTM1LjUgNC4xLTkzLjIgMTEuOWMtNDIuNyA1LjgtOTcgMTIuNS0xMTEuMSAxNy44LTMzLjEgMTIuNSAyNCA2Mi42IDI0IDYyLjYgODQuNyA3Ni44IDEyOS43IDUwLjUgMTI5LjcgNTAuNSAzMy4zLTEwLjcgNjEuNC0xOC41IDg1LjItMjQuMkw1NjUgNzQzLjFoODQuNkw2MDMgOTI4bDIwNS4zLTI3MS45SDcwMC44bDIyLjMtMzguN2MuMy41LjQuOC40LjhTNzk5LjggNDk2LjEgODI5IDQzMy44bC42LTFoLS4xYzUtMTAuOCA4LjYtMTkuNyAxMC0yNS44IDE3LTcxLjMtMTE0LjUtOTkuNC0yNjUuOC0xNTQuNXoiLz4NCjwvc3ZnPg0K)](https://h5.dingtalk.com/circle/healthCheckin.html?corpId=dingccf128388c3ea40eda055e4784d35b88&2f46=c9b80ba5&origin=11)
|
||||
[![Discord Server](https://img.shields.io/discord/753358910341251182?color=%237289DA&label=AntBlazor&logo=discord&logoColor=white&style=flat-square)](https://discord.com/invite/jqu3Xeq)
|
||||
|
||||
</div>
|
||||
|
||||
@ -31,7 +32,7 @@
|
||||
- 💕 支持基于 WebAssembly 的客户端和基于 SignalR 的服务端 UI 事件交互。
|
||||
- 🎨 支持渐进式 Web 应用(PWA)
|
||||
- 🛡 使用 C# 构建,多范式静态语言带来高效的开发体验。
|
||||
- ⚙️ 基于 .NET Standard 2.1,可直接引用丰富的 .NET 类库。
|
||||
- ⚙️ 基于 .NET Standard 2.1 / .NET 5,可直接引用丰富的 .NET 类库。
|
||||
- 🎁 可与已有的 ASP.NET Core MVC、Razor Pages 项目无缝集成。
|
||||
|
||||
## 🌈 在线示例
|
||||
@ -43,8 +44,8 @@ WebAssembly 静态托管页面示例
|
||||
|
||||
## 🖥 支持环境
|
||||
|
||||
- .NET Core 3.1。
|
||||
- Blazor WebAssembly 3.2 正式版。
|
||||
- .NET Core 3.1 / .NET 5。
|
||||
- Blazor WebAssembly 3.2 /.NET 5 正式版。
|
||||
- 支持服务端双向绑定。
|
||||
- 支持 WebAssembly 静态文件部署。
|
||||
- 主流 4 款现代浏览器,以及 Internet Explorer 11+(限 [Blazor Server](https://docs.microsoft.com/en-us/aspnet/core/blazor/supported-platforms?view=aspnetcore-3.1))。
|
||||
@ -67,7 +68,7 @@ WebAssembly 静态托管页面示例
|
||||
|
||||
## 📦 安装
|
||||
|
||||
- 先安装 [.NET Core SDK](https://dotnet.microsoft.com/download/dotnet-core/3.1) 3.1.300 以上版本
|
||||
- 先安装 [.NET Core SDK](https://dotnet.microsoft.com/download/dotnet-core/3.1) 3.1.300 以上版本,推荐 .NET 5
|
||||
|
||||
### 从模板创建一个新项目
|
||||
|
||||
@ -76,7 +77,7 @@ WebAssembly 静态托管页面示例
|
||||
- 安装模板
|
||||
|
||||
```bash
|
||||
$ dotnet new --install AntDesign.Templates::0.1.0-*
|
||||
$ dotnet new --install AntDesign.Templates
|
||||
```
|
||||
|
||||
- 从模板创建 Ant Design Blazor Pro 项目
|
||||
@ -146,7 +147,7 @@ WebAssembly 静态托管页面示例
|
||||
|
||||
## ⌨️ 本地开发
|
||||
|
||||
- 先安装 [.NET Core SDK](https://dotnet.microsoft.com/download/dotnet-core/3.1) 3.1.300 以上版本
|
||||
- 先安装 [.NET Core SDK](https://dotnet.microsoft.com/download/dotnet/5.0) 5.0.100 以上版本
|
||||
- 安装 Node.js(只用于样式文件和互操作所需 TS 文件的构建)
|
||||
- 克隆到本地开发
|
||||
|
||||
|
14
README.md
14
README.md
@ -33,7 +33,7 @@ English | [简体中文](README-zh_CN.md)
|
||||
- 💕 Supports WebAssembly-based client-side and SignalR-based server-side UI event interaction.
|
||||
- 🎨 Supports Progressive Web Applications (PWA).
|
||||
- 🛡 Build with C#, a multi-paradigm static language for an efficient development experience.
|
||||
- ⚙️ .NET Standard 2.1 based, with direct reference to the rich .NET ecosystem.
|
||||
- ⚙️ .NET Standard 2.1/.NET 5 based, with direct reference to the rich .NET ecosystem.
|
||||
- 🎁 Seamless integration with existing ASP.NET Core MVC and Razor Pages projects.
|
||||
|
||||
## 🌈 Online Examples
|
||||
@ -45,8 +45,8 @@ WebAssembly static hosting examples:
|
||||
|
||||
## 🖥 Environment Support
|
||||
|
||||
- .NET Core 3.1
|
||||
- Blazor WebAssembly 3.2 Release
|
||||
- .NET Core 3.1 / .NET 5
|
||||
- Blazor WebAssembly 3.2/.NET 5 Release
|
||||
- Supports two-way binding on the server side
|
||||
- Supports WebAssembly static file deployment
|
||||
- Support 4 major browsers engines, and Internet Explorer 11+ ([Blazor Server](https://docs.microsoft.com/en-us/aspnet/core/blazor/supported-platforms?view=aspnetcore-3.1) only)
|
||||
@ -69,7 +69,7 @@ Regularly synchronize with Official Ant Design specifications, you can check the
|
||||
|
||||
## 📦 Installation Guide
|
||||
|
||||
- Install [.NET Core SDK](https://dotnet.microsoft.com/download/dotnet-core/3.1) 3.1.300 or later
|
||||
- Install [.NET Core SDK](https://dotnet.microsoft.com/download/dotnet-core/3.1) 3.1.300 or later, .NET 5 is even better.
|
||||
|
||||
### Create a new project from the dotnet new template
|
||||
|
||||
@ -78,7 +78,7 @@ We have provided the `dotnet new` template to create a [Boilerplate](https://git
|
||||
- Install the template
|
||||
|
||||
```bash
|
||||
$ dotnet new --install AntDesign.Templates::0.1.0-*
|
||||
$ dotnet new --install AntDesign.Templates
|
||||
```
|
||||
|
||||
- Create the Boilerplate project with the template
|
||||
@ -148,7 +148,7 @@ Options for the template:
|
||||
|
||||
## ⌨️ Local Development
|
||||
|
||||
- Install [.NET Core SDK](https://dotnet.microsoft.com/download/dotnet-core/3.1) 3.1.300 or later.
|
||||
- Install [.NET Core SDK](https://dotnet.microsoft.com/download/dotnet/5.0) 5.0.100 or later.
|
||||
- Install Node.js (only for building style files and interoperable TypeScript files)
|
||||
- Clone to local development
|
||||
|
||||
@ -165,7 +165,7 @@ Options for the template:
|
||||
|
||||
## 🔗 Links
|
||||
|
||||
- [Ant Design Blazor Documentation](https://ant-design-blazor.gitee.io)
|
||||
- [Ant Design Blazor Documentation](https://ant-design-blazor.github.io)
|
||||
- [Official Blazor Documentation](https://docs.microsoft.com/en-us/aspnet/core/blazor/?WT.mc_id=DT-MVP-5003987)
|
||||
- [MS Learn for Blazor Tutorial](https://docs.microsoft.com/en-us/learn/modules/build-blazor-webassembly-visual-studio-code/?WT.mc_id=DT-MVP-5003987)
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Razor">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.1</TargetFramework>
|
||||
<TargetFrameworks>netstandard2.1;net5</TargetFrameworks>
|
||||
<LangVersion>9.0</LangVersion>
|
||||
<OutputType>Library</OutputType>
|
||||
<IsPackable>true</IsPackable>
|
||||
@ -43,15 +43,23 @@
|
||||
<EmbeddedResource Include="locales\*.json" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ItemGroup Condition="$(TargetFramework) == 'netstandard2.1'">
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.DataAnnotations.Validation" Version="3.2.0-rc1.20223.4" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="3.1.0" />
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.0.0">
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="$(TargetFramework) == 'net5'">
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.DataAnnotations.Validation" Version="3.2.0-rc1.20223.4" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="5.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.3.1">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="OneOf" Version="2.1.151" />
|
||||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/>
|
||||
<PackageReference Include="OneOf" Version="2.1.155" />
|
||||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
|
||||
</ItemGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' And '$(SolutionDir)'==''">
|
||||
|
@ -30,7 +30,7 @@ Following the Ant Design specification, we developed a Blazor Components library
|
||||
- 💕 Supports WebAssembly-based client-side and SignalR-based server-side UI event interaction.
|
||||
- 🎨 Supports Progressive Web Applications (PWA).
|
||||
- 🛡 Build with C#, a multi-paradigm static language for an efficient development experience.
|
||||
- ⚙️ .NET Standard 2.1 based, with direct reference to the rich .NET ecosystem.
|
||||
- ⚙️ .NET Standard 2.1/.NET 5 based, with direct reference to the rich .NET ecosystem.
|
||||
- 🎁 Seamless integration with existing ASP.NET Core MVC and Razor Pages projects.
|
||||
|
||||
## 🌈 Online Examples
|
||||
@ -42,7 +42,7 @@ WebAssembly static hosting examples:
|
||||
|
||||
## 🖥 Environment Support
|
||||
|
||||
- .NET Core 3.1
|
||||
- .NET Core 3.1 / .NET 5
|
||||
- Blazor WebAssembly 3.2 Release
|
||||
- Supports two-way binding on the server side
|
||||
- Supports WebAssembly static file deployment
|
||||
@ -146,7 +146,7 @@ Options for the template:
|
||||
|
||||
## 🔨 Local Development
|
||||
|
||||
- Install [.NET Core SDK](https://dotnet.microsoft.com/download) 3.1.300 or later.
|
||||
- Install [.NET Core SDK](https://dotnet.microsoft.com/download) 5.0.100 or later.
|
||||
- Install Node.js (only for building style files and interoperable TypeScript files)
|
||||
- Clone to local development
|
||||
|
||||
@ -163,7 +163,7 @@ Options for the template:
|
||||
|
||||
## 🔗 Links
|
||||
|
||||
- [Ant Design Blazor Documentation](https://ant-design-blazor.gitee.io)
|
||||
- [Ant Design Blazor Documentation](https://ant-design-blazor.github.io)
|
||||
- [Official Blazor Documentation](https://docs.microsoft.com/en-us/aspnet/core/blazor/?WT.mc_id=DT-MVP-5003987)
|
||||
- [MS Learn for Blazor Tutorial](https://docs.microsoft.com/en-us/learn/modules/build-blazor-webassembly-visual-studio-code/?WT.mc_id=DT-MVP-5003987)
|
||||
|
||||
|
@ -30,7 +30,7 @@ title: Ant Design of Blazor
|
||||
- 💕 支持基于 WebAssembly 的客户端和基于 SignalR 的服务端 UI 事件交互。
|
||||
- 🎨 支持渐进式 Web 应用(PWA)
|
||||
- 🛡 使用 C# 构建,多范式静态语言带来高效的开发体验。
|
||||
- ⚙️ 基于 .NET Standard 2.1,可直接引用丰富的 .NET 类库。
|
||||
- ⚙️ 基于 .NET Standard 2.1/.NET 5,可直接引用丰富的 .NET 类库。
|
||||
- 🎁 可与已有的 ASP.NET Core MVC、Razor Pages 项目无缝集成。
|
||||
|
||||
## 🌈 在线示例
|
||||
@ -142,7 +142,7 @@ title: Ant Design of Blazor
|
||||
|
||||
## 🔨 本地开发
|
||||
|
||||
- 先安装 [.NET Core SDK](https://dotnet.microsoft.com/download/dotnet-core/3.1) 3.1.300 以上版本
|
||||
- 先安装 [.NET Core SDK](https://dotnet.microsoft.com/download/dotnet/5.0) 5.0.100 以上版本
|
||||
- 安装 Node.js(只用于样式文件和互操作所需 TS 文件的构建)
|
||||
- 克隆到本地开发
|
||||
|
||||
|
@ -1,14 +1,14 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Razor">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.1</TargetFramework>
|
||||
<TargetFrameworks>netcoreapp3.1;net5</TargetFrameworks>
|
||||
<LangVersion>9.0</LangVersion>
|
||||
<RazorLangVersion>3.0</RazorLangVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="AntDesign.Charts" Version="0.2.0" />
|
||||
<PackageReference Include="System.Net.Http.Json" Version="3.2.1" />
|
||||
<PackageReference Include="System.Net.Http.Json" Version="5.0.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.Web.Extensions" Version="5.0.0-preview9.20513.1" />
|
||||
</ItemGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(SolutionDir)'==''">
|
||||
@ -50,13 +50,14 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<CLIProjectDir>site/AntDesign.Docs.Build.CLI</CLIProjectDir>
|
||||
<CLIPath>$(CLIProjectDir)/bin/Debug/net5.0/AntDesign.Docs.Build.CLI.dll</CLIPath>
|
||||
<CLIPath>$(CLIProjectDir)/bin/Debug/net5/AntDesign.Docs.Build.CLI.dll</CLIPath>
|
||||
<ProjectDir>$(SolutionDir)/site/AntBlazor.Docs</ProjectDir>
|
||||
</PropertyGroup>
|
||||
|
||||
<Target Name="RunCli" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Debug'">
|
||||
<Exec WorkingDirectory="$(SolutionDir)" Command="dotnet build $(CLIProjectDir)" />
|
||||
<Exec WorkingDirectory="$(SolutionDir)" Command="dotnet $(CLIPath) demo2json $(ProjectDir)Demos $(ProjectDir)wwwroot/meta" />
|
||||
<Exec WorkingDirectory="$(SolutionDir)" Command="dotnet $(CLIPath) menu2json $(ProjectDir)Demos docs $(ProjectDir)wwwroot/meta" />
|
||||
<Exec WorkingDirectory="$(SolutionDir)" Command="dotnet $(CLIPath) demo2json $(ProjectDir)/Demos $(ProjectDir)/wwwroot/meta" />
|
||||
<Exec WorkingDirectory="$(SolutionDir)" Command="dotnet $(CLIPath) menu2json $(ProjectDir)/Demos docs $(ProjectDir)/wwwroot/meta" />
|
||||
<Exec WorkingDirectory="$(SolutionDir)" Command="dotnet $(CLIPath) docs2html ./docs ./site/AntBlazor.Docs/wwwroot/docs" />
|
||||
</Target>
|
||||
|
||||
|
@ -8,6 +8,8 @@
|
||||
|
||||
@if (_demoComponent != null)
|
||||
{
|
||||
var title = $"{_demoComponent.SubTitle} {_demoComponent.Title} - Ant Design Blazor".Trim();
|
||||
<Microsoft.AspNetCore.Components.Web.Extensions.Head.Title Value="@title" />
|
||||
var docDemos = _demoComponent.DemoList?.Where(x => x.Docs.HasValue && x.Docs.Value) ?? Enumerable.Empty<DemoItem>();
|
||||
var demos = _demoComponent.DemoList?.Where(x => !x.Debug && !x.Docs.HasValue).OrderBy(x => x.Order) ?? Enumerable.Empty<DemoItem>();
|
||||
|
||||
|
@ -1,10 +1,11 @@
|
||||
@page "/docs/{fileName}"
|
||||
@page "/docs"
|
||||
|
||||
<section class="main-container">
|
||||
<article class="markdown">
|
||||
@if (_file != null)
|
||||
{
|
||||
var title = $"{_file.Title} - Ant Design of Blazor";
|
||||
<Microsoft.AspNetCore.Components.Web.Extensions.Head.Title Value="@title" />
|
||||
<h1>@_file.Title</h1>
|
||||
@((MarkupString) _file.Html)
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<TargetFrameworks>netcoreapp3.1;net5</TargetFrameworks>
|
||||
<OutputType>Exe</OutputType>
|
||||
</PropertyGroup>
|
||||
|
||||
@ -13,8 +13,8 @@
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Extensions.CommandLineUtils" Version="1.1.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.5" />
|
||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="5.0.0" />
|
||||
<PackageReference Include="YamlDotnet" Version="8.1.2" />
|
||||
<PackageReference Include="Markdig" Version="0.20.0" />
|
||||
<PackageReference Include="Markdig" Version="0.22.0" />
|
||||
</ItemGroup>
|
||||
</Project>
|
@ -32,7 +32,7 @@ namespace AntDesign.Docs.Build.CLI.Command
|
||||
|
||||
if (string.IsNullOrEmpty(source) || !Directory.Exists(source))
|
||||
{
|
||||
Console.WriteLine("Invalid source.");
|
||||
Console.WriteLine($"Invalid source: {source}");
|
||||
return 1;
|
||||
}
|
||||
|
||||
@ -45,7 +45,6 @@ namespace AntDesign.Docs.Build.CLI.Command
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
GenerateFiles(demoDirectory, output);
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
@ -4,8 +4,8 @@
|
||||
"commandName": "Project",
|
||||
//"commandLineArgs": "docs2html ../../../../../docs ./"
|
||||
//"commandLineArgs": "menu2json ../../../../AntBlazor.Docs/Demos ../../../../../docs ./"
|
||||
//"commandLineArgs": "demo2json ../../../../AntBlazor.Docs/Demos ./"
|
||||
"commandLineArgs": "icons2json ../../../../../components/wwwroot/icons ./"
|
||||
"commandLineArgs": "demo2json ../../../../AntBlazor.Docs/Demos ./"
|
||||
//"commandLineArgs": "icons2json ../../../../../components/wwwroot/icons ./"
|
||||
}
|
||||
}
|
||||
}
|
@ -1,8 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
<RazorLangVersion>3.0</RazorLangVersion>
|
||||
<TargetFrameworks>netcoreapp3.1;net5</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
@ -16,8 +15,8 @@
|
||||
<ItemGroup>
|
||||
<DocFiles Include="$(SolutionDir)docs\**\*.*"></DocFiles>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Watch Include="$(SolutionDir)**\*.razor" />
|
||||
<ItemGroup>
|
||||
<Watch Include="$(SolutionDir)**\*.razor" />
|
||||
</ItemGroup>
|
||||
<Target Name="CopyDocs" BeforeTargets="Build">
|
||||
<Copy SourceFiles="@(DocFiles)" DestinationFolder="$(ProjectDir)\wwwroot\docs\%(RecursiveDir)" ContinueOnError="true" />
|
||||
|
@ -1,15 +1,16 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<TargetFramework>net5</TargetFramework>
|
||||
<ServiceWorkerAssetsManifest>service-worker-assets.js</ServiceWorkerAssetsManifest>
|
||||
<BlazorWebAssemblyLoadAllGlobalizationData>true</BlazorWebAssemblyLoadAllGlobalizationData>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="5.0.0-rc.2.20475.17" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="5.0.0-rc.2.20475.17" PrivateAssets="all" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Authentication" Version="5.0.0-rc.2.20475.17" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="5.0.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="5.0.0" PrivateAssets="all" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Authentication" Version="5.0.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.Web.Extensions" Version="5.0.0-preview9.20513.1" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<TargetFramework>net5</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="5.0.0-rc.2.20475.17" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="5.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
@ -1,22 +1,27 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Razor">
|
||||
<Project Sdk="Microsoft.NET.Sdk.Razor">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<TargetFrameworks>netcoreapp3.1;</TargetFrameworks>
|
||||
<IsPackable>false</IsPackable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="bunit.web" Version="1.0.0-beta-8" />
|
||||
<PackageReference Include="bunit.xunit" Version="1.0.0-beta-8" />
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />
|
||||
<PackageReference Include="Moq" Version="4.14.5" />
|
||||
<PackageReference Include="xunit" Version="2.4.0" />
|
||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.0" />
|
||||
<PackageReference Include="coverlet.collector" Version="1.2.0" />
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.0" />
|
||||
<PackageReference Include="Moq" Version="4.15.1" />
|
||||
<PackageReference Include="xunit" Version="2.4.1" />
|
||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="coverlet.collector" Version="1.3.0">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\components\AntDesign.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
</Project>
|
Loading…
Reference in New Issue
Block a user