NmeaParser/docs/BuildDoc.cmd
Morten Nielsen db04b280e4
.Net6 (#112)
* Added .NET 6 support

* fix constants

* Upgrade Android sample app to .net6.0

* Fix build warnings and update android sample

* Change baseline version

* Fix build

* Delete unused code

* Update CIBuild.yml

* Update CIBuild.yml

* Update CIBuild.yml

* Update CIBuild.yml

* Update CIBuild.yml

* Update CIBuild.yml

* Update CIBuild.yml

* Update CIBuild.yml

* Update expired certificate

* Set min versions

* Fix api build

* Fix build warnings and update doc builds

* update metadata

* tweak readme

* Use net8 for ios/android

* Fix target frameworks for sample apps

* Fix UWP build

* update tfm

* Update to v3.0 and remove out of support frameworks

* Add BT device to net6-windows

* Add MAUI sample and delete Android

* Clean up

* Update github action dependency to supported version

* Update certificate

* Update certificate

* Fix RMC FixTime parsing that can lose sub-second precision with doubles (#117)

* Extract local variables for the parameters of DateTimeOffset

* Add seconds to FixTime as Ticks in order to preserve sub-second precision that can get lost by using doubles

---------

Co-authored-by: Justin King <justin.king@vibrationresearch.com>

* Cleanup of fix and add unit test to verify

---------

Co-authored-by: Morten Nielsen <mort5161@esri.com>
Co-authored-by: Justin King <56605940+justinswork@users.noreply.github.com>
Co-authored-by: Justin King <justin.king@vibrationresearch.com>
2024-11-19 20:31:53 -08:00

36 lines
1.8 KiB
Batchfile

@ECHO OFF
SET DocFXVersion=2.77.0
SET DocFxFolder=%~dp0..\.tools\docfx
REM Download DocFx
IF NOT EXIST "%DocFxFolder%\v%DocFXVersion%\docfx.exe" (
MKDIR "%DocFXFolder%\v%DocFXVersion%"
powershell -ExecutionPolicy ByPass -command "Invoke-WebRequest -Uri "https://github.com/dotnet/docfx/releases/download/v%DocFXVersion%/docfx-win-x64-v%DocFXVersion%.zip" -OutFile '%DocFxFolder%\docfx_v%DocFXVersion%.zip'"
powershell -ExecutionPolicy ByPass -command "Expand-Archive -LiteralPath '%DocFxFolder%\docfx_v%DocFXVersion%.zip' -DestinationPath '%DocFxFolder%\v%DocFXVersion%'"
DEL "%DocFxFolder%\docfx_v%DocFXVersion%.zip" /Q
)
IF NOT EXIST "..\.tools\nuget.exe" (
powershell -ExecutionPolicy ByPass -command "Invoke-WebRequest -Uri "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe" -OutFile '%~dp0..\.tools\nuget.exe'"
)
REM Generate OMD
dotnet tool install --tool-path %~dp0../.tools/omd dotMorten.OmdGenerator --version 1.4.0
mkdir %~dp0../artifacts/docs/api
%~dp0..\.tools\omd\generateomd /source=%~dp0../src/NmeaParser /output=%~dp0../artifacts/docs/api/omd.html /preprocessors=NETSTANDARD1_4;NETSTANDARD
REM Build the output site (HTML) from the generated metadata and input files (uses configuration in docfx.json in this folder)
%DocFxFolder%\v%DocFXVersion%\docfx.exe metadata %~dp0\docfx.json
REM Build applies-to version/framework info
dotnet build AppliesToGenerator\DocFXAppliesToGenerator.csproj
AppliesToGenerator\bin\Debug\net6.0\DocFXAppliesToGenerator.exe appliesToList.json
%DocFxFolder%\v%DocFXVersion%\docfx.exe build %~dp0\docfx.json
ECHO Fixing API Reference Links
powershell -ExecutionPolicy ByPass -command "%~dp0FixApiRefLinks.ps1" -Path %~dp0..\artifacts\docs_site\api\
start http://localhost:8080
%DocFxFolder%\v%DocFXVersion%\docfx.exe serve %~dp0..\artifacts\docs_site\