Closed robertmiles3 closed 1 year ago
@robertmiles3 This is a duplicate of https://github.com/aws/aws-extensions-for-dotnet-cli/issues/211 (which has associated PR https://github.com/aws/aws-extensions-for-dotnet-cli/pull/183). Please feel free to add an upvote on that issue. Closing this as duplicate.
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.
Describe the bug
I currently have a
Directory.Build.props
file setup for my dev folder. In it, I have defined a particularPublishDir
such that all publishes go outside of this main dev folder (because it syncs to the cloud and I don't need publishes synced). However, I've noticed thatdotnet lambda deploy-function
does not respect this setting.Expected Behavior
I expect
dotnet lambda deploy-function
to respect myPublishDir
setting in theDirectory.Build.props
file and thereby write the publish files to the path I've specified.Current Behavior
Instead,
dotnet lambda deploy-function
always writes to{project_location}/bin/Release/net6.0/publish
regardless. From my logs...Reproduction Steps
Create a
Directory.Build.props
file anywhere in the code directory or up the hierarchy. Put the following inside (changing thesomeuser
first)...Possible Solution
I'm guessing the
dotnet lambda deploy-function
is only set to use the project's location and go from there. I would suggest attempting to see ifPublishDir
has been overridden in either the.csproj
or theDirectory.Build.props
.Additional Information/Context
No response
Targeted .NET platform
.NET 6
CLI extension version
Environment details (OS name and version, etc.)
macOS Ventura 13.1