fix tools and output folders

This commit is contained in:
Morten Nielsen 2020-01-25 14:12:27 -08:00
parent 651e37462b
commit 282331856e
3 changed files with 7 additions and 8 deletions

1
.gitignore vendored
View file

@ -112,3 +112,4 @@ src/NmeaParser.sln.ide/
project.lock.json
src/.vs/
artifacts
.tools

View file

@ -1,20 +1,18 @@
@ECHO OFF
SET DocFXVersion=2.48.1
SET DocFxFolder=%~dp0\..\artifacts\toolset
SET DocFxFolder=%~dp0\..\.tools\docfx
REM Download DocFx
powershell -ExecutionPolicy ByPass -command "%~dp0/DownloadDocFX.ps1" -Version %DocFXVersion% -Folder %DocFxFolder%
REM Build metadata for all platforms (uses configuration in docfx.json in this folder)
%DocFxFolder%\v%DocFXVersion%\docfx.exe %~dp0..\docs\docfx.json metadata
REM Merge output (not implemented)
REM %DocFxFolder%\v%DocFXVersion%\docfx.exe merge
REM Generate OMD
dotnet tool install --global dotMorten.OmdGenerator
generateomd /source=%~dp0../src/NmeaParser /output=%~dp0../artifacts/docs/api/omd.html
dotnet tool install --tool-path .tools/omd dotMorten.OmdGenerator --version 1.2.0
mkdir %~dp0../artifacts/docs/api
.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 %~dp0..\docs\docfx.json build
%DocFxFolder%\v%DocFXVersion%\docfx.exe %~dp0..\docs\docfx.json

View file

@ -18,7 +18,7 @@
<RepositoryUrl>https://github.com/dotMorten/NmeaParser</RepositoryUrl>
<NeutralLanguage>en-US</NeutralLanguage>
<Copyright>Copyright © Morten Nielsen 2015-2020</Copyright>
<OutputPath>$(MSBuildThisFileDirectory)..\Bin\$(Configuration)</OutputPath>
<OutputPath>$(MSBuildThisFileDirectory)..\..\artifacts\NmeaParser\$(Configuration)</OutputPath>
<PackageOutputPath>$(OutDir)</PackageOutputPath>
<PackageReleaseNotes>New refined and easier to use v2 API</PackageReleaseNotes>
<PublishRepositoryUrl>true</PublishRepositoryUrl>