Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sam build and dotnet lambda package-ci produce different templates #1267

Closed
alexgurman opened this issue Jul 12, 2019 · 2 comments
Closed

sam build and dotnet lambda package-ci produce different templates #1267

alexgurman opened this issue Jul 12, 2019 · 2 comments

Comments

@alexgurman
Copy link

Description

sam build and dotnet lambda package-ci produce different templates

Steps to reproduce

  1. Create AWS Serverless App (C#) with Visual Studio 2019 AWS Toolkit.
  2. Make sure you can successfully publish it from Visual Studio using 'publish AWS lambda"
  3. Attempt to run it locally using sam local invoke.
  4. Attempt to run it locally using sam local start-lambda and aws lambda invoke.
  5. Run sam build and use the template generated to run sam local invoke or sam local start-lambda

Observed result

Both #3 and #4 fail with an error:
Could not find the specified handler assembly with the file name 'SmapiLrdService.MS.Serverless, Culture=neutral, PublicKeyToken=null'. The assembly should be located in the root of your uploaded .zip file.
#5 succeeds

Expected result

Since this "Hello World" lambda can be deployed successfully from Visual Studio AWS Toolkit serverless project, I would expect SAM CLI to work as well.

Additional environment details (Ex: Windows, Mac, Amazon Linux etc)

  1. OS: Windows
  2. sam --version: 0.17.0

The problem:
dotnet lambda package-ci output run by Visual Studio 2019 AWS Toolkit has the same binaries, but slightly different template format from one produced by sam build. It would be beneficial for the teams to get together and resolve the issue.

Add --debug flag to command you are running

@jfuss
Copy link
Contributor

jfuss commented Dec 8, 2022

3 and 4 should fail because no sam build (or build in general) was run.

Closing as working as expected

@jfuss jfuss closed this as not planned Won't fix, can't repro, duplicate, stale Dec 8, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Dec 8, 2022

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants