dotnet lambda package - AOT - Container- How to pass Nuget.config file as parameter #263
-
My lambda project references nuget packages that are there in our company's private nuget repository. I created Nuget.config with my repository as additional source. I used following dotnet commands in CI/CD pipeline to genarate lambda package
this setup is working fine. But when i enable AOT, as specified in the documentation, AL2 container launched to create lambda package. My question is how to pass Nuget.config file location to "dotnet lambda package" command so that it will internally pass to AL2 container during restore/publish? Environment details
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@rajeshaz09 Good morning. While there is no dedicated argument for specifying NuGet source, the AWS Extensions for .NET CLI supports --publish-options that could be used to pass additional parameters to Thanks, |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
@rajeshaz09 Good morning. While there is no dedicated argument for specifying NuGet source, the AWS Extensions for .NET CLI supports --publish-options that could be used to pass additional parameters to
dotnet publish
command. The dotnet publish command supports--source
parameter which specifies theURI of the NuGet package source to use during the restore operation
. You try passing value for--publish-options
as"--source <<URI>>"
to use your NuGet source.Thanks,
Ashish