From 722c57bf1fb2d89f998a6b5e69e1a710a28b1e43 Mon Sep 17 00:00:00 2001 From: jay verma Date: Wed, 21 Feb 2024 14:30:32 +1100 Subject: [PATCH 1/2] update runtime to netcore 3.1 --- Base2.Lambdas.csproj | 2 +- README.md | 2 +- scripts/build_docker.sh | 4 ++-- scripts/build_native.sh | 4 ++-- serverless.yml | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Base2.Lambdas.csproj b/Base2.Lambdas.csproj index 321b68a..f92120e 100644 --- a/Base2.Lambdas.csproj +++ b/Base2.Lambdas.csproj @@ -2,7 +2,7 @@ Nikola Tosic - netcoreapp2.1 + netcoreapp3.1 1.1.0 Base2.Lambdas Exe diff --git a/README.md b/README.md index 8657fbc..2c2b6fc 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ $ scripts/build_docker.sh Microsoft (R) Build Engine version 15.1.1012.6693 Copyright (C) Microsoft Corporation. All rights reserved. - Base2.Lambdas -> /project/bin/Debug/netcoreapp2.1/Base2.Lambdas.dll + Base2.Lambdas -> /project/bin/Debug/netcoreapp3.1/Base2.Lambdas.dll adding: AWSSDK.AutoScaling.dll (deflated 70%) adding: AWSSDK.Core.dll (deflated 66%) adding: AWSSDK.EC2.dll (deflated 70%) diff --git a/scripts/build_docker.sh b/scripts/build_docker.sh index a925714..6661d83 100755 --- a/scripts/build_docker.sh +++ b/scripts/build_docker.sh @@ -6,6 +6,6 @@ cd $DIR/.. rm -rf bin docker run --rm -v $HOME/.nuget:/root/.nuget -v $DIR/..:/project -w /project microsoft/dotnet dotnet restore docker run --rm -v $HOME/.nuget:/root/.nuget -v $DIR/..:/project -w /project microsoft/dotnet dotnet publish -cd bin/Debug/netcoreapp2.1/publish && zip -r Base2.Lambdas.zip * +cd bin/Debug/netcoreapp3.1/publish && zip -r Base2.Lambdas.zip * cd $WD -mv bin/Debug/netcoreapp2.1/publish/Base2.Lambdas.zip . +mv bin/Debug/netcoreapp3.1/publish/Base2.Lambdas.zip . diff --git a/scripts/build_native.sh b/scripts/build_native.sh index d5f84ee..7e47d17 100755 --- a/scripts/build_native.sh +++ b/scripts/build_native.sh @@ -6,6 +6,6 @@ cd $DIR/.. rm -rf bin dotnet restore dotnet publish -cd bin/Debug/netcoreapp2.1/publish && zip -r Base2.Lambdas.zip * +cd bin/Debug/netcoreapp3.1/publish && zip -r Base2.Lambdas.zip * cd $WD -mv bin/Debug/netcoreapp2.1/publish/Base2.Lambdas.zip . +mv bin/Debug/netcoreapp3.1/publish/Base2.Lambdas.zip . diff --git a/serverless.yml b/serverless.yml index 1e955a2..98653a4 100644 --- a/serverless.yml +++ b/serverless.yml @@ -2,7 +2,7 @@ service: manualawscleanup # NOTE: update this with your service name provider: name: aws - runtime: dotnetcore2.1 + runtime: dotnetcore3.1 region: ${env:REGION} deploymentBucket: ${env:SOURCE_BUCKET} iamRoleStatements: From dfabf1920ff28ee1f749b962b5a5956acb772709 Mon Sep 17 00:00:00 2001 From: jay verma Date: Wed, 21 Feb 2024 15:10:18 +1100 Subject: [PATCH 2/2] updated runtime to .net 6 --- Base2.Lambdas.csproj | 6 +++++- scripts/build_docker.sh | 4 ++-- scripts/build_native.sh | 4 ++-- serverless.yml | 2 +- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/Base2.Lambdas.csproj b/Base2.Lambdas.csproj index f92120e..9549b42 100644 --- a/Base2.Lambdas.csproj +++ b/Base2.Lambdas.csproj @@ -2,7 +2,7 @@ Nikola Tosic - netcoreapp3.1 + net6.0 1.1.0 Base2.Lambdas Exe @@ -15,5 +15,9 @@ + + + + \ No newline at end of file diff --git a/scripts/build_docker.sh b/scripts/build_docker.sh index 6661d83..aba8c6d 100755 --- a/scripts/build_docker.sh +++ b/scripts/build_docker.sh @@ -6,6 +6,6 @@ cd $DIR/.. rm -rf bin docker run --rm -v $HOME/.nuget:/root/.nuget -v $DIR/..:/project -w /project microsoft/dotnet dotnet restore docker run --rm -v $HOME/.nuget:/root/.nuget -v $DIR/..:/project -w /project microsoft/dotnet dotnet publish -cd bin/Debug/netcoreapp3.1/publish && zip -r Base2.Lambdas.zip * +cd bin/Debug/netcoreapp6.0/publish && zip -r Base2.Lambdas.zip * cd $WD -mv bin/Debug/netcoreapp3.1/publish/Base2.Lambdas.zip . +mv bin/Debug/netcoreapp6.0/publish/Base2.Lambdas.zip . diff --git a/scripts/build_native.sh b/scripts/build_native.sh index 7e47d17..3f6b65b 100755 --- a/scripts/build_native.sh +++ b/scripts/build_native.sh @@ -6,6 +6,6 @@ cd $DIR/.. rm -rf bin dotnet restore dotnet publish -cd bin/Debug/netcoreapp3.1/publish && zip -r Base2.Lambdas.zip * +cd bin/Debug/netcoreapp6.0/publish && zip -r Base2.Lambdas.zip * cd $WD -mv bin/Debug/netcoreapp3.1/publish/Base2.Lambdas.zip . +mv bin/Debug/netcoreapp6.0/publish/Base2.Lambdas.zip . diff --git a/serverless.yml b/serverless.yml index 98653a4..a173c63 100644 --- a/serverless.yml +++ b/serverless.yml @@ -2,7 +2,7 @@ service: manualawscleanup # NOTE: update this with your service name provider: name: aws - runtime: dotnetcore3.1 + runtime: dotnet6 region: ${env:REGION} deploymentBucket: ${env:SOURCE_BUCKET} iamRoleStatements: