Skip to content

"/var/task directory is missing the required .deps.json file" error started happening on previously deployed SAM stack #1605

Answered by normj
snowberry-clearwing asked this question in Q&A
Discussion options

You must be logged in to vote

Can you make sure in your project file it has the following property in a PropertyGroup
true

The dotnet lambda package command will always set the /:GenerateRuntimeConfigurationFiles=true command line property when doing the package.
By default the *.deps.json file is not created by the dotnet publish command for class libraries and this property force it to be created.
Answer:

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@Soundman32
Comment options

@normj
Comment options

@SurajNarang
Comment options

@normj
Comment options

@nalinjax
Comment options

Answer selected by github-actions
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
response-requested Waiting on additional info and feedback. Will move to close soon in 7 days. module/lambda-client-lib
6 participants