Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ For now, you can consider the following libraries for documents creation and man

### Requirements

- .NET 6, 8, 9, 10 and .NET Framework 4.6.2 and higher are supported, but tests are mostly performed on .NET 8 and above.
- DocSharp.SystemDrawing is for Windows only (.NET Framework or net*-windows), as System.Drawing.Common is only supported on Windows; while DocSharp.ImageSharp is cross-platform for .NET 6+ (ImageSharp does not support .NET Framework).
- .NET 8, 9, 10 and .NET Framework 4.6.2 and higher are supported, but tests are mostly performed on .NET 8 and above.
- DocSharp.SystemDrawing is for Windows only (.NET Framework or net*-windows), as System.Drawing.Common is only supported on Windows; while DocSharp.ImageSharp is cross-platform for .NET 8+ (ImageSharp does not support .NET Framework).

### Usage

Expand Down
26 changes: 26 additions & 0 deletions src/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI

on:
push:

jobs:
build:
name: Restore, Build, Test, Pack
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '10.0.x'

- name: Restore
run: dotnet restore

- name: Build
run: dotnet build --configuration Release --no-restore --nologo

- name: Test
run: dotnet test --configuration Release --no-build --nologo
Copy link

Copilot AI Dec 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The GitHub Actions workflow file is placed in an incorrect location. Workflow files should be located at .github/workflows/ci.yml (at the repository root), not src/.github/workflows/ci.yml. GitHub Actions will not discover or execute workflows in the src/.github/ directory.

Suggested change
name: CI
on:
push:
jobs:
build:
name: Restore, Build, Test, Pack
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '10.0.x'
- name: Restore
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore --nologo
- name: Test
run: dotnet test --configuration Release --no-build --nologo
# This file is intentionally not a GitHub Actions workflow.
#
# Active workflows must be placed under:
# .github/workflows/ci.yml
#
# If you want to use the CI pipeline, create or move the workflow
# definition to `.github/workflows/ci.yml` at the repository root.
#
# Example (previous content that was incorrectly placed here):
#
# name: CI
#
# on:
# push:
#
# jobs:
# build:
# name: Restore, Build, Test, Pack
# runs-on: windows-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
#
# - name: Setup .NET
# uses: actions/setup-dotnet@v3
# with:
# dotnet-version: '10.0.x'
#
# - name: Restore
# run: dotnet restore
#
# - name: Build
# run: dotnet build --configuration Release --no-restore --nologo
#
# - name: Test
# run: dotnet test --configuration Release --no-build --nologo

Copilot uses AI. Check for mistakes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net8.0;net9.0;net10.0;net462</TargetFrameworks>
<TargetFrameworks>net8.0;net9.0;net10.0;net462</TargetFrameworks>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>disable</Nullable>
<LangVersion>latest</LangVersion>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net8.0;net9.0;net10.0;net462</TargetFrameworks>
<TargetFrameworks>net8.0;net9.0;net10.0;net462</TargetFrameworks>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>disable</Nullable>
<LangVersion>latest</LangVersion>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net8.0;net9.0;net10.0;net462</TargetFrameworks>
<TargetFrameworks>net8.0;net9.0;net10.0;net462</TargetFrameworks>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>disable</Nullable>
<LangVersion>latest</LangVersion>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net8.0;net9.0;net10.0;net462</TargetFrameworks>
<TargetFrameworks>net8.0;net9.0;net10.0;net462</TargetFrameworks>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>disable</Nullable>
<LangVersion>latest</LangVersion>
Expand Down
2 changes: 1 addition & 1 deletion src/DocSharp.Common/DocSharp.Common.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net8.0;net9.0;net10.0;net462</TargetFrameworks>
<TargetFrameworks>net8.0;net9.0;net10.0;net462</TargetFrameworks>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>
Expand Down
2 changes: 1 addition & 1 deletion src/DocSharp.Docx/DocSharp.Docx.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net8.0;net9.0;net10.0;net462</TargetFrameworks>
<TargetFrameworks>net8.0;net9.0;net10.0;net462</TargetFrameworks>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>
Expand Down
2 changes: 1 addition & 1 deletion src/DocSharp.ImageSharp/DocSharp.ImageSharp.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net8.0;net9.0;net10.0</TargetFrameworks>
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>
Expand Down
2 changes: 1 addition & 1 deletion src/DocSharp.Markdown/DocSharp.Markdown.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net8.0;net9.0;net10.0;net462</TargetFrameworks>
<TargetFrameworks>net8.0;net9.0;net10.0;net462</TargetFrameworks>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>
Expand Down
2 changes: 1 addition & 1 deletion src/DocSharp.SystemDrawing/DocSharp.SystemDrawing.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0-windows;net8.0-windows;net9.0-windows;net10.0-windows;net462</TargetFrameworks>
<TargetFrameworks>net8.0-windows;net9.0-windows;net10.0-windows;net462</TargetFrameworks>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>
Expand Down