From c54bd64c3515ba818c27c1e2f82c7f771690bce0 Mon Sep 17 00:00:00 2001 From: Jason Naylor Date: Wed, 3 Apr 2024 10:27:49 -0700 Subject: [PATCH] Specify framework on lcm build so building with dotnet 8 works --- Build/buildLocalLibraries.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Build/buildLocalLibraries.sh b/Build/buildLocalLibraries.sh index be836b7384..ee778df999 100755 --- a/Build/buildLocalLibraries.sh +++ b/Build/buildLocalLibraries.sh @@ -43,7 +43,7 @@ function delete_and_pack_liblcm { (cd "$liblcm_dir/artifacts" && rm *nupkg) echo "Running 'dotnet pack' in the liblcm directory: $liblcm_dir" - pack_output=$(cd "$liblcm_dir" && dotnet pack -c Debug) + pack_output=$(cd "$liblcm_dir" && dotnet pack -c Debug -p:TargetFrameworks=net461) # Extract version number using regex if [[ $pack_output =~ $version_regex ]]; then @@ -87,7 +87,7 @@ function delete_and_pack_chorus { (cd "$chorus_dir/output" && rm *nupkg) echo "Running 'dotnet pack' in the chorus directory: $chorus_dir" - pack_output=$(cd "$chorus_dir" && dotnet pack -c Debug) + pack_output=$(cd "$chorus_dir" && dotnet pack -c Debug -p:TargetFrameworks=net461) # Extract version number using regex if [[ $pack_output =~ $version_regex ]]; then @@ -130,7 +130,7 @@ function delete_and_pack_libpalaso { (cd "$libpalaso_dir/output" && rm *nupkg) echo "Running 'dotnet pack' in the libpalaso directory: $libpalaso_dir" - pack_output=$(cd "$libpalaso_dir" && dotnet pack -c Debug) + pack_output=$(cd "$libpalaso_dir" && dotnet pack -c Debug -p:TargetFrameworks=net461) # Extract version number using regex if [[ $pack_output =~ $version_regex ]]; then