Skip to content

Lambda template Folder Structure. #1412

Open
@michaelakin

Description

@michaelakin

Describe the bug

When adding a new Lambda with VS 2022, the structure is too deep.

When I add a new Console App to my solution, the folder structure looks something like this:
C:\Dev\SolutionName\ConsoleApp1

But when I add a new lambda to my Solution the folder structure looks like this, which is too deep and repeats the names of things.
C:\Dev\SolutionName\NewLambdaName\src\NewLambdaName

Expected Behavior

I expect the folder name to look like:

C:\Dev\SolutionName\NewLambdaName\

And for the test project that gets generated to
C:\Dev\SolutionName\NewLambdaName.Tests\

Current Behavior

When I add a new lambda to my Solution the folder structure looks like this, which is too deep and repeats the names of things.
C:\Dev\SolutionName\NewLambdaName\src\NewLambdaName

Reproduction Steps

Right click on the Solution, Add New Project, select the Lambda Annotations Framework Preview (This also happens with other templates), Add the project to the solution.

Possible Solution

Structure the new files more like the .net templates that don't add all the extra folder depth.

Additional Information/Context

No response

AWS .NET SDK and/or Package version used

Amazon.Lambda.Templates (version 6.8.0)

AWS Toolkit 1.38.0.0

Targeted .NET Platform

.net 6, .net 7

Operating System and version

Windows 10

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions