Skip to content

feat: add init templates for dotnet10 - #537

Merged
bnusunny merged 6 commits into
aws:masterfrom
bnusunny:feat-dotnet10
Dec 16, 2025
Merged

bnusunny merged 6 commits into
aws:masterfrom
bnusunny:feat-dotnet10

Conversation

@bnusunny

Copy link
Copy Markdown
Contributor

Issue #, if available:

Description of changes:

add init templates for dotnet10 runtime

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@bnusunny
bnusunny requested a review from a team as a code owner December 15, 2025 03:01
Comment on lines +4 to +5
sam build does not support to build dotnetcore 3.1 templates using container,
here we put them in a separate file and use a dedicate codebuild project with .net 3.1 runtime to build them.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this comment relevant still? It looks outdated

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, removed.

file: 'tests/integration/unit_test/test_unit_test_dotnet10.py'
# - version: '10'
# type: 'Invoke'
# file: 'tests/integration/build_invoke/dotnet/test_build_invoke_dotnet10.py'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we not fully adding this? Do these test not work?

@bnusunny bnusunny Dec 16, 2025 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Invoke test depends on sam cli. Without merging dotnet10 support into aws-sam-cli develop branch, this test will fail. We will enable it after sam cli adds dotnet10 support.

- version: '3.14'
type: 'Invoke'
file: 'tests/integration/build_invoke/python/test_python_3_14.py'
# - version: '3.14'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# - version: '3.14'
# - version: '3.14' - TODO: Re-enable the test once SAM-T support python 3.14

- version: '10'
type: 'Test'
file: 'tests/integration/unit_test/test_unit_test_dotnet10.py'
# - version: '10'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# - version: '10'
# - version: '10' TODO: To re-enable when SAM CLI support dotNet 10

{

/// <summary>
/// A simple function that takes a string and does a ToUpper

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description is not what the fuction is doing.

@@ -0,0 +1,2 @@
[install]
prefix= No newline at end of file

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this suppose to be like this?

RUN if [ "$SAM_BUILD_MODE" = "debug" ]; then dotnet lambda package --configuration Debug; else dotnet lambda package --configuration Release; fi
RUN if [ "$SAM_BUILD_MODE" = "debug" ]; then cp -r /build/bin/Debug/net10.0/publish/* /build/build_artifacts; else cp -r /build/bin/Release/net10.0/publish/* /build/build_artifacts; fi

FROM public.ecr.aws/lambda/dotnet:8

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why 8?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@@ -0,0 +1,23 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-image

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why 8?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

vicheey
vicheey previously approved these changes Dec 16, 2025
@valerena

Copy link
Copy Markdown
Contributor

It looks like we need to update Maven to 3.9.12 :/ (or find a different URL for Maven 3.9.11, but it's not under https://dlcdn.apache.org/maven/maven-3/ )

valerena
valerena previously approved these changes Dec 16, 2025
@bnusunny
bnusunny dismissed stale reviews from valerena and vicheey via 922c785 December 16, 2025 22:45
@bnusunny

Copy link
Copy Markdown
Contributor Author

It looks like we need to update Maven to 3.9.12 :/ (or find a different URL for Maven 3.9.11, but it's not under https://dlcdn.apache.org/maven/maven-3/ )

Fixed

@bnusunny
bnusunny requested review from valerena and vicheey December 16, 2025 22:49
@bnusunny
bnusunny enabled auto-merge December 16, 2025 23:37
@bnusunny
bnusunny added this pull request to the merge queue Dec 16, 2025
Merged via the queue into aws:master with commit 18f530f Dec 16, 2025
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants