TargetFramework support #9429
-
Does this really work? I have tried both . "src": [
{
"files": [
"SVGImage/DotNetProjects.SVGImage.csproj"
],
"src": "../Source/",
"properties": {
"TargetFramework": "net7.0-windows"
}
}
], GitHub workflow: # Your GitHub workflow file under .github/workflows/
name: DocFX
on:
push:
branches:
- master
jobs:
publish-docs:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Dotnet Setup
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.x
- run: dotnet tool update -g docfx
- run: docfx Docs/docfx.json
- name: Upload DocFX packages
uses: actions/upload-artifact@v3
with:
name: docfx_site
path: ${{ github.workspace }}/Docs/_site
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: Docs/_site |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
IIRC NuGet package restore uses all But I wonder if you could work around that by setting both |
Beta Was this translation helpful? Give feedback.
-
As far as I've tested. Modified Code
Note Without |
Beta Was this translation helpful? Give feedback.
IIRC NuGet package restore uses all
TargetFrameworks
, not onlyTargetFramework
. Then your pipeline hasdotnet-version: 7.x
which doesn't support targeting .NET 8.But I wonder if you could work around that by setting both
TargetFrameworks
andTargetFramework
in DocFX.