Skip to content

Commit

Permalink
Specify framework on lcm build so building with dotnet 8 works
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonleenaylor committed Apr 4, 2024
1 parent f4470b0 commit c54bd64
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Build/buildLocalLibraries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c54bd64

Please sign in to comment.