Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
d499d22
Merge pull request #584 from mono/develop
huangmin-ms Oct 19, 2021
f8a55d4
Merge pull request #595 from mono/develop
huangmin-ms Jan 13, 2022
5671681
Merge pull request #603 from mono/develop
huangmin-ms Jan 28, 2022
1a34ff5
Merge pull request #605 from mono/develop
huangmin-ms Jan 28, 2022
47b7145
Merge pull request #616 from mono/develop
huangmin-ms Mar 3, 2022
489be60
Merge pull request #622 from mono/develop
huangmin-ms Mar 24, 2022
8adc14d
Merge pull request #626 from mono/develop
huangmin-ms Apr 24, 2022
7bead46
Merge pull request #636 from mono/develop
huangmin-ms Jun 1, 2022
cc77d91
Merge pull request #643 from mono/develop
huangmin-ms Jul 7, 2022
97c1778
Merge pull request #644 from mono/develop
huangmin-ms Jul 15, 2022
e0baf60
Merge pull request #648 from mono/develop
huangmin-ms Aug 15, 2022
d92d897
Merge pull request #651 from mono/develop
huangmin-ms Sep 2, 2022
18ebe04
Merge pull request #656 from mono/develop
huangmin-ms Nov 14, 2022
f21c774
Merge pull request #658 from mono/develop
huangmin-ms Nov 14, 2022
a18cba5
Merge pull request #664 from mono/develop
huangmin-ms Feb 7, 2023
9712c8d
Merge pull request #670 from mono/develop
huangmin-ms May 6, 2023
f813bcc
Merge pull request #674 from mono/develop
huangmin-ms Jul 6, 2023
01efe58
Merge pull request #676 from mono/develop
huangmin-ms Oct 24, 2023
f49680e
Merge pull request #681 from mono/develop
huangmin-ms Dec 20, 2023
6aac10c
Merge pull request #683 from mono/develop
huangmin-ms Jan 2, 2024
49bdef5
Merge pull request #688 from mono/develop
huangmin-ms Apr 3, 2024
f0bee06
Merge pull request #690 from mono/develop
huangmin-ms Apr 7, 2024
233b49a
Merge pull request #693 from mono/develop
huangmin-ms Apr 17, 2024
e74bcbd
Merge pull request #697 from mono/develop
huangmin-ms May 27, 2024
0f8b1c3
Add OneBranch trigger (#698) (#699)
xmdanni Jul 3, 2024
bc58307
Learn site rebranding update URL (#701)
xmdanni Jul 5, 2024
65aa82d
Remove symbols folder from frameworks.xml (#703) (#704)
huangmin-ms Jul 19, 2024
c3d713f
fix bug 990897 : [.NET] Exclude CollectionsExtensions class from Micr…
huangmin-ms Aug 22, 2024
97940aa
Exclude CollectionsExtensions class from Microsoft.Extensions.Depende…
huangmin-ms Aug 29, 2024
28b327f
Omit NullableContextAttribute from ECMAXML (#715) (#716)
huangmin-ms Oct 11, 2024
0b6d923
Fix bug : Cross reference not found: 'System.IDisposable.Close'. (#72…
huangmin-ms Jan 6, 2025
3aec8b1
Merge develop to main (#728)
huangmin-ms May 8, 2025
d806104
Rename the docs folder
mattleibow Oct 10, 2025
6aaeb5b
Several things
mattleibow Oct 14, 2025
630848a
net6 for now
mattleibow Oct 14, 2025
a6d72c2
sln
mattleibow Oct 14, 2025
3cf59b7
things
mattleibow Oct 14, 2025
c206810
this
mattleibow Oct 14, 2025
1f10bca
Tests back!
mattleibow Oct 14, 2025
510271f
move things a bit more
mattleibow Oct 14, 2025
961be39
ignores
mattleibow Oct 15, 2025
9688068
add baseline
mattleibow Oct 15, 2025
10d4454
logs
mattleibow Oct 15, 2025
df06e83
workflows
mattleibow Oct 15, 2025
5395031
fail never
mattleibow Oct 15, 2025
fb6231f
config
mattleibow Oct 15, 2025
ad23372
cancel
mattleibow Oct 15, 2025
e660b98
merge
mattleibow Oct 15, 2025
f0ddd15
try this
mattleibow Oct 15, 2025
577ddd2
this
mattleibow Oct 15, 2025
9a3683a
brew install --cask mono-mdk
mattleibow Oct 15, 2025
d8ec9d3
linux
mattleibow Oct 15, 2025
df79d6f
no win test
mattleibow Oct 15, 2025
dd8ebb0
mono-complete
mattleibow Oct 15, 2025
4ef166d
mono-vbnc
mattleibow Oct 15, 2025
cdd38a9
6.0.428
mattleibow Oct 15, 2025
bd50fc6
this
mattleibow Oct 15, 2025
1139de2
sigh
mattleibow Oct 15, 2025
8612f43
Package better
mattleibow Oct 15, 2025
faa7f55
improve a bit
mattleibow Oct 15, 2025
1389a7f
this
mattleibow Oct 16, 2025
fcaa62c
more
mattleibow Oct 16, 2025
711fabf
old is working
mattleibow Oct 16, 2025
5ed04ef
this
mattleibow Oct 16, 2025
18d84a1
all the things
mattleibow Oct 16, 2025
bae7cfb
Try this
mattleibow Oct 16, 2025
24f4c0a
sadf
mattleibow Oct 16, 2025
6f45c23
time for windows to shine
mattleibow Oct 16, 2025
3a8d571
Tests now work on windows
mattleibow Oct 17, 2025
c42ed0f
Upload logs
mattleibow Oct 17, 2025
93248d2
comment
mattleibow Oct 17, 2025
5908867
this
mattleibow Oct 17, 2025
dd96fb6
this
mattleibow Oct 17, 2025
fc619b3
this
mattleibow Oct 17, 2025
cb47b86
this
mattleibow Oct 17, 2025
cd24ab5
ubuntu-latest
mattleibow Oct 17, 2025
63b99c8
skip linux
mattleibow Oct 17, 2025
fc942e8
notmdoc
mattleibow Oct 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
56 changes: 56 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Build

on:
push:
branches: [ main, master, dev/** ]
pull_request:
branches: [ main, master ]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' }}

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
configuration: [Release, Debug]

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Replace PackageId and PackageVersion in mdoc.csproj
shell: pwsh
run: |
$csprojPath = "mdoc/mdoc.csproj"
$content = Get-Content $csprojPath -Raw
$content = $content -replace '<PackageId>mdoc</PackageId>', '<PackageId>notmdoc</PackageId>'
$content = $content -replace '<PackageVersion>5\.9\.4</PackageVersion>', '<PackageVersion>0.0.1</PackageVersion>'
Set-Content $csprojPath $content -NoNewline

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

- name: Restore dependencies
run: dotnet restore apidoctools.sln

- name: Build
run: dotnet build apidoctools.sln -c ${{ matrix.configuration }} --no-restore

- name: Pack NuGet packages
run: dotnet pack mdoc/mdoc.csproj -o bin/Nuget -c ${{ matrix.configuration }} --no-build

- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: build-artifacts-${{ matrix.os }}-${{ matrix.configuration }}
path: |
bin/Nuget/
retention-days: 7
84 changes: 84 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: Tests

on:
push:
branches: [ main, master, dev/** ]
pull_request:
branches: [ main, master ]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' }}

jobs:
test:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest] # ubuntu-latest is having issues for now
configuration: [Release] # mono F# generates different APIs in Debug vs Release

steps:
- name: Checkout code
uses: actions/checkout@v4

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

- name: Install Mono (required for mdoc tests) - Ubuntu
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt install ca-certificates gnupg
sudo gpg --homedir /tmp --no-default-keyring --keyring gnupg-ring:/usr/share/keyrings/mono-official-archive-keyring.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
sudo chmod +r /usr/share/keyrings/mono-official-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/mono-official-archive-keyring.gpg] https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update
sudo apt install mono-complete mono-vbnc

- name: Install Mono (required for mdoc tests) - macOS
if: matrix.os == 'macos-latest'
run: |
brew install --cask mono-mdk

- name: Restore dependencies
run: dotnet restore apidoctools.sln

- name: Build
run: dotnet build apidoctools.sln -c ${{ matrix.configuration }} --no-restore

- name: Run .NET tests
run: dotnet test apidoctools.sln -c ${{ matrix.configuration }} --no-build --verbosity normal --logger trx --collect "XPlat Code Coverage"

- name: Run mdoc tests
if: matrix.os != 'windows-latest'
run: make check-mdoc CONFIGURATION=${{ matrix.configuration }}

- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results-${{ matrix.os }}-${{ matrix.configuration }}
path: |
**/TestResults/**
retention-days: 30

- name: Upload code coverage
uses: actions/upload-artifact@v4
if: always()
with:
name: code-coverage-${{ matrix.os }}-${{ matrix.configuration }}
path: |
**/TestResults/**/coverage.*
retention-days: 30

- name: Report test results
uses: dorny/test-reporter@v2
if: always()
with:
name: Test Report (${{ matrix.os }})
path: '**/*.trx'
reporter: dotnet-trx
16 changes: 0 additions & 16 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
.vscode
/Test/en.*/
/Test/html.*/
/Test/DocTest.*
/.v2.txt
/.v0.txt
packages
NUnit.*
TestResult.xml
Expand All @@ -17,14 +12,3 @@ obj
*.pdb
*.psess
*.vspx
mdoc/Test/actual_statistics.txt
mdoc/Test/test-overwrite-attribute/SomeClass.xml
mdoc/Test/test-overwrite-attribute/SomeClass.dll
mdoc/Test/test-generic-ignored-namespace/ReadOnlySpan.dll
mdoc/Test/test-nuget-information/input_data/
/Debug/UwpTestWinRtComponentCpp
Debug
/mdoc/mdoc.Test/UwpTestWinRtComponentCpp/x64/Release
/mdoc.Test.Cplusplus/x64/Release
/x64/Release/UwpTestWinRtComponentCpp
/mdoc/Properties/launchSettings.json
7 changes: 5 additions & 2 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
<NuGetVersionFSharpCore>4.3.4</NuGetVersionFSharpCore>
<NuGetVersionMonoCecil>0.10.0</NuGetVersionMonoCecil>
<NuGetVersionNUnit>3.10.1</NuGetVersionNUnit>
<NuGetVersionNUnit3TestAdapter>3.17.0</NuGetVersionNUnit3TestAdapter>
<NuGetVersionMicrosoftNETTestSdk>16.11.0</NuGetVersionMicrosoftNETTestSdk>
<NuGetVersionNUnitAnalyzers>3.10.0</NuGetVersionNUnitAnalyzers>
<NuGetVersionNUnit3TestAdapter>5.0.0</NuGetVersionNUnit3TestAdapter>
<NuGetVersionMicrosoftNETTestSdk>17.1.0</NuGetVersionMicrosoftNETTestSdk>
<NuGetVersionQuickIONET>2.6.2.0</NuGetVersionQuickIONET>
<NuGetVersionSharpZipLib>1.3.3</NuGetVersionSharpZipLib>
<NuGetVersionSystemConfigurationConfigurationManager>6.0.0</NuGetVersionSystemConfigurationConfigurationManager>
<NuGetVersionLuceneDotNet>3.0.3</NuGetVersionLuceneDotNet>
<NuGetVersionNewtonsoftJson>13.0.1</NuGetVersionNewtonsoftJson>
<NuGetVersionSystemMemory>4.6.3</NuGetVersionSystemMemory>
<NuGetVersionCoverletCollector>3.1.2</NuGetVersionCoverletCollector>
</PropertyGroup>
</Project>
34 changes: 11 additions & 23 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,36 +1,24 @@
CONFIGURATION = Release
BIN = bin/$(CONFIGURATION)
MDOC = $(BIN)/mdoc.exe
ENVIRONMENT = notwsl#use 'wsl' when running on wsl

all: build

build: $(MDOC)
clean:
dotnet clean apidoctools.sln -c $(CONFIGURATION)

$(MDOC):
dotnet build -v:n apidoctools.sln /p:Configuration=$(CONFIGURATION)
build:
dotnet build apidoctools.sln -c $(CONFIGURATION)

prepare:
git submodule update --init --recursive
dotnet restore apidoctools.sln
nuget install NUnit.Console -version 3.6.0 -NoCache -o packages
nuget:
dotnet pack mdoc/mdoc.csproj -o bin/Nuget

clean:
dotnet build -v:n apidoctools.sln /t:clean /p:Configuration=$(CONFIGURATION)
rm -rf bin/$(CONFIGURATION)
check: build test check-monodoc check-mdoc

check: build check-monodoc check-mdoc
test:
dotnet test apidoctools.sln -c $(CONFIGURATION)

check-mdoc:
cd mdoc; $(MAKE) check -B

nuget:
nuget pack mdoc/mdoc.nuspec -outputdirectory bin/Nuget
cd tests/mdoc; $(MAKE) check -B

check-monodoc:
cd monodoc; $(MAKE) check -B

zip:
rm -f $(BIN)/mdoc*.zip
zip -j $(BIN)/mdoc.zip $(BIN)/*

dotnet test -c $(CONFIGURATION)
4 changes: 2 additions & 2 deletions Mdoc-ReleaseCheckCI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
displayName: Compare xml files
timeoutInMinutes: 600
inputs:
filePath: mdoc/compareXmlFiles.ps1
filePath: tools/compareXmlFiles.ps1
arguments: -paramsJson '$(params)' -githubTokenBase64 '$(githubTokenBase64)' -githubOptionsAccountName $(githubOptionsAccountName) -githubOptionsAccountEmail $(githubOptionsAccountEmail) -vstsTokenBase64 '$(vstsTokenBase64)' -step '1' -commit1 ''
enabled: true
name: job1output
Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
displayName: Compare xml files
timeoutInMinutes: 600
inputs:
filePath: mdoc/compareXmlFiles.ps1
filePath: tools/compareXmlFiles.ps1
arguments: -paramsJson '$(params)' -githubTokenBase64 '$(githubTokenBase64)' -githubOptionsAccountName $(githubOptionsAccountName) -githubOptionsAccountEmail $(githubOptionsAccountEmail) -vstsTokenBase64 '$(vstsTokenBase64)' -step '2' -commit1 '$(commit1)'
enabled: true
name: job2output
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@ make prepare all check
Please review [mono's installation guide](http://www.mono-project.com/download/#download-lin) if you are using a different flavor of linux.

## How to debug
[How to debug mdoc](./Documentation/how-to-debug/how-to-debug-mdoc.md)
[How to debug mdoc](./docs/how-to-debug/how-to-debug-mdoc.md)
Loading