From 35eeeddc083ea3d0cafdaa06c932db369a04c314 Mon Sep 17 00:00:00 2001 From: Robert Adams Date: Tue, 3 Dec 2024 23:40:50 +0000 Subject: [PATCH] Add VERSION and a script to insert the version into the .csproj files. --- Janus/WebRtcJanusService.csproj | 3 +++ VERSION | 1 + WebRtcVoice/WebRtcVoice.csproj | 3 +++ .../WebRtcVoiceRegionModule.csproj | 3 +++ .../WebRtcVoiceServiceModule.csproj | 3 +++ updateVersion.sh | 14 ++++++++++++++ 6 files changed, 27 insertions(+) create mode 100644 VERSION create mode 100755 updateVersion.sh diff --git a/Janus/WebRtcJanusService.csproj b/Janus/WebRtcJanusService.csproj index a15afd6..4f4b3dc 100644 --- a/Janus/WebRtcJanusService.csproj +++ b/Janus/WebRtcJanusService.csproj @@ -2,6 +2,7 @@ net8.0 +1.0.4 false Library false @@ -27,6 +28,7 @@ false True False +1.0.4 False ../../../bin/ False @@ -50,6 +52,7 @@ false True False +1.0.4 False ../../../bin/ False diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..ee90284 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +1.0.4 diff --git a/WebRtcVoice/WebRtcVoice.csproj b/WebRtcVoice/WebRtcVoice.csproj index f7be691..fb8456b 100644 --- a/WebRtcVoice/WebRtcVoice.csproj +++ b/WebRtcVoice/WebRtcVoice.csproj @@ -2,6 +2,7 @@ net8.0 +1.0.4 false Library false @@ -27,6 +28,7 @@ false True False +1.0.4 False ../../../bin/ False @@ -50,6 +52,7 @@ false True False +1.0.4 False ../../../bin/ False diff --git a/WebRtcVoiceRegionModule/WebRtcVoiceRegionModule.csproj b/WebRtcVoiceRegionModule/WebRtcVoiceRegionModule.csproj index 3294039..8d966ba 100644 --- a/WebRtcVoiceRegionModule/WebRtcVoiceRegionModule.csproj +++ b/WebRtcVoiceRegionModule/WebRtcVoiceRegionModule.csproj @@ -2,6 +2,7 @@ net8.0 +1.0.4 false Library false @@ -27,6 +28,7 @@ false True False +1.0.4 False ../../../bin/ False @@ -50,6 +52,7 @@ false True False +1.0.4 False ../../../bin/ False diff --git a/WebRtcVoiceServiceModule/WebRtcVoiceServiceModule.csproj b/WebRtcVoiceServiceModule/WebRtcVoiceServiceModule.csproj index 3c6e6e2..bb9f928 100644 --- a/WebRtcVoiceServiceModule/WebRtcVoiceServiceModule.csproj +++ b/WebRtcVoiceServiceModule/WebRtcVoiceServiceModule.csproj @@ -2,6 +2,7 @@ net8.0 +1.0.4 false Library false @@ -27,6 +28,7 @@ false True False +1.0.4 False ../../../bin/ False @@ -50,6 +52,7 @@ false True False +1.0.4 False ../../../bin/ False diff --git a/updateVersion.sh b/updateVersion.sh new file mode 100755 index 0000000..6459a05 --- /dev/null +++ b/updateVersion.sh @@ -0,0 +1,14 @@ +#! /bin/bash +# Script to add the number from the VERSION file to the .csproj of the sub-projects +# Run this just after running runprebuild.sh to add versions to the .csproj files. + +BASE=$(pwd) + +VERSION=$(cat VERSION) + +for proj in Janus WebRtcVoice WebRtcVoiceRegionModule WebRtcVoiceServiceModule ; do + cd "$BASE" + cd "$proj" + sed -i "/TargetFramework/a $VERSION" *.csproj + #dotnet msbuild -t:UpdateVersion -p:Version=$VERSION +done