diff --git a/Directory.Build.props b/Directory.Build.props new file mode 100644 index 0000000..63d074d --- /dev/null +++ b/Directory.Build.props @@ -0,0 +1,22 @@ + + + 1.0.1 + Aptivi + Aptivi + Copyright (c) 2021-2024 Aptivi + latest + portable + True + $(MSBuildThisFileDirectory) + $(RootPath)\aptivi_snk.snk + + + + true + true + + + + + + diff --git a/NativeLand/NativeLand.csproj b/NativeLand/NativeLand.csproj index db19bf7..c750b7e 100644 --- a/NativeLand/NativeLand.csproj +++ b/NativeLand/NativeLand.csproj @@ -7,10 +7,7 @@ snupkg true True - 1.0.1 - Aptivi NativeLand is a C# library that helps you load native libraries. - Copyright © 2024 Aptivi GPL-3.0-or-later https://github.com/Aptivi/NativeLand README.md @@ -20,10 +17,7 @@ hardware, information true false - latest true - True - ..\aptivi_snk.snk @@ -33,16 +27,6 @@ - - true - true - - - - - - - True diff --git a/TestProcess/TestProcess.csproj b/TestProcess/TestProcess.csproj index 14c09ff..a58af02 100644 --- a/TestProcess/TestProcess.csproj +++ b/TestProcess/TestProcess.csproj @@ -3,13 +3,13 @@ Exe net8.0 - True - ..\aptivi_snk.snk + + diff --git a/tools/docgen-pack.cmd b/tools/docgen-pack.cmd index eafff60..28e3a14 100644 --- a/tools/docgen-pack.cmd +++ b/tools/docgen-pack.cmd @@ -1,7 +1,8 @@ @echo off REM This script builds KS documentation and packs the artifacts. Use when you have VS installed. -for /f "tokens=* USEBACKQ" %%f in (`type version`) do set ksversion=%%f +for /f "tokens=*" %%g in ('findstr "" ..\Directory.Build.props') do (set MIDVER=%%g) +for /f "tokens=1 delims=<" %%a in ("%MIDVER:~9%") do (set ksversion=%%a) :pack echo Packing documentation... diff --git a/tools/docgen-pack.sh b/tools/docgen-pack.sh index 7ac1782..3eea554 100644 --- a/tools/docgen-pack.sh +++ b/tools/docgen-pack.sh @@ -1,7 +1,7 @@ #!/bin/bash # This script builds KS and packs the artifacts. Use when you have MSBuild installed. -ksversion=$(cat version) +ksversion=$(grep "" ../Directory.Build.props | cut -d "<" -f 2 | cut -d ">" -f 2) # Check for dependencies zippath=`which zip` diff --git a/tools/version b/tools/version deleted file mode 100644 index 7dea76e..0000000 --- a/tools/version +++ /dev/null @@ -1 +0,0 @@ -1.0.1