dotnet lambda deploy-function AspNetCoreWebAPI does not infer runtime from project file #1199
-
| Describe the bugCreate a new serverless Lambda function - 
 Change to the  Attempt to deploy the function - Runtime should not be requested. Expected BehaviorI expect the tooling to infer the runtime from the csproj file, or that the runtime in included in the  Current BehaviorUser is asked to enter the runtime. Reproduction StepsSee description. Possible SolutionNo response Additional Information/ContextNo response AWS .NET SDK and/or Package version usedAmazon Lambda Tools for .NET Core applications (5.4.2) Targeted .NET Platform.NET 6 Operating System and versionWindows 10 | 
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
| @bjhogan Thanks for reporting the issue. I'm curious that you are using  | 
Beta Was this translation helpful? Give feedback.
-
| Hi @ashishdhingra, you are right! Been working on too many  Maybe the ticket should be - "Don't allow  | 
Beta Was this translation helpful? Give feedback.
@bjhogan Thanks for reporting the issue. I'm curious that you are using
serverless.AspNetCoreWebAPItemplate, but using thedotnet lambda deploy-functioncommand. Shouldn't you be usingdotnet lambda deploy-serverlesscommand? Please check.