diff --git a/Directory.Build.props b/Directory.Build.props new file mode 100644 index 0000000..a416379 --- /dev/null +++ b/Directory.Build.props @@ -0,0 +1,22 @@ + + + 1.0.0.1 + Aptivi + Aptivi + Copyright (c) 2024 Aptivi + latest + portable + True + $(MSBuildThisFileDirectory) + $(RootPath)\aptivi_snk.snk + + + + true + true + + + + + + diff --git a/FileMagic.Console/FileMagic.Console.csproj b/FileMagic.Console/FileMagic.Console.csproj index af68a66..f699050 100644 --- a/FileMagic.Console/FileMagic.Console.csproj +++ b/FileMagic.Console/FileMagic.Console.csproj @@ -3,7 +3,6 @@ Exe net8.0;net48 - latest @@ -14,4 +13,8 @@ + + + + diff --git a/FileMagic.Native/FileMagic.Native.csproj b/FileMagic.Native/FileMagic.Native.csproj index db929f3..1d20307 100644 --- a/FileMagic.Native/FileMagic.Native.csproj +++ b/FileMagic.Native/FileMagic.Native.csproj @@ -4,9 +4,7 @@ net8.0;net48 true true - disable FileMagic.Native - Aptivi FileMagic.Native libmagic native library wrapper for C# FileMagic;native;runtime;csharp;library @@ -18,10 +16,6 @@ README.md https://github.com/Aptivi/FileMagic.git git - 1.0.0.1 - True - ..\aptivi_snk.snk - latest @@ -45,13 +39,7 @@ - - true - true - - - diff --git a/FileMagic.Tests/FileMagic.Tests.csproj b/FileMagic.Tests/FileMagic.Tests.csproj index fa87bb0..d9c63b1 100644 --- a/FileMagic.Tests/FileMagic.Tests.csproj +++ b/FileMagic.Tests/FileMagic.Tests.csproj @@ -3,8 +3,6 @@ net8.0;net48 latest - True - ..\aptivi_snk.snk @@ -15,4 +13,8 @@ + + + + diff --git a/FileMagic/FileMagic.csproj b/FileMagic/FileMagic.csproj index 36a76b5..274b60d 100644 --- a/FileMagic/FileMagic.csproj +++ b/FileMagic/FileMagic.csproj @@ -8,10 +8,7 @@ FileMagicManaged true True - 1.0.0.1 - Aptivi FileMagic is a file type guesser library wrapper for libmagic from the file utility found in Unix and Linux. - Copyright © 2024 Aptivi GPL-3.0-or-later https://github.com/Aptivi/FileMagic README.md @@ -21,10 +18,7 @@ hardware, information true false - latest true - True - ..\aptivi_snk.snk @@ -43,15 +37,6 @@ - - true - true - - - - - - 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 53afb9e..0000000 --- a/tools/version +++ /dev/null @@ -1 +0,0 @@ -1.0.0.1